mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-10 17:29:16 +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));
|
||||
});
|
||||
|
||||
// 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())
|
||||
},
|
||||
callback
|
||||
|
Loading…
Reference in New Issue
Block a user