/
aqa
/
claude-code
Обзор
Документация
Войти
/
aqa
/
claude-code
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
utils/bundledMode.ts
22 строки
618 B
kuberwastaken
new initial commit (history rewritten)
01 апр 2026, 14:57
01 апр 2026, 14:57
c1996f2
Код
Авторство
О чём код?
/** * Detects if the current runtime is Bun. * Returns true when: * - Running a JS file via the `bun` command * - Running a Bun-compiled standalone executable */ export function isRunningWithBun(): boolean { // https://bun.com/guides/util/detect-bun return process.versions.bun !== undefined } /** * Detects if running as a Bun-compiled standalone executable. * This checks for embedded files which are present in compiled binaries. */ export function isInBundledMode(): boolean { return ( typeof Bun !== 'undefined' && Array.isArray(Bun.embeddedFiles) && Bun.embeddedFiles.length > 0 ) }