Skip to content

Commit 7687337

Browse files
committed
fix(): when spawning npmScripts ensure that stderr is piped correctly
1 parent bdb35d8 commit 7687337

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utils/npmScripts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ function runIonicScript(name, argv) {
2525
var q = Q.defer();
2626

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

0 commit comments

Comments
 (0)