Skip to content

Commit 3b4cc05

Browse files
authored
chore(devDeps): remove 'cross-spawn' (#4779)
1 parent a99d40c commit 3b4cc05

File tree

3 files changed

+106
-56
lines changed

3 files changed

+106
-56
lines changed

package-lock.json

+100-49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"core-js": "^3.16.3",
9898
"coveralls": "^3.1.1",
9999
"cross-env": "^7.0.2",
100-
"cross-spawn": "^7.0.3",
101100
"eslint": "^7.32.0",
102101
"eslint-config-prettier": "^8.3.0",
103102
"eslint-config-semistandard": "^16.0.0",

test/integration/helpers.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function invokeNode(args, done, opts = {}) {
297297
*
298298
* @param {string[]} args - Path to executable and arguments
299299
* @param {RawResultCallback} done - Callback
300-
* @param {Object|string} [opts] - Options to `cross-spawn` or `child_process.fork` or 'pipe' for shortcut to `{stdio: pipe}`
300+
* @param {Object|string} [opts] - Options to `child_process` or 'pipe' for shortcut to `{stdio: pipe}`
301301
* @param {boolean} [opts.fork] - If `true`, use `child_process.fork` instead
302302
* @returns {import('child_process').ChildProcess}
303303
*/
@@ -334,7 +334,7 @@ function createSubprocess(args, done, opts = {}) {
334334
debug('forking: %s', args.join(' '));
335335
mocha = fork(args[0], args.slice(1), opts);
336336
} else {
337-
const {spawn} = require('cross-spawn');
337+
const {spawn} = require('child_process');
338338
debug('spawning: %s', [process.execPath].concat(args).join(' '));
339339
mocha = spawn(process.execPath, args, opts);
340340
}
@@ -400,11 +400,11 @@ function getSummary(res) {
400400
* and waits until the second test run has been completed. Mocha is
401401
* killed and the result is returned.
402402
*
403-
* On Windows, this will call `child_process.fork()` instead of `cross-spawn.spawn()`.
403+
* On Windows, this will call `child_process.fork()` instead of `spawn()`.
404404
*
405405
* **Exit code will always be 0**
406406
* @param {string[]} args - Array of argument strings
407-
* @param {object|string} opts - If a `string`, then `cwd`, otherwise options for `cross-spawn.spawn` or `child_process.fork`
407+
* @param {object|string} opts - If a `string`, then `cwd`, otherwise options for `child_process`
408408
* @param {Function} change - A potentially `Promise`-returning callback to execute which will change a watched file
409409
* @returns {Promise<RawResult>}
410410
*/
@@ -451,11 +451,11 @@ async function runMochaWatchAsync(args, opts, change) {
451451
* and waits until the second test run has been completed. Mocha is
452452
* killed and the result is returned.
453453
*
454-
* On Windows, this will call `child_process.fork()` instead of `cross-spawn.spawn()`.
454+
* On Windows, this will call `child_process.fork()` instead of `spawn()`.
455455
*
456456
* **Exit code will always be 0**
457457
* @param {string[]} args - Array of argument strings
458-
* @param {object|string} opts - If a `string`, then `cwd`, otherwise options for `cross-spawn.spawn` or `child_process.fork`
458+
* @param {object|string} opts - If a `string`, then `cwd`, otherwise options for `child_process`
459459
* @param {Function} change - A potentially `Promise`-returning callback to execute which will change a watched file
460460
* @returns {Promise<JSONResult>}
461461
*/

0 commit comments

Comments
 (0)