Skip to content

Commit 8275d13

Browse files
committed
build: use release-it hooks for pre building and testing
1 parent 46c4ea3 commit 8275d13

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.release-it.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2+
"hooks": {
3+
"before:init": ["pnpm run test", "pnpm run build"],
4+
},
25
"git": {
36
"commitMessage": "chore: release v${version}",
47
"requireCleanWorkingDir": true,

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"build": "vite build && api-extractor run",
2222
"lint": "eslint . --ext .ts --fix",
2323
"test": "mocha",
24-
"prepublish": "npm run test && npm run build",
2524
"release": "cross-env GITHUB_TOKEN=$GITHUB_TOKEN release-it"
2625
},
2726
"dependencies": {

0 commit comments

Comments
 (0)