From 064d7ec30c8ce80d87ed543cea91fd0632c85f45 Mon Sep 17 00:00:00 2001 From: Hannes Schmid Date: Wed, 9 Mar 2022 19:21:28 +0100 Subject: [PATCH] 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 --- packages/js/src/utils/typescript/compile-typescript-files.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/js/src/utils/typescript/compile-typescript-files.ts b/packages/js/src/utils/typescript/compile-typescript-files.ts index 8a7ed15900de8..6ebced0d3973b 100644 --- a/packages/js/src/utils/typescript/compile-typescript-files.ts +++ b/packages/js/src/utils/typescript/compile-typescript-files.ts @@ -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)); } });