@@ -571,7 +571,7 @@ gulp.task('post-test-checks', function(done) {
571571} ) ;
572572
573573
574- gulp . task ( '!pre.test.typings' , [ ] , function ( done ) {
574+ gulp . task ( '!pre.test.typings' , [ ] , function ( ) {
575575 return gulp
576576 . src ( [
577577 'modules/angular2/typings/**/*' ] , {
@@ -583,17 +583,12 @@ gulp.task('!pre.test.typings', [], function(done) {
583583
584584// -----------------
585585// TODO: Use a version of TypeScript that matches what is used by DefinitelyTyped.
586- gulp . task ( 'test.typings' , [ '!pre.test.typings' ] , function ( done ) {
587- var stream = gulp . src ( [ 'typings_spec /*.ts' , 'dist/docs/typings/angular2/angular2.d.ts' ] )
586+ gulp . task ( 'test.typings' , [ '!pre.test.typings' ] , function ( ) {
587+ return gulp . src ( [ 'typing_spec /*.ts' , 'dist/docs/typings/angular2/angular2.d.ts' ] )
588588 . pipe ( tsc ( { target : 'ES5' , module : 'commonjs' ,
589589 // Don't use the version of typescript that gulp-typescript depends on, we need 1.5
590590 // see https://github.com/ivogabe/gulp-typescript#typescript-version
591- typescript : require ( 'typescript' ) } ) )
592- . on ( 'error' , function ( error ) {
593- // nodejs doesn't propagate errors from the src stream into the final stream so we are
594- // forwarding the error into the final stream
595- stream . emit ( 'error' , error ) ;
596- } ) ;
591+ typescript : require ( 'typescript' ) } ) ) ;
597592} ) ;
598593
599594// -----------------
0 commit comments