diff --git a/packages/webui/package.json b/packages/webui/package.json index 7bb1ce4a49..0a1ee41445 100644 --- a/packages/webui/package.json +++ b/packages/webui/package.json @@ -16,6 +16,7 @@ "scripts": { "dev": "vite --port=3005", "build": "tsc -b && vite build", + "build:main": "tsc -p tsconfig.app.json --noEmit", "check-types": "tsc -p tsconfig.app.json --noEmit", "watch-types": "run check-types --watch", "preview": "vite preview", diff --git a/scripts/install-and-build.mjs b/scripts/install-and-build.mjs index 72d1e5993b..5b1fa8124f 100644 --- a/scripts/install-and-build.mjs +++ b/scripts/install-and-build.mjs @@ -41,14 +41,15 @@ try { console.log(" 🪛 Build packages..."); console.log(hr()); + const buildArgs = ['--ignore @sofie-automation/webui'] + if (config.uiOnly) { + buildArgs.push(...EXTRA_PACKAGES.map((pkg) => `--ignore ${pkg}`)) + } + await concurrently( [ { - command: config.uiOnly - ? `yarn build:try ${EXTRA_PACKAGES.map( - (pkg) => `--ignore ${pkg}` - ).join(" ")}` - : "yarn build:try", + command: `yarn build:try ${buildArgs.join(" ")}`, cwd: "packages", name: "PACKAGES-BUILD", prefixColor: "yellow",