(
env: NodeJS.ProcessEnv = process.env,
options: BunRuntimeEnvOptions = {}
)
| 15 | } |
| 16 | |
| 17 | export 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 | } |
no test coverage detected