From a4eb15635b15fc5062e010dc4e95d025e4a24843 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 17 May 2018 16:52:21 -0700 Subject: [PATCH] WIP, need to lint --- src/compiler/tsbuild.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 0c14778abe5..e0929e355b2 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -260,6 +260,16 @@ namespace ts { const configFileCache = createConfigFileCache(host); function getUpToDateStatus(project: ParsedCommandLine, context: BuildContext): UpToDateStatus { + const prior = context.projectStatus.getValueOrUndefined(project.options.configFilePath); + if (prior !== undefined) { + return prior; + } + const actual = getUpToDateStatusWorker(project, context); + context.projectStatus.setValue(project.options.configFilePath, actual); + return actual; + } + + function getUpToDateStatusWorker(project: ParsedCommandLine, context: BuildContext): UpToDateStatus { let newestInputFileName: string = '???'; let newestInputFileTime = MinimumDate; // Get timestamps of input files @@ -381,6 +391,6 @@ namespace ts { return { getUpToDateStatus - } + }; } }