Passing --force option to build, builds project from start

This commit is contained in:
Sheetal Nandi
2019-03-15 15:52:15 -07:00
parent cabf72b514
commit 52641c531a
2 changed files with 17 additions and 2 deletions

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;