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

fix: yarn v4 requires prepack instead of prepare script when building from git sha

This commit is contained in:
Christopher Kolstad 2024-06-12 11:44:47 +02:00
parent a971c770e9
commit 07f02546c1
No known key found for this signature in database
GPG Key ID: D9041DC670F032F3
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", "seed:serve": "UNLEASH_DATABASE_NAME=unleash_test UNLEASH_DATABASE_SCHEMA=seed yarn run start:dev",
"clean": "del-cli --force dist", "clean": "del-cli --force dist",
"preversion": "./scripts/check-release.sh", "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": { "jest-junit": {
"suiteName": "Unleash Unit Tests", "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