Just make sure compilations run don't overlap

This commit is contained in:
Joseph Garrone 2024-05-23 20:53:42 +02:00
parent 9e1217fbf0
commit 7e84d0b108

View File

@ -25,7 +25,7 @@ run(`npx ts-node --skipProject ${join("scripts", "link-in-app.ts")} keycloakify-
const { waitForDebounce } = waitForDebounceFactory({ delay: 400 }); const { waitForDebounce } = waitForDebounceFactory({ delay: 400 });
const runYarnBuild = runExclusive.build(() => { const runYarnBuild = runExclusive.build(async () => {
console.log(chalk.green("Running `yarn build`")); console.log(chalk.green("Running `yarn build`"));
const dCompleted = new Deferred<void>(); const dCompleted = new Deferred<void>();
@ -40,9 +40,9 @@ const runYarnBuild = runExclusive.build(() => {
child.on("exit", () => dCompleted.resolve()); child.on("exit", () => dCompleted.resolve());
console.log("\n\n\n"); await dCompleted.pr;
return dCompleted.pr; console.log("\n\n");
}); });
console.log(chalk.green("Watching for changes in src/")); console.log(chalk.green("Watching for changes in src/"));