Skip to content

Commit 8c7a1fa

Browse files
committed
use missingFileModifiedTime instead check on undefined
1 parent 8ae163a commit 8c7a1fa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/compiler/tsbuild.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,7 @@ namespace ts {
852852
let priorNewestUpdateTime = minimumDate;
853853
for (const file of outputs) {
854854
if (isDeclarationFile(file)) {
855-
const fileModifiedTime = compilerHost.getModifiedTime!(file);
856-
if (fileModifiedTime !== undefined) {
857-
priorNewestUpdateTime = newer(priorNewestUpdateTime, fileModifiedTime);
858-
}
855+
priorNewestUpdateTime = newer(priorNewestUpdateTime, compilerHost.getModifiedTime!(file) || missingFileModifiedTime);
859856
}
860857

861858
compilerHost.setModifiedTime!(file, now);

0 commit comments

Comments
 (0)