Skip to content

Commit

Permalink
Add package zipping to the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
renandecarlo committed May 10, 2022
1 parent 2c8d337 commit 621ba25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"geraldo": "node src/geraldo-listener",
"whatsapp": "node src/whatsapp-bot",
"start": "npm-run-all -r --parallel geraldo whatsapp",
"prebuild": "rm -rf ../dist",
"prebuild": "rm -rf ../dist && rm -rf ../geraldin-bot.v%npm_package_version%.zip",
"build": "pkg . -C brotli",
"postbuild": "cp package.json package-lock.json LICENSE .env.ini.example README.md ../dist && mv ../dist/.env.ini.example ../dist/.env.ini"
"postbuild": "cp package.json package-lock.json LICENSE .env.ini.example README.md ../dist && mv ../dist/.env.ini.example ../dist/.env.ini && npm run zip",
"zip": "powershell Compress-Archive ../dist/* ../geraldin-bot.v%npm_package_version%.zip"
}
}

0 comments on commit 621ba25

Please sign in to comment.