Commit 33b3a661 by xzyfer

Standardise on cross-spawn for spawning child processes

There a known issues with `spawn` on Windows i.e. joyent/node#2318.
As a work around we sometimes use
[cross-spawn](https://www.npmjs.com/package/cross-spawn). We will
move all usage of `spawn` to `cross-spawn`.
Closes #1015.
parent 7d416cda
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
"dependencies": { "dependencies": {
"async-foreach": "^0.1.3", "async-foreach": "^0.1.3",
"chalk": "^1.1.1", "chalk": "^1.1.1",
"cross-spawn": "^2.0.0",
"gaze": "^0.5.1", "gaze": "^0.5.1",
"get-stdin": "^4.0.1", "get-stdin": "^4.0.1",
"glob": "^5.0.14", "glob": "^5.0.14",
...@@ -63,7 +64,6 @@ ...@@ -63,7 +64,6 @@
}, },
"devDependencies": { "devDependencies": {
"coveralls": "^2.11.4", "coveralls": "^2.11.4",
"cross-spawn": "^2.0.0",
"istanbul": "^0.3.18", "istanbul": "^0.3.18",
"jshint": "^2.8.0", "jshint": "^2.8.0",
"mocha": "^2.2.5", "mocha": "^2.2.5",
......
...@@ -7,7 +7,7 @@ var eol = require('os').EOL, ...@@ -7,7 +7,7 @@ var eol = require('os').EOL,
fs = require('fs'), fs = require('fs'),
mkdir = require('mkdirp'), mkdir = require('mkdirp'),
path = require('path'), path = require('path'),
spawn = require('child_process').spawn; spawn = require('cross-spawn');
require('../lib/extensions'); require('../lib/extensions');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment