feat(build): added a temporary fix to make test.unit.dart work

This commit is contained in:
vsavkin 2015-08-21 14:45:17 -07:00
parent a9ce454b21
commit 85ec34d1d9
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ class TSToDartTranspiler implements DiffingBroccoliPlugin {
} }
rebuild(treeDiff: DiffResult) { rebuild(treeDiff: DiffResult) {
let toEmit = []; // replace with toEmit = [] once https://github.com/angular/angular/issues/3770 is fixed
let toEmit = [path.resolve(this.inputPath, 'angular2/traceur-runtime.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) => {