Log what file have changed when linking dynamically in starter

This commit is contained in:
Joseph Garrone
2024-06-22 20:11:34 +02:00
parent f37a342a63
commit e99fdb8561

View File

@ -28,9 +28,13 @@ export function startRebuildOnSrcChange() {
console.log(chalk.green("Watching for changes in src/")); console.log(chalk.green("Watching for changes in src/"));
chokidar.watch(["src", "stories"], { ignoreInitial: true }).on("all", async () => { chokidar
await waitForDebounce(); .watch(["src", "stories"], { ignoreInitial: true })
.on("all", async (event, path) => {
console.log(chalk.bold(`${event}: ${path}`));
runYarnBuild(); await waitForDebounce();
});
runYarnBuild();
});
} }