[Pkg-javascript-commits] [node-foreground-child] 25/69: use cross-spawn-async on windows

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 24ff7e5a729e70dd64ff307605038013b5369e12
Author: isaacs <i at izs.me>
Date:   Fri Jan 1 20:12:15 2016 -0800

    use cross-spawn-async on windows
---
 index.js     | 3 +++
 package.json | 1 +
 2 files changed, 4 insertions(+)

diff --git a/index.js b/index.js
index 316b0d2..267eb47 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,8 @@
 var signalExit = require('signal-exit')
 var spawn = require('child_process').spawn
+if (process.platform === 'win32') {
+  spawn = require('cross-spawn-async')
+}
 
 module.exports = function (program, args, cb) {
   var arrayIndex = arguments.length
diff --git a/package.json b/package.json
index 9f257e8..9e719e9 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "test": "test"
   },
   "dependencies": {
+    "cross-spawn-async": "^2.1.1",
     "signal-exit": "^2.0.0"
   },
   "devDependencies": {

-- 
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