cross-spawn-cb 1.3.1 → 1.4.0
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.
|
@@ -3870,6 +3870,10 @@ function requireParse() {
|
|
|
3870
3870
|
var commandFile = detectShebang(parsed);
|
|
3871
3871
|
// We don't need a shell if the command filename is an executable
|
|
3872
3872
|
var needsShell = !isExecutableRegExp.test(commandFile);
|
|
3873
|
+
|
|
3874
|
+
// KM: force node to use the shell
|
|
3875
|
+
if (!needsShell && ['node', 'node.exe', 'node.cmd'].indexOf(path.basename(commandFile).toLowerCase()) >= 0) needsShell = true;
|
|
3876
|
+
|
|
3873
3877
|
// If a shell is required, use cmd.exe and take care of escaping everything correctly
|
|
3874
3878
|
// Note that `forceShell` is an hidden option used only in tests
|
|
3875
3879
|
if (parsed.options.forceShell || needsShell) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"depcheck": "^1.4.7",
|
|
41
41
|
"is-version": "^0.2.1",
|
|
42
42
|
"mocha-compat": "^3.6.2",
|
|
43
|
-
"node-install-release": "^1.
|
|
43
|
+
"node-install-release": "^1.5.0",
|
|
44
44
|
"node-resolve-versions": "^1.0.1",
|
|
45
|
-
"node-version-utils": "^1.0
|
|
45
|
+
"node-version-utils": "^1.1.0",
|
|
46
46
|
"rimraf2": "^2.8.2",
|
|
47
47
|
"ts-dev-stack": "^1.5.4"
|
|
48
48
|
},
|