[Pkg-javascript-commits] [node-foreground-child] 23/69: Revert "switch to win-spawn"

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-foreground-child.

commit 1fefc52b00e5fc0036208d77b2ac3af616db5905
Author: isaacs <i at izs.me>
Date:   Fri Jan 1 18:03:33 2016 -0800

    Revert "switch to win-spawn"
    
    This reverts commit ad7ba1d4a84e8b199cbfb5d30e01e586390978cc.
    
    win-spawn forces everything to go through cmd, which isn't always
    desireable.
---
 index.js      | 2 +-
 package.json  | 3 +--
 test/basic.js | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/index.js b/index.js
index d002c2e..316b0d2 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
 var signalExit = require('signal-exit')
-var spawn = require('win-spawn')
+var spawn = require('child_process').spawn
 
 module.exports = function (program, args, cb) {
   var arrayIndex = arguments.length
diff --git a/package.json b/package.json
index d45a61b..dd6e461 100644
--- a/package.json
+++ b/package.json
@@ -7,8 +7,7 @@
     "test": "test"
   },
   "dependencies": {
-    "signal-exit": "^2.0.0",
-    "win-spawn": "^2.0.0"
+    "signal-exit": "^2.0.0"
   },
   "devDependencies": {
     "tap": "^1.2.1"
diff --git a/test/basic.js b/test/basic.js
index d8017a9..51ac091 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -1,5 +1,5 @@
 var fg = require('../index.js')
-var spawn = require('win-spawn')
+var spawn = require('child_process').spawn
 var signalExit = require('signal-exit')
 
 if (process.argv[2] === 'child') {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git



More information about the Pkg-javascript-commits mailing list