We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0008b4b commit fe6d304Copy full SHA for fe6d304
1 file changed
index.js
@@ -20,7 +20,7 @@ module.exports = function runScript(script, options, extraOptions) {
20
return new Promise((resolve, reject) => {
21
extraOptions = extraOptions || {};
22
options = options || {};
23
- options.env = options.env || Object.create(process.env);
+ options.env = options.env || Object.assign({}, process.env);
24
options.cwd = options.cwd || process.cwd();
25
options.stdio = options.stdio || 'inherit';
26
if (options.stdout) assert(is.writableStream(options.stdout), 'options.stdout should be writable stream');
0 commit comments