diff --git a/.github/workflows/release-bots.yml b/.github/workflows/release-bots.yml index 7fae2a0a..1cbcf3e0 100644 --- a/.github/workflows/release-bots.yml +++ b/.github/workflows/release-bots.yml @@ -23,6 +23,8 @@ jobs: run: npm install - name: Build run: npm run build + - name: Package + run: npm run package - name: Tar compress run: tar -cvf batcher-liquidity-bot.tar.xz dist/* - name: Hash Tar diff --git a/batcher-bot/liquidity/package.json b/batcher-bot/liquidity/package.json index 1517ca1d..4e274efa 100644 --- a/batcher-bot/liquidity/package.json +++ b/batcher-bot/liquidity/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts", "create": "npm run build", - "build": "rm -rf ./dist && tsc -p . && cp README.md dist/ && cp src/liquidity-config-* dist/ && cp -rf node_modules dist/", + "build": "rm -rf ./dist && tsc -p .", + "package": "npm prune --production && cp README.md dist/ && cp src/liquidity-config-* dist/ && cp -rf node_modules dist/", "local": "sudo npm i -g && npm run start", "refresh": "rm -rf ./node_modules ./package-lock.json && npm install" },