0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/package.sh
simeng-li 054899fb90
test: add mock social connector (#1710)
* chore(test): add mock social connector package

add mock social connector package

* fix(test): cr update

cr udpate
2022-08-01 07:09:51 +00:00

30 lines
748 B
Bash
Executable file

set -eo pipefail
echo Building packages
pnpm -- lerna run build --stream
echo Prune dependencies
rm -rf node_modules packages/*/node_modules
echo Install production dependencies
if [[ $INTEGRATION_TEST =~ ^(true|1)$ ]]; then
echo Install the mock connectors for integration tests only
cd packages/core
pnpm link @logto/connector-mock-sms
pnpm link @logto/connector-mock-email
pnpm link @logto/connector-mock-social
cd -
NODE_ENV=production pnpm i --no-frozen-lockfile
else
NODE_ENV=production pnpm i
fi
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