X Tutup
Skip to content

Commit 1c8a589

Browse files
committed
fix(build): fix paths in test.typings task
1 parent 19a9dc6 commit 1c8a589

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

gulpfile.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
// -----------------

typing_spec/basic_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///<reference path="../dist/docs/angular2.d.ts"/>
1+
///<reference path="../dist/docs/typings/angular2/angular2.d.ts"/>
22

33
import {Component, bootstrap, View} from 'angular2/angular2'
44

0 commit comments

Comments
 (0)
X Tutup