test: fix compiler tests in windows ci (#30482)

This is a tentative fix for the error `Cannot write file '/node_modules/@angular/core/core.ngfactory.d.ts' because it would overwrite input file.` that is showing in codefresh windows ci.

PR Close #30482
This commit is contained in:
Alan Agius 2019-05-15 19:28:50 +02:00 committed by Jason Aden
parent f9404d9e7c
commit 077809398c
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ function isDts(fileName: string): boolean {
}
function isSourceOrDts(fileName: string): boolean {
return /\.ts$/.test(fileName);
return /\.ts$/.test(fileName) && !/(ngfactory|ngstyle|ngsummary).d.ts$/.test(fileName);
}
function resolveNpmTreeArtifact(manifestPath: string, resolveFile = 'package.json') {