Skip to content

Commit

Permalink
fix(): when spawning npmScripts ensure that stderr is piped correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jthoms1 committed Nov 17, 2016
1 parent bdb35d8 commit 7687337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/npmScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ function runIonicScript(name, argv) {
var q = Q.defer();

process.env['FORCE_COLOR'] = true;
var scriptSpawn = spawn('npm', ['run', scriptName, '--'].concat(argv || []), [process.stdin, 'pipe', process.stderr])
var scriptSpawn = spawn('npm', ['run', scriptName, '--'].concat(argv || []), {
stdio: [process.stdin, 'pipe', process.stderr]
})
.on('error', function(err) {
log.debug('Spawn command', scriptName, 'failed');
q.reject('Unable to run spawn command ' + err);
Expand Down

0 comments on commit 7687337

Please sign in to comment.