We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab62ec commit 38a4bfeCopy full SHA for 38a4bfe
smoketests/tests/__helpers/npm.ts
@@ -5,7 +5,7 @@ import { asyncSpawn, AsyncSpawnOptions, AsyncSpawnResult } from './asyncSpawn.js
5
export function npm(cwd: string, args: string[], options?: AsyncSpawnOptions) {
6
const isWindows = /^win/.test(process.platform);
7
const command = isWindows ? 'npm.cmd' : 'npm';
8
- return asyncSpawn(command, args, {
+ return asyncSpawn(command, isWindows ? args.map((a) => `"${a}"`) : args, {
9
...options,
10
shell: isWindows,
11
cwd,
0 commit comments