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:
parent
a971c770e9
commit
9b23442b1c
@ -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
2
scripts/prepack.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi
|
Loading…
Reference in New Issue
Block a user