Skip to content

Commit

Permalink
Updated packaging to prune modules
Browse files Browse the repository at this point in the history
  • Loading branch information
glottologist committed May 18, 2023
1 parent 1225c79 commit 6d4e190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release-bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion batcher-bot/liquidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 6d4e190

Please sign in to comment.