Merged in fix/ci-build (pull request #1434)

Fix/ci build

* fix: use explicit ci:build command since pre-scripts don't work in yarn

* fix: don't remove .next-folder on dev

* revert change to netlify.toml


Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-02-27 11:55:51 +00:00
parent e131add264
commit 92b81ab8e7
2 changed files with 7 additions and 9 deletions

View File

@@ -4,14 +4,10 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"prebuild": "yarn lint && yarn test:unit", "build": "yarn clean && next build",
"build": "next build",
"predev": "rm -rf .next",
"dev": "PORT=3000 NEXT_PUBLIC_PORT=3000 next dev", "dev": "PORT=3000 NEXT_PUBLIC_PORT=3000 next dev",
"prelint": "rm -rf .next", "lint": "yarn clean && next lint --max-warnings 0 && tsc",
"lint": "next lint --max-warnings 0 && tsc", "lint:fix": "yarn clean && next lint --fix --max-warnings 0 && tsc",
"prelint:fix": "rm -rf .next",
"lint:fix": "next lint --fix --max-warnings 0 && tsc",
"start": "node .next/standalone/server.js", "start": "node .next/standalone/server.js",
"test:component": "cypress open --component", "test:component": "cypress open --component",
"test:component:headless": "cypress run --component", "test:component:headless": "cypress run --component",
@@ -20,7 +16,9 @@
"test:setup": "yarn build && yarn start", "test:setup": "yarn build && yarn start",
"preinstall": "/bin/sh -c \"export $(cat .env.local | grep -v '^#' | xargs)\"", "preinstall": "/bin/sh -c \"export $(cat .env.local | grep -v '^#' | xargs)\"",
"test:unit": "jest", "test:unit": "jest",
"test:unit:watch": "jest --watch" "test:unit:watch": "jest --watch",
"ci:build": "yarn lint && yarn test:unit && yarn build",
"clean": "rm -rf .next"
}, },
"dependencies": { "dependencies": {
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.27", "@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.27",

View File

@@ -2,7 +2,7 @@
"name": "scandic", "name": "scandic",
"packageManager": "yarn@4.6.0", "packageManager": "yarn@4.6.0",
"scripts": { "scripts": {
"build": "yarn workspace @scandic-hotels/design-system build && yarn workspace @scandic-hotels/scandic-web build", "build": "yarn workspace @scandic-hotels/design-system build && yarn workspace @scandic-hotels/scandic-web ci:build",
"lint": "yarn workspace @scandic-hotels/scandic-web lint", "lint": "yarn workspace @scandic-hotels/scandic-web lint",
"postinstall": "husky" "postinstall": "husky"
}, },