0
Fork 0
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:
Gao Sun 2021-07-30 22:54:48 +08:00
parent a87ea72980
commit 31b6c696d2
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
2 changed files with 7 additions and 1 deletions

View file

@ -33,3 +33,9 @@ jobs:
- name: Build - name: Build
run: pnpm -- lerna run build --stream 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

View file

@ -5,7 +5,7 @@
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",
"lerna": "lerna", "lerna": "lerna",
"bootstrap": "lerna bootstrap", "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" "dev": "lerna run --parallel dev"
}, },
"devDependencies": { "devDependencies": {