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 aaadb17afe
commit 2c4cf0d1d5
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;
}