chore(transpile): don't kill stream on TS errors

This commit is contained in:
Tim Lancina
2016-02-29 11:49:02 -06:00
parent 7a01234e07
commit f905e18a80

View File

@ -251,7 +251,6 @@ function tsCompile(options, cacheName){
.pipe(tsc(options, undefined, tscReporter)) .pipe(tsc(options, undefined, tscReporter))
.on('error', function(error) { .on('error', function(error) {
console.log(error.message); console.log(error.message);
this.emit('end');
}); });
} }
@ -406,7 +405,6 @@ gulp.task('e2e.build', function() {
.pipe(tsc(getTscOptions(), undefined, tscReporter)) .pipe(tsc(getTscOptions(), undefined, tscReporter))
.on('error', function(error) { .on('error', function(error) {
console.log(error.message); console.log(error.message);
this.emit('end');
}) })
.pipe(gulpif(/index.js$/, createIndexHTML())) .pipe(gulpif(/index.js$/, createIndexHTML()))
.pipe(gulpif(/e2e.js$/, createPlatformTests())) .pipe(gulpif(/e2e.js$/, createPlatformTests()))
@ -590,7 +588,6 @@ gulp.task('build.demos', function() {
.pipe(tsc(getTscOptions(), undefined, tscReporter)) .pipe(tsc(getTscOptions(), undefined, tscReporter))
.on('error', function(error) { .on('error', function(error) {
console.log(error.message); console.log(error.message);
this.emit('end');
}) })
.pipe(gulpif(/index.js$/, createIndexHTML())) //TSC changes .ts to .js .pipe(gulpif(/index.js$/, createIndexHTML())) //TSC changes .ts to .js