From 4475795cf58107e738c079c61db1a0d6343624eb Mon Sep 17 00:00:00 2001 From: Pieter Jongsma Date: Thu, 9 May 2024 09:57:07 +0200 Subject: [PATCH] Modify build script to wait for initial build results to complete before launching browser --- scripts/build.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index e5cff38..dd5a15e 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -589,7 +589,7 @@ function DevBrowserExt(browsers: string[]) { versions = MatchExtVersions(matchedBrowsers); } - DevVersionedExt(versions); + const build = DevVersionedExt(versions); const profileRoot = CreateProfileRoot(); const commands: string[] = []; @@ -607,9 +607,8 @@ function DevBrowserExt(browsers: string[]) { commands.push("sleep 100000"); // TODO: A more elegant way of doing nothing? } - const { result } = concurrently(commands); - - result + build + .then(() => concurrently(commands).result) .then(() => { console.log("All processes exited"); process.exit(0);