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

This commit is contained in:
Sheetal Nandi
2019-03-15 16:02:00 -07:00
parent 3b607df658
commit 434fa94bdc
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;