chore: fix incremental test.unit.dart

Always pass the global typings to ts2dart, independent of the result of the riffing

Closes #4881

Closes #5070
This commit is contained in:
Tobias Bosch 2015-11-02 08:41:23 -08:00
parent 1c322f13e5
commit 37c65b74e3
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
} }
rebuild(treeDiff: DiffResult) { 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'); let getDartFilePath = (path: string) => path.replace(/((\.js)|(\.ts))$/i, '.dart');
treeDiff.addedPaths.concat(treeDiff.changedPaths) treeDiff.addedPaths.concat(treeDiff.changedPaths)
.forEach((changedPath) => { .forEach((changedPath) => {
@ -43,7 +43,6 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
let dartOutputFilePath = getDartFilePath(removedPath); let dartOutputFilePath = getDartFilePath(removedPath);
fs.unlinkSync(path.join(this.cachePath, dartOutputFilePath)); fs.unlinkSync(path.join(this.cachePath, dartOutputFilePath));
}); });
this.transpiler.transpile(toEmit, this.cachePath); this.transpiler.transpile(toEmit, this.cachePath);
} }
} }