Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Ensure we fail the build on errors (#135)
Browse files Browse the repository at this point in the history
Otherwise, the build will continue even if errors are found (although the errors will be emitted to console/log).
  • Loading branch information
Jeff Young authored Feb 28, 2017
1 parent 2a94174 commit dfc6caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ gulp.task('build', ['copyresources'], function () {
let tsProject = typescript.createProject('./tsconfig.json');
let tsResult = tsProject.src()
.pipe(sourcemaps.init())
.pipe(tsProject());
.pipe(tsProject())
.on('error', errorHandler);

return tsResult.js
.pipe(sourcemaps.write('.', {
Expand Down

0 comments on commit dfc6caa

Please sign in to comment.