Skip to content

Commit abe15ce

Browse files
committed
Set up Husky for v9+
1 parent b8c1294 commit abe15ce

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

.husky/post-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run run-if-changed

.husky/post-merge

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run run-if-changed

.husky/post-rewrite

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run run-if-changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"test": "eslint .",
3131
"preversion": "npm run test",
3232
"postversion": "git push --tags && git push && hub release create --browse $npm_package_version",
33-
"run-if-changed": "./run-if-changed.js"
33+
"run-if-changed": "./run-if-changed.js",
34+
"prepare": "husky"
3435
},
3536
"husky": {
3637
"hooks": {

0 commit comments

Comments
 (0)