Merged in fix/update-build-scripts (pull request #2488)

Update build scripts for apps

* Update build scripts for apps


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-07-01 07:20:06 +00:00
parent 1b95acad29
commit c41b2314bf
3 changed files with 8 additions and 6 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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",