Skip to content

Commit

Permalink
fix(make-spawn-args): allow overriding npm_ env vars via env
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 30, 2024
1 parent 2780f78 commit 8f5627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/make-spawn-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const makeSpawnArgs = options => {
const spawnEnv = setPATH(path, binPaths, {
// we need to at least save the PATH environment var
...process.env,
...env,
npm_package_json: resolve(path, 'package.json'),
npm_lifecycle_event: event,
npm_lifecycle_script: cmd,
...env,
})
/* istanbul ignore next */
if (typeof npm_config_node_gyp === 'string') {
Expand Down

0 comments on commit 8f5627d

Please sign in to comment.