MCPcopy Create free account
hub / github.com/tiann/hapi / withBunRuntimeEnv

Function withBunRuntimeEnv

cli/src/utils/bunRuntime.ts:17–33  ·  view source on GitHub ↗
(
    env: NodeJS.ProcessEnv = process.env,
    options: BunRuntimeEnvOptions = {}
)

Source from the content-addressed store, hash-verified

15}
16
17export function withBunRuntimeEnv(
18 env: NodeJS.ProcessEnv = process.env,
19 options: BunRuntimeEnvOptions = {}
20): NodeJS.ProcessEnv {
21 if (!isBunCompiled()) {
22 return env;
23 }
24
25 if (options.allowBunBeBun === false) {
26 return stripBunBeBun(env);
27 }
28
29 return {
30 ...env,
31 BUN_BE_BUN: '1'
32 };
33}

Callers 5

runFunction · 0.90
claude.tsFile · 0.90
claudeLocalFunction · 0.90
queryFunction · 0.90

Calls 2

isBunCompiledFunction · 0.90
stripBunBeBunFunction · 0.85

Tested by

no test coverage detected