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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user