Adapt changes for Husky v9
This commit is contained in:
parent
92730022a1
commit
a19ca1d996
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# THIS PART is generated by pre-commit: https://pre-commit.com
|
||||
|
||||
|
@ -12,12 +11,12 @@ HERE="$(cd "$(dirname "$0")" && pwd)"
|
|||
ARGS+=(--hook-dir "$HERE" -- "$@")
|
||||
|
||||
if [ -x "$INSTALL_PYTHON" ]; then
|
||||
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
|
||||
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
|
||||
elif command -v pre-commit > /dev/null; then
|
||||
exec pre-commit "${ARGS[@]}"
|
||||
exec pre-commit "${ARGS[@]}"
|
||||
else
|
||||
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
||||
exit 1
|
||||
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
||||
exit 1
|
||||
fi
|
||||
### End of pre-commit py part
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"test": "rm -rf dist/ && jest",
|
||||
"compile": "rm -rf dist/ && tsc",
|
||||
"start": "npm run compile && node dist/app.js",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky"
|
||||
},
|
||||
"version": "0.1.0",
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in a new issue