-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use shell option directly like @npm/run-script
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/index.js b/index.js | ||
index 931c9170414e3161a86ea6661727e0822d144f2e..59fad26304099619ed8303fd1348b9136959c150 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -273,7 +273,9 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { | ||
return | ||
} | ||
|
||
- const proc = spawn(sh, [shFlag, cmd], conf, opts.log) | ||
+ const proc = customShell | ||
+ ? spawn(cmd, { ...conf, shell: customShell }, opts.log) | ||
+ : spawn(sh, [shFlag, cmd], conf, opts.log) | ||
|
||
proc.on('error', procError) | ||
proc.on('close', (code, signal) => { |
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 |
---|---|---|
|
@@ -109,7 +109,8 @@ | |
"onlyBuiltDependencies": [], | ||
"patchedDependencies": { | ||
"[email protected]": "__patches__/pkg.patch", | ||
"[email protected]": "__patches__/[email protected]" | ||
"[email protected]": "__patches__/[email protected]", | ||
"@pnpm/[email protected]": "__patches__/@[email protected]" | ||
}, | ||
"updateConfig": { | ||
"ignoreDependencies": [ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.