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