Merge pull request #30439 from Microsoft/forceBuild

Passing --force option to build, builds project from start
This commit is contained in:
Sheetal Nandi
2019-03-18 11:15:25 -07:00
committed by GitHub
2 changed files with 17 additions and 2 deletions
+1
View File
@@ -1178,6 +1178,7 @@ namespace ts {
}
function getOldProgram(proj: ResolvedConfigFileName, parsed: ParsedCommandLine) {
if (options.force) return undefined;
const value = builderPrograms.getValue(proj);
if (value) return value;
return readBuilderProgram(parsed.options, readFileWithCache) as any as T;