mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: extract isBunCompiled to separate utils module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user