Skip to content

Commit

Permalink
Merge pull request patrick-steele-idem#1 from jhs/drop-windows
Browse files Browse the repository at this point in the history
Revert "use cross-spawn for windows patrick-steele-idem#8"
  • Loading branch information
johan authored and GitHub Enterprise committed Feb 12, 2018
2 parents 4a988d8 + 85f0338 commit 6d69e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';
var child_process = require('child_process');
var crossSpawn = require('cross-spawn');
var ChildProcessPromise = require('./ChildProcessPromise');
var ChildProcessError = require('./ChildProcessError');

Expand Down Expand Up @@ -87,7 +86,7 @@ function doSpawn(method, command, args, options) {

var successfulExitCodes = (options && options.successfulExitCodes) || [0];

cp = method(command, args, options);
cp = child_process[method](command, args, options);

// Don't return the whole Buffered result by default.
var captureStdout = false;
Expand Down Expand Up @@ -152,11 +151,11 @@ function doSpawn(method, command, args, options) {
}

function spawn(command, args, options) {
return doSpawn(crossSpawn, command, args, options);
return doSpawn('spawn', command, args, options);
}

function fork(modulePath, args, options) {
return doSpawn(child_process.fork, modulePath, args, options);
return doSpawn('fork', modulePath, args, options);
}

exports.exec = exec;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"registry": "http://registry.npmjs.org/"
},
"dependencies": {
"cross-spawn": "^4.0.2",
"node-version": "^1.0.0",
"promise-polyfill": "^6.0.1"
},
Expand Down

0 comments on commit 6d69e2b

Please sign in to comment.