Better understanding of what's running

This commit is contained in:
Joseph Garrone 2024-05-20 21:47:06 +02:00
parent 76542e6859
commit 26d3c7f9e0

View File

@ -26,6 +26,8 @@ run(`npx ts-node --skipProject ${join("scripts", "link-in-app.ts")} keycloakify-
const { waitForDebounce } = waitForDebounceFactory({ delay: 400 });
const runYarnBuild = runExclusive.build(() => {
console.log(chalk.green("Running `yarn build`"));
const dCompleted = new Deferred<void>();
const child = child_process.spawn("yarn", ["build"], {
@ -38,6 +40,8 @@ const runYarnBuild = runExclusive.build(() => {
child.on("exit", () => dCompleted.resolve());
console.log("\n\n\n");
return dCompleted.pr;
});