Do not write build info if there are no files to emit

This commit is contained in:
Sheetal Nandi 2019-10-15 08:37:23 -07:00
parent c9d407b52a
commit bb4872b063
2 changed files with 3 additions and 1 deletions

View file

@ -251,6 +251,9 @@ namespace ts {
state.seenAffectedFiles = createMap<true>();
}
state.emittedBuildInfo = !state.changedFilesSet.size &&
!state.affectedFilesPendingEmit;
return state;
}

View file

@ -3,4 +3,3 @@
exitCode:: 0
//// [/src/project/.tsbuildinfo] file written with same contents