Skip to content

Commit 7944421

Browse files
committed
build(npm): adhere to Husky deprecation notice
Husky v8 adds the `husky init` subcommand, and v9 changes how it handles hooks. We no longer need the Husky preamble in our hooks, so update to the new `init` subcommand and remove the preambles. Change-Id: I18ea1bbaedbb4213cc04c21413d75c9757ff7986 Signed-off-by: Chris Kay <[email protected]>
1 parent 10eb851 commit 7944421

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

.husky/commit-msg

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/sh
22

3-
# shellcheck source=./_/husky.sh
4-
. "$(dirname "$0")/_/husky.sh"
5-
63
"$(dirname "$0")/commit-msg.gerrit" "$@"
74
"$(dirname "$0")/commit-msg.commitlint" "$@"

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#!/bin/sh
22

3-
# shellcheck source=./_/husky.sh
4-
. "$(dirname "$0")/_/husky.sh"
5-
63
"$(dirname "$0")/pre-commit.copyright" "$@"

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"private": true,
77
"scripts": {
8-
"postinstall": "husky install",
8+
"prepare": "husky",
99
"release": "standard-version"
1010
},
1111
"engines": {

0 commit comments

Comments
 (0)