0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.scripts/package.sh
2022-11-11 12:58:33 +08:00

17 lines
377 B
Bash
Executable file

set -eo pipefail
echo Prune dependencies
rm -rf node_modules packages/*/node_modules
echo Install production dependencies
NODE_ENV=production pnpm i
echo Prune files
rm -rf \
.git .github .husky .vscode .parcel-cache pnpm-*.yaml *.js \
packages/*/src \
packages/*/*.config.js packages/*/*.config.ts packages/*/tsconfig*.json
echo Tar
cd ..
tar -czf /tmp/logto.tar.gz logto