Skip to content

Commit

Permalink
chore: upgrade husky v8
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Dec 22, 2022
1 parent 0730295 commit 658798a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit ""
npx --no-install commitlint --edit ""
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run build
npx lint-staged
npx lint-staged
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
"test:post-build": "node dist/index.js test",
"start": "tsc -p tsconfig.json --watch",
"release": "npm run test && release-it",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"doctoc": "doctoc README.md"
"doctoc": "doctoc README.md",
"prepare": "npx husky install"
},
"files": [
"dist",
"templates",
"conf"
],
"engines": {
"node": ">=12.0.0"
"node": "^14.18.0 || >=16.0.0"
},
"dependencies": {
"@babel/core": "^7.18.6",
Expand Down Expand Up @@ -132,7 +132,7 @@
"cssnano": "^5.1.12",
"doctoc": "^2.2.0",
"dts-cli": "file:.",
"husky": "^7.0.4",
"husky": "^8.0.0",
"lint-staged": "^12.5.0",
"pinst": "^3.0.0",
"react": "^16.14.0",
Expand Down

0 comments on commit 658798a

Please sign in to comment.