mirror of
https://github.com/navikt/aksel.git
synced 2026-10-12 16:52:03 +00:00
⬆️ Bump husky from 8.0.3 to 9.1.7 (#5149)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ken <ken.aleksander@gmail.com>
This commit is contained in:
1 parent
74cfcef435
commit
5f28b8f1e7
7 files changed
+15
-54
No files matched your search
+7
-34
@@ -1,36 +1,9 @@
|
||||
echo "husky - DEPRECATED
|
||||
|
||||
Please remove the following two lines from $0:
|
||||
|
||||
#!/usr/bin/env sh
|
||||
if [ -z "$husky_skip_init" ]; then
|
||||
debug () {
|
||||
if [ "$HUSKY_DEBUG" = "1" ]; then
|
||||
echo "husky (debug) - $1"
|
||||
fi
|
||||
}
|
||||
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
|
||||
|
||||
readonly hook_name="$(basename -- "$0")"
|
||||
debug "starting $hook_name..."
|
||||
|
||||
if [ "$HUSKY" = "0" ]; then
|
||||
debug "HUSKY env variable is set to 0, skipping hook"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f ~/.huskyrc ]; then
|
||||
debug "sourcing ~/.huskyrc"
|
||||
. ~/.huskyrc
|
||||
fi
|
||||
|
||||
readonly husky_skip_init=1
|
||||
export husky_skip_init
|
||||
sh -e "$0" "$@"
|
||||
exitCode="$?"
|
||||
|
||||
if [ $exitCode != 0 ]; then
|
||||
echo "husky - $hook_name hook exited with code $exitCode (error)"
|
||||
fi
|
||||
|
||||
if [ $exitCode = 127 ]; then
|
||||
echo "husky - command not found in PATH=$PATH"
|
||||
fi
|
||||
|
||||
exit $exitCode
|
||||
fi
|
||||
They WILL FAIL in v10.0.0
|
||||
"
|
||||
@@ -1,6 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
CHANGED=`git diff $1 $2 --stat -- yarn.lock | wc -l`
|
||||
if [ $CHANGED -gt 0 ];
|
||||
then
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
CHANGED=`git diff HEAD@{1} --stat -- yarn.lock | wc -l`
|
||||
if [ $CHANGED -gt 0 ];
|
||||
then
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname $0)/_/husky.sh"
|
||||
|
||||
yarn lint-staged
|
||||
@@ -1,6 +1,3 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname $0)/_/husky.sh"
|
||||
|
||||
# Only run tests when pushing to main branch
|
||||
while read local_ref local_sha remote_ref remote_sha; do
|
||||
if [ "$remote_ref" = "refs/heads/main" ]; then
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@
|
||||
"changeset": "changeset",
|
||||
"create-version": "changeset version && yarn changelog && yarn",
|
||||
"release": "yarn boot && yarn docgen:meta && changeset publish && yarn script:git-release",
|
||||
"postinstall": "husky install"
|
||||
"postinstall": "husky"
|
||||
},
|
||||
"workspaces": [
|
||||
"@navikt/core/*",
|
||||
@@ -108,7 +108,7 @@
|
||||
"eslint-plugin-testing-library": "^7.16.0",
|
||||
"fast-glob": "3.3.3",
|
||||
"globals": "^17.7.0",
|
||||
"husky": "^8.0.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "17.0.8",
|
||||
"playwright": "1.61.1",
|
||||
"prettier": "3.8.3",
|
||||
|
||||
@@ -11539,7 +11539,7 @@ __metadata:
|
||||
eslint-plugin-testing-library: "npm:^7.16.0"
|
||||
fast-glob: "npm:3.3.3"
|
||||
globals: "npm:^17.7.0"
|
||||
husky: "npm:^8.0.0"
|
||||
husky: "npm:^9.1.7"
|
||||
lint-staged: "npm:17.0.8"
|
||||
playwright: "npm:1.61.1"
|
||||
prettier: "npm:3.8.3"
|
||||
@@ -17403,12 +17403,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"husky@npm:^8.0.0":
|
||||
version: 8.0.3
|
||||
resolution: "husky@npm:8.0.3"
|
||||
"husky@npm:^9.1.7":
|
||||
version: 9.1.7
|
||||
resolution: "husky@npm:9.1.7"
|
||||
bin:
|
||||
husky: lib/bin.js
|
||||
checksum: 10/b754cf70fdc97c3b60fec5b80056b9c11436464953b1691bf2b5dcf0081fb6685d2c5f47abb8b2b1c49f504aabea5321fdd6496f8b755d9f6e7525a493406abb
|
||||
husky: bin.js
|
||||
checksum: 10/c2412753f15695db369634ba70f50f5c0b7e5cb13b673d0826c411ec1bd9ddef08c1dad89ea154f57da2521d2605bd64308af748749b27d08c5f563bcd89975f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in new issue
Block a user