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 <chris.kay@arm.com>
This commit is contained in:
Chris Kay 2024-03-07 15:27:38 +00:00
parent 10eb851f92
commit 7944421ba4
4 changed files with 1 additions and 8 deletions

View file

@ -1,7 +1,4 @@
#!/bin/sh #!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
"$(dirname "$0")/commit-msg.gerrit" "$@" "$(dirname "$0")/commit-msg.gerrit" "$@"
"$(dirname "$0")/commit-msg.commitlint" "$@" "$(dirname "$0")/commit-msg.commitlint" "$@"

View file

@ -1,6 +1,3 @@
#!/bin/sh #!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
"$(dirname "$0")/pre-commit.copyright" "$@" "$(dirname "$0")/pre-commit.copyright" "$@"

1
package-lock.json generated
View file

@ -7,7 +7,6 @@
"": { "": {
"name": "trusted-firmware-a", "name": "trusted-firmware-a",
"version": "2.10.0", "version": "2.10.0",
"hasInstallScript": true,
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.0.0", "@commitlint/cli": "^19.0.0",

View file

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": { "scripts": {
"postinstall": "husky install", "prepare": "husky",
"release": "standard-version" "release": "standard-version"
}, },
"engines": { "engines": {