Skip to content

Commit aaaa3d5

Browse files
committed
chore: improve when webui is built
1 parent 61b6854 commit aaaa3d5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/webui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"scripts": {
1717
"dev": "vite --port=3005",
1818
"build": "tsc -b && vite build",
19+
"build:main": "tsc -p tsconfig.app.json --noEmit",
1920
"check-types": "tsc -p tsconfig.app.json --noEmit",
2021
"watch-types": "run check-types --watch",
2122
"preview": "vite preview",

scripts/install-and-build.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ try {
4141
console.log(" 🪛 Build packages...");
4242
console.log(hr());
4343

44+
const buildArgs = ['--ignore @sofie-automation/webui']
45+
if (config.uiOnly) {
46+
buildArgs.push(...EXTRA_PACKAGES.map((pkg) => `--ignore ${pkg}`))
47+
}
48+
4449
await concurrently(
4550
[
4651
{
47-
command: config.uiOnly
48-
? `yarn build:try ${EXTRA_PACKAGES.map(
49-
(pkg) => `--ignore ${pkg}`
50-
).join(" ")}`
51-
: "yarn build:try",
52+
command: `yarn build:try ${buildArgs.join(" ")}`,
5253
cwd: "packages",
5354
name: "PACKAGES-BUILD",
5455
prefixColor: "yellow",

0 commit comments

Comments
 (0)