redep 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,10 +7,11 @@ export const spawnCommand = (command, workingDir, onStdout, onStderr) => {
7
7
 
8
8
  // Parse command string into command and args for spawn
9
9
  // This is a simple split, for complex commands with quotes, we might need a parser or use shell: true
10
- // Using shell: true is easier for compatibility with the existing full command strings
10
+ // Use platform-specific shell detection
11
+ const shell = process.platform === 'win32' ? process.env.COMSPEC || 'cmd.exe' : '/bin/sh';
11
12
  const child = spawn(command, {
12
13
  cwd: workingDir,
13
- shell: true,
14
+ shell: shell,
14
15
  stdio: ['ignore', 'pipe', 'pipe'],
15
16
  });
16
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "redep",
3
3
  "author": "nafies1",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {