fix(js): execute postCompilationCallback in compileTypeScriptFiles in watch mode (#9254)

Execute the postCompilationCallback regardless of the watch option value

ISSUES CLOSED: #9253

Co-authored-by: Hannes Schmid <hannes.schmid@solunio.com>
This commit is contained in:
Hannes Schmid 2022-03-09 19:21:28 +01:00 committed by GitHub
parent 1440f8362c
commit 064d7ec30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,7 @@ export async function* compileTypeScriptFiles(
if (normalizedOptions.watch) {
compileTypeScriptWatcher(tscOptions, async (d: Diagnostic) => {
if (d.code === 6194) {
await postCompilationCallback();
next(getResult(true));
}
});