Skip to content

Commit 67f30b9

Browse files
committed
fix: husky
1 parent 1902626 commit 67f30b9

File tree

4 files changed

+8
-35
lines changed

4 files changed

+8
-35
lines changed

.husky/_/husky.sh

+6-26
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
1-
#!/bin/sh
2-
if [ -z "$husky_skip_init" ]; then
3-
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5-
}
1+
echo "husky - DEPRECATED
62
7-
readonly hook_name="$(basename "$0")"
8-
debug "starting $hook_name..."
3+
Please remove the following two lines from $0:
94
10-
if [ "$HUSKY" = "0" ]; then
11-
debug "HUSKY env variable is set to 0, skipping hook"
12-
exit 0
13-
fi
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
147
15-
if [ -f ~/.huskyrc ]; then
16-
debug "sourcing ~/.huskyrc"
17-
. ~/.huskyrc
18-
fi
19-
20-
export readonly husky_skip_init=1
21-
sh -e "$0" "$@"
22-
exitCode="$?"
23-
24-
if [ $exitCode != 0 ]; then
25-
echo "husky - $hook_name hook exited with code $exitCode (error)"
26-
fi
27-
28-
exit $exitCode
29-
fi
8+
They WILL FAIL in v10.0.0
9+
"

.husky/commit-msg

-4
This file was deleted.

.husky/pre-commit

100755100644
+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
pnpm format && pnpm lint && pnpm build && pnpm test
1+
pnpm test && pnpm commitlint --config commitlint.config.js --edit "$1"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
"typescript": "~5.6.3"
4949
},
5050
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
51-
}
51+
}

0 commit comments

Comments
 (0)