Skip to content

Commit

Permalink
chore: improve when webui is built
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 10, 2024
1 parent 61b6854 commit aaaa3d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions scripts/install-and-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit aaaa3d5

Please sign in to comment.