Skip to content

Commit e2867f3

Browse files
qqilihqweb-flow
andcommitted
chore: upgrade husky to v9.1.7
- Upgrade husky from v7 to v9.1.7 - Update git hooks to new format (remove deprecated husky.sh sourcing) - Remove deprecated 'husky install' prepare script Co-authored-by: GitHub Copilot <noreply@github.com>
1 parent dd2d775 commit e2867f3

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

.husky/commit-msg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
42
yarn commitlint --edit $1

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
42
yarn lint

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"lint": "eslint --ext .ts ./lib ./test",
2828
"build": "tsc -p tsconfig.build.json",
2929
"clean": "node -e \"['./coverage', './dist'].forEach(entry => require('fs').rmSync(entry, { recursive: true, force: true }));\"",
30-
"preversion": "yarn clean && yarn lint && yarn test && yarn build",
31-
"prepare": "husky install"
30+
"preversion": "yarn clean && yarn lint && yarn test && yarn build"
3231
},
3332
"dependencies": {
3433
"fast-xml-parser": "^5.3.0"
@@ -41,7 +40,7 @@
4140
"eslint": "^10.2.0",
4241
"eslint-config-prettier": "^10.1.8",
4342
"eslint-plugin-prettier": "^5.5.5",
44-
"husky": "^7.0.0",
43+
"husky": "^9.0.0",
4544
"prettier": "^2.7.1",
4645
"pretty-quick": "^3.1.3",
4746
"tsx": "^4.20.6",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,10 @@ human-signals@^2.1.0:
13251325
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
13261326
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
13271327

1328-
husky@^7.0.0:
1329-
version "7.0.4"
1330-
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535"
1331-
integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==
1328+
husky@^9.0.0:
1329+
version "9.1.7"
1330+
resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d"
1331+
integrity sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==
13321332

13331333
ignore@^5.1.4, ignore@^5.2.0:
13341334
version "5.2.0"

0 commit comments

Comments
 (0)