mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-11 09:49:17 +00:00
quick fix for NODE_ENV which affects npm install/prune calls
This commit is contained in:
parent
2f0c87ceac
commit
5d3b97c64b
@ -140,6 +140,12 @@ Executor.prototype._runStep = function(params, callback) {
|
|||||||
self.emit('data', 'stderr: ' + String(data));
|
self.emit('data', 'stderr: ' + String(data));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: should be fixed properly, currently it's quick fix for
|
||||||
|
// NODE_ENV which affects npm install/prune calls
|
||||||
|
params.options = params.options || {};
|
||||||
|
params.options.env = params.options.env || process.env;
|
||||||
|
delete params.options.env.NODE_ENV;
|
||||||
|
|
||||||
command.run(params, this.slot())
|
command.run(params, this.slot())
|
||||||
},
|
},
|
||||||
callback
|
callback
|
||||||
|
Loading…
Reference in New Issue
Block a user