chore: fail build if a command from tsc-watch fails.

This bug was introduced with eba6e7946d
to integrate the compiler_cli into the build properly.

Closes #8480
This commit is contained in:
Tobias Bosch
2016-05-04 20:01:17 -07:00
parent 67ed2e2c0a
commit 119abe7bb9
3 changed files with 9 additions and 4 deletions

View File

@ -103,8 +103,8 @@ if (platform == 'node') {
if (runMode === 'watch') {
tscWatch.watch();
} else if (runMode === 'triggerCmds') {
tscWatch.triggerCmds();
} else if (runMode === 'runCmdsOnly') {
tscWatch.runCmdsOnly();
} else {
tscWatch.run();
}

View File

@ -81,6 +81,11 @@ export class TscWatch {
this.watch();
}
runCmdsOnly() {
this.runOnce = true;
this.triggerCmds();
}
consumeLine(buffer: Buffer, isStdError: boolean) {
var line = '' + buffer;
if (contains(line, this.start)) {