refactor: extract isBunCompiled to separate utils module

This commit is contained in:
weishu
2026-01-18 12:19:13 +08:00
parent 0d80e9245d
commit b93533b381
+1 -4
View File
@@ -12,10 +12,7 @@ import { spawn, type Subprocess } from 'bun'
import { existsSync } from 'node:fs'
import { join } from 'node:path'
import { platform, arch, homedir } from 'node:os'
function isBunCompiled(): boolean {
return typeof process.execPath === 'string' && !process.execPath.includes('bun')
}
import { isBunCompiled } from '../utils/bunCompiled'
function getHapiHome(): string {
return process.env.HAPI_HOME