Skip to content

Commit

Permalink
fix(utils): orphaned child process on Windows (#3156)
Browse files Browse the repository at this point in the history
Co-authored-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
JamesHenry and feryardiant committed Jun 7, 2022
1 parent 897caee commit 7e69e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/npm-run-script/__tests__/npm-run-script.test.js
Expand Up @@ -30,6 +30,7 @@ describe("npm-run-script", () => {
env: {},
pkg: config.pkg,
reject: true,
windowsHide: false,
});
});

Expand All @@ -51,6 +52,7 @@ describe("npm-run-script", () => {
env: {},
pkg: config.pkg,
reject: false,
windowsHide: false,
});
});

Expand All @@ -71,6 +73,7 @@ describe("npm-run-script", () => {
env: {},
pkg: config.pkg,
reject: true,
windowsHide: false,
});
});
});
Expand Down Expand Up @@ -98,6 +101,7 @@ describe("npm-run-script", () => {
env: {},
pkg: config.pkg,
reject: true,
windowsHide: false,
},
config.pkg.name
);
Expand Down Expand Up @@ -125,6 +129,7 @@ describe("npm-run-script", () => {
env: {},
pkg: config.pkg,
reject: false,
windowsHide: false,
},
undefined
);
Expand Down
1 change: 1 addition & 0 deletions utils/npm-run-script/npm-run-script.js
Expand Up @@ -28,6 +28,7 @@ function npmRunScriptStreaming(script, { args, npmClient, pkg, prefix, reject =

function makeOpts(pkg, reject) {
return Object.assign(getNpmExecOpts(pkg), {
windowsHide: false,
reject,
});
}

0 comments on commit 7e69e9e

Please sign in to comment.