Skip to content

Commit

Permalink
chore: move build to release-it hook
Browse files Browse the repository at this point in the history
  • Loading branch information
benyap committed Apr 8, 2022
1 parent daabe6e commit 84a53ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
commit: true,
commitMessage: "chore(release): release ${version}",
},
hooks: {
"after:bump": ["yarn build"],
},
plugins: {
"@release-it/bumper": {
in: "package.json",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"scripts": {
"prepare": "husky install",
"prebuild": "yarn clear && yarn format",
"prebuild": "yarn clear",
"build": "tsc -p tsconfig.build.json",
"postbuild": "yarn start:dev -p tsconfig.build.json",
"clear": "rm -rf ./dist ./coverage",
Expand All @@ -43,7 +43,7 @@
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"release": "yarn test && yarn build && yarn release-it"
"release": "yarn test && yarn release-it"
},
"dependencies": {
"ansi-colors": "4.1.1",
Expand Down

0 comments on commit 84a53ba

Please sign in to comment.