Skip to content

Commit 2d09f84

Browse files
committed
fix(build): Fail the build for certain TS errors.
1 parent ef6e0d8 commit 2d09f84

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gulpfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,15 @@ gulp.task('build.dart', function(done) {
570570

571571
gulp.task('build.broccoli.tools', function() {
572572
var tsResult = gulp.src('tools/broccoli/**/*.ts')
573-
.pipe(tsc({ target: 'ES5', module: 'commonjs' }));
573+
.pipe(tsc({target: 'ES5', module: 'commonjs'}))
574+
.on('error', function() {
575+
console.log("ERROR: Broccoli tools failed to build.");
576+
process.exit(1);
577+
});
574578
return tsResult.js.pipe(gulp.dest('dist/broccoli'))
575579
.on('end', function() {
576580
var BroccoliBuilder = require('./dist/broccoli/broccoli_builder').BroccoliBuilder;
577-
getBroccoli = function() {
578-
return BroccoliBuilder;
579-
};
581+
getBroccoli = function() { return BroccoliBuilder; };
580582
});
581583
});
582584

0 commit comments

Comments
 (0)