mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-30 06:17:06 +00:00
Rename the `server/` directory to `hub/` and update all references across CLI, docs, web, and workspace configuration.
6 lines
262 B
TypeScript
6 lines
262 B
TypeScript
/** Bun embeds compiled code in a virtual filesystem: /$bunfs/ (Linux/macOS) or /~BUN/ (Windows) */
|
|
export function isBunCompiled(): boolean {
|
|
const bunMain = globalThis.Bun?.main ?? '';
|
|
return bunMain.includes('$bunfs') || bunMain.includes('/~BUN/');
|
|
}
|