Skip to content

Commit 5e424eb

Browse files
committed
fixup: don't allow override of env variables set by this script explicitly
1 parent 1017d3b commit 5e424eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/make-spawn-args.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ const makeSpawnArgs = options => {
3030
const spawnEnv = setPATH(path, binPaths, {
3131
// we need to at least save the PATH environment var
3232
...process.env,
33+
...env,
3334
npm_package_json: resolve(path, 'package.json'),
3435
npm_lifecycle_event: event,
3536
npm_lifecycle_script: cmd,
36-
...env,
3737
npm_config_node_gyp,
3838
})
3939

0 commit comments

Comments
 (0)