Skip to content

TSC errors don't make gulp build fail #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ulrichb opened this issue Dec 11, 2016 · 1 comment
Closed

TSC errors don't make gulp build fail #469

ulrichb opened this issue Dec 11, 2016 · 1 comment

Comments

@ulrichb
Copy link

ulrichb commented Dec 11, 2016

Errors are ignored (even with --noEmitOnError).

Expected behavior:

Actual behavior:

  • Exit code == 0 ("== success ==" output)

Same on Windows/node v7.2.1; Ubuntu/node v0.10.25.

Your gulpfile:

var gulp = require('gulp');
var ts = require('gulp-typescript');

gulp.task('build', function () {
    return gulp.src('*.ts')
        .pipe(ts({
            //noEmitOnError: true,
            out: 'out.js'
        }))
        .pipe(gulp.dest('.'));
});

gulp.task('default', ['build']);

Code

class C {}

error_line
@ivogabe
Copy link
Owner

ivogabe commented Dec 11, 2016

Duplicate of #295

@ivogabe ivogabe closed this as completed Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants