enable shell option for Windows cross-platform compatibility

This commit is contained in:
Nacho Codoñer
2025-09-09 17:19:18 +02:00
parent 5ae5909c8d
commit be8a82fe0b

View File

@@ -25,7 +25,7 @@ export function spawnProcess(command, args, options = {}) {
cwd: options.cwd || process.cwd(),
stdio: ['pipe', 'pipe', 'pipe'],
detached: options.detached || false,
...process.platform === 'win32' && { shell: true },
...(process.platform === 'win32' && { shell: true }),
});
// Add a reference to track if the process is running