1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

fix: yarn v4 requires prepack instead of prepare script when building… (#7371)

What the title says. After the migration to yarn v4, needed a prepack
script/action instead of a prepare step.
This commit is contained in:
Christopher Kolstad 2024-06-12 11:59:00 +02:00 committed by GitHub
parent a971c770e9
commit 9b23442b1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,8 @@
"seed:serve": "UNLEASH_DATABASE_NAME=unleash_test UNLEASH_DATABASE_SCHEMA=seed yarn run start:dev",
"clean": "del-cli --force dist",
"preversion": "./scripts/check-release.sh",
"heroku-postbuild": "cd frontend && yarn && yarn build"
"heroku-postbuild": "cd frontend && yarn && yarn build",
"prepack": "./scripts/prepack.sh"
},
"jest-junit": {
"suiteName": "Unleash Unit Tests",

2
scripts/prepack.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi