Skip to content

Commit

Permalink
fix: fail on ts transpile errors by setting noEmitOnErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon committed May 3, 2018
1 parent be042fd commit 69559a1
Show file tree
Hide file tree
Showing 4 changed files with 1,006 additions and 1,006 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ before_install:
sleep 3;
fi


script:
- gulp forceprettier
- npm run forceprettier
- if [[ $(git diff-index HEAD --) ]]; then
git diff;
echo "Prettier Failed. Run `gulp` or `gulp forceprettier`";
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var gulp = require('gulp'),

// compile
gulp.task('compile', function() {
var tsProject = ts.createProject('tsconfig.json');
var tsProject = ts.createProject('tsconfig.json', { noEmitOnError: true });
return tsProject
.src()
.pipe(sourcemaps.init())
Expand Down
Loading

0 comments on commit 69559a1

Please sign in to comment.