|
export function computeEnv( |
|
cwd: string, |
|
env?: EnvLike, |
|
nodePath: boolean = true |
|
): EnvLike { |
|
const envWithDefault = { |
|
...process.env, |
|
...env |
|
}; |
This is surprising and different from the spawn behavior. It's also not quite what we always want given it's common for API keys and secrets to be available in the process.env.
tinyexec/src/env.ts
Lines 57 to 65 in 8a4ccde
This is surprising and different from the
spawnbehavior. It's also not quite what we always want given it's common for API keys and secrets to be available in theprocess.env.