mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: add prune step
This commit is contained in:
parent
a87ea72980
commit
31b6c696d2
2 changed files with 7 additions and 1 deletions
6
.github/workflows/deploy-dev.yml
vendored
6
.github/workflows/deploy-dev.yml
vendored
|
@ -33,3 +33,9 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: pnpm -- lerna run build --stream
|
||||
|
||||
# See warning in https://pnpm.io/cli/prune
|
||||
- name: Prune
|
||||
run: rm -rf node_modules packages/*/node_modules && pnpm i
|
||||
env:
|
||||
NODE_ENV: production
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"preinstall": "npx only-allow pnpm",
|
||||
"lerna": "lerna",
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"prepare": "husky install && lerna run --stream prepack",
|
||||
"prepare": "if test \"$NODE_ENV\" != \"production\" ; then husky install && lerna run --stream prepack ; fi",
|
||||
"dev": "lerna run --parallel dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in a new issue