From c41b2314bf504137e11f16e4f9813765bfb8970b Mon Sep 17 00:00:00 2001 From: Anton Gunnarsson Date: Tue, 1 Jul 2025 07:20:06 +0000 Subject: [PATCH] Merged in fix/update-build-scripts (pull request #2488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update build scripts for apps * Update build scripts for apps Approved-by: Joakim Jäderberg --- apps/partner-sas/netlify.toml | 6 +++--- apps/scandic-web/netlify.toml | 6 +++--- package.json | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/partner-sas/netlify.toml b/apps/partner-sas/netlify.toml index afcb7e10b..d1d407a3a 100644 --- a/apps/partner-sas/netlify.toml +++ b/apps/partner-sas/netlify.toml @@ -1,13 +1,13 @@ [build] -command = "yarn build" +command = "yarn build:sas" publish = "apps/partner-sas/.next" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF apps/partner-sas packages/common packages/trpc packages/design-system packages/typescript-config" [context.branch-deploy] -command = "yarn build" +command = "yarn build:sas" [context.deploy-preview] -command = "yarn build" +command = "yarn build:sas" [build.environment] # set TERM variable for terminal output diff --git a/apps/scandic-web/netlify.toml b/apps/scandic-web/netlify.toml index fb76472da..677e1b788 100644 --- a/apps/scandic-web/netlify.toml +++ b/apps/scandic-web/netlify.toml @@ -1,13 +1,13 @@ [build] -command = "yarn test && yarn build" +command = "yarn test && yarn build:web" publish = "apps/scandic-web/.next" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF apps/scandic-web packages/common packages/trpc packages/design-system packages/typescript-config" [context.branch-deploy] -command = "yarn test && yarn build" +command = "yarn test && yarn build:web" [context.deploy-preview] -command = "yarn test && yarn build" +command = "yarn test && yarn build:web" # [[plugins]] # package = "netlify-plugin-cypress" diff --git a/package.json b/package.json index 28e0a1cb1..cb68dcc3c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "packageManager": "yarn@4.6.0", "scripts": { "build": "turbo run build --env-mode=loose", + "build:web": "turbo run build --filter=@scandic-hotels/scandic-web --env-mode=loose", + "build:sas": "turbo run build --filter=@scandic-hotels/partner-sas --env-mode=loose", "lint": "turbo run lint", "dev": "turbo run dev --output-logs new-only", "dev:web": "turbo run dev --filter=@scandic-hotels/scandic-web --output-logs new-only",