From 37c65b74e30e965d3691620f865f52ecc0f6a200 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Mon, 2 Nov 2015 08:41:23 -0800 Subject: [PATCH] chore: fix incremental test.unit.dart Always pass the global typings to ts2dart, independent of the result of the riffing Closes #4881 Closes #5070 --- tools/broccoli/broccoli-ts2dart.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/broccoli/broccoli-ts2dart.ts b/tools/broccoli/broccoli-ts2dart.ts index 31e60b50a9..6df6fbaccc 100644 --- a/tools/broccoli/broccoli-ts2dart.ts +++ b/tools/broccoli/broccoli-ts2dart.ts @@ -19,7 +19,7 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin { } rebuild(treeDiff: DiffResult) { - let toEmit = []; + let toEmit = [path.resolve(this.inputPath, 'angular2/manual_typings/globals.d.ts')]; let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart'); treeDiff.addedPaths.concat(treeDiff.changedPaths) .forEach((changedPath) => { @@ -43,7 +43,6 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin { let dartOutputFilePath = getDartFilePath(removedPath); fs.unlinkSync(path.join(this.cachePath, dartOutputFilePath)); }); - this.transpiler.transpile(toEmit, this.cachePath); } }