Skip to content

Commit c0e68f6

Browse files
committed
fix: spawnCommand support for Windows
1 parent ab3d10e commit c0e68f6

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"@commitlint/config-conventional": "^17.7.0",
8686
"@types/bytes": "^3.1.1",
8787
"@types/cli-progress": "^3.11.0",
88+
"@types/cross-spawn": "^6.0.2",
8889
"@types/fs-extra": "^11.0.1",
8990
"@types/node": "^20.4.9",
9091
"@types/uuid": "^9.0.2",
@@ -106,6 +107,7 @@
106107
"chalk": "^5.3.0",
107108
"cli-progress": "^3.12.0",
108109
"cross-env": "^7.0.3",
110+
"cross-spawn": "^7.0.3",
109111
"env-var": "^7.3.1",
110112
"fs-extra": "^11.1.1",
111113
"node-addon-api": "^7.0.0",

src/utils/spawnCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {spawn} from "child_process";
1+
import spawn from "cross-spawn";
22

33
export function spawnCommand(command: string, args: string[], cwd: string) {
44
function getCommandString() {

0 commit comments

Comments
 (0)