Skip to content

Commit a4eb156

Browse files
committed
WIP, need to lint
1 parent aeb5625 commit a4eb156

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/compiler/tsbuild.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,16 @@ namespace ts {
260260
const configFileCache = createConfigFileCache(host);
261261

262262
function getUpToDateStatus(project: ParsedCommandLine, context: BuildContext): UpToDateStatus {
263+
const prior = context.projectStatus.getValueOrUndefined(project.options.configFilePath);
264+
if (prior !== undefined) {
265+
return prior;
266+
}
267+
const actual = getUpToDateStatusWorker(project, context);
268+
context.projectStatus.setValue(project.options.configFilePath, actual);
269+
return actual;
270+
}
271+
272+
function getUpToDateStatusWorker(project: ParsedCommandLine, context: BuildContext): UpToDateStatus {
263273
let newestInputFileName: string = '???';
264274
let newestInputFileTime = MinimumDate;
265275
// Get timestamps of input files
@@ -381,6 +391,6 @@ namespace ts {
381391

382392
return {
383393
getUpToDateStatus
384-
}
394+
};
385395
}
386396
}

0 commit comments

Comments
 (0)