diff --git a/lib/make-spawn-args.js b/lib/make-spawn-args.js index 8e3c8b6..42224a6 100644 --- a/lib/make-spawn-args.js +++ b/lib/make-spawn-args.js @@ -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') {