-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap out the complicated canary stuff for serial execution
Fixes #7386
- Loading branch information
Showing
5 changed files
with
33 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const path = require('path'); | ||
const child_process = require('child_process'); | ||
|
||
const moduleName = process.argv[2]; | ||
if (!moduleName) { | ||
console.error("Expected module name"); | ||
process.exit(1); | ||
} | ||
|
||
const argString = process.argv.length > 3 ? process.argv.slice(3).join(" ") : ""; | ||
if (!argString) { | ||
console.error("Expected an npm argument string to use"); | ||
process.exit(1); | ||
} | ||
|
||
const modulePath = path.dirname(require.resolve(`${moduleName}/package.json`)); | ||
|
||
child_process.execSync("npm " + argString, { | ||
env: process.env, | ||
cwd: modulePath, | ||
}); |