Skip to content

Commit a7fef93

Browse files
authored
fix: task build fix for windows to use cmd when running ensure-deps (#405)
1 parent 96fbb0b commit a7fef93

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.vscode/tasks.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"label": "compile",
66
"type": "npm",
77
"script": "compile",
8-
"problemMatcher": "$esbuild"
8+
"problemMatcher": "$esbuild",
99
},
1010
{
1111
"type": "npm",
@@ -16,7 +16,13 @@
1616
"label": "ensure-deps",
1717
"type": "shell",
1818
"windows": {
19-
"command": "if not exist node_modules npm install"
19+
"command": "if not exist node_modules npm install",
20+
"options": {
21+
"shell": {
22+
"executable": "cmd.exe",
23+
"args": ["/c"]
24+
}
25+
}
2026
},
2127
"linux": {
2228
"command": "test -d node_modules || npm install"

0 commit comments

Comments
 (0)