WIP, need to lint

This commit is contained in:
Ryan Cavanaugh
2018-05-17 16:52:21 -07:00
parent aeb5625199
commit a4eb15635b

View File

@@ -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
}
};
}
}