Skip to content

Commit

Permalink
fix(js): execute postCompilationCallback in compileTypeScriptFiles in…
Browse files Browse the repository at this point in the history
… watch mode (#9254)

Execute the postCompilationCallback regardless of the watch option value

ISSUES CLOSED: #9253

Co-authored-by: Hannes Schmid <hannes.schmid@solunio.com>
  • Loading branch information
schmidhannes and Hannes Schmid committed Mar 9, 2022
1 parent 1440f83 commit 064d7ec
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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));
}
});
Expand Down

0 comments on commit 064d7ec

Please sign in to comment.