Skip to content

Commit 8f5627d

Browse files
committed
fix(make-spawn-args): allow overriding npm_ env vars via env
1 parent 2780f78 commit 8f5627d

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
@@ -27,10 +27,10 @@ const makeSpawnArgs = options => {
2727
const spawnEnv = setPATH(path, binPaths, {
2828
// we need to at least save the PATH environment var
2929
...process.env,
30-
...env,
3130
npm_package_json: resolve(path, 'package.json'),
3231
npm_lifecycle_event: event,
3332
npm_lifecycle_script: cmd,
33+
...env,
3434
})
3535
/* istanbul ignore next */
3636
if (typeof npm_config_node_gyp === 'string') {

0 commit comments

Comments
 (0)