We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a6fec1 commit 0f0472aCopy full SHA for 0f0472a
1 file changed
scripts/run-dist.cjs
@@ -6,10 +6,15 @@ const npmBin = process.platform === "win32" ? "npm.cmd" : "npm";
6
const npxBin = process.platform === "win32" ? "npx.cmd" : "npx";
7
8
function run(command, args) {
9
- const result = spawnSync(command, args, {
10
- stdio: "inherit",
11
- shell: false
12
- });
+ const result = process.platform === "win32"
+ ? spawnSync([command, ...args].join(" "), {
+ stdio: "inherit",
+ shell: true
13
+ })
14
+ : spawnSync(command, args, {
15
16
+ shell: false
17
+ });
18
if (result.error) throw result.error;
19
return result.status ?? 0;
20
}
0 commit comments