Comparing version 2.0.12-alpha.2 to 2.0.12-alpha.3
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": { | ||
"space-before-function-paren": [ | ||
2, | ||
{ | ||
"anonymous": "ignore", | ||
"named": "never" | ||
} | ||
] | ||
} | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": ["eslint:recommended"], | ||
"parserOptions": { | ||
"ecmaVersion": 9, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-console": 0, | ||
"no-restricted-globals": [ | ||
"error", | ||
{ | ||
"name": "name", | ||
"message": "Use local parameter instead." | ||
} | ||
] | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
const path = require('path'); | ||
const utils = require('./utils'); | ||
@@ -22,2 +23,6 @@ const merge = utils.merge; | ||
if (!Array.isArray(command)) { | ||
command = [command]; | ||
} | ||
if (utils.isWindows) { | ||
@@ -27,4 +32,8 @@ // if the exec includes a forward slash, reverse it for windows compat | ||
// ref #1251 and #1236 | ||
if (executable.indexOf('/') !== -1) { | ||
executable = executable.split(' ').map((e, i) => { | ||
command = command.map(executable => { | ||
if (executable.indexOf('/') === -1) { | ||
return executable; | ||
} | ||
return executable.split(' ').map((e, i) => { | ||
if (i === 0) { | ||
@@ -35,3 +44,3 @@ return path.normalize(e); | ||
}).join(' '); | ||
} | ||
}); | ||
// taken from npm's cli: https://git.io/vNFD4 | ||
@@ -43,7 +52,2 @@ sh = process.env.comspec || 'cmd'; | ||
if (!Array.isArray(command)) { | ||
command = [command]; | ||
} | ||
const args = command.join(' '); | ||
@@ -50,0 +54,0 @@ const child = spawn(sh, [shFlag, args], spawnOptions); |
@@ -70,3 +70,3 @@ { | ||
"_version": "0.0.0-development", | ||
"version": "2.0.12-alpha.2", | ||
"version": "2.0.12-alpha.3", | ||
"funding": { | ||
@@ -73,0 +73,0 @@ "type": "opencollective", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195149
2649