Apply review comment suggestion

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: David Festal <dfestal@redhat.com>
This commit is contained in:
David Festal
2026-01-27 14:44:54 +01:00
parent 00638e4145
commit 3fdda3384e
@@ -165,7 +165,10 @@ export async function createRuntimeSharedDependenciesEntryPoint(options: {
if (watch) {
const watcher = chokidar.watch(resolvePath(targetPath, 'package.json'));
watcher.on('change', doWriteSharedDependenciesModule);
watcher.on('change', async () => {
await doWriteSharedDependenciesModule();
watch();
});
}
await doWriteSharedDependenciesModule();