Adapt changes for Husky v9
All checks were successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Henrik HerHde Huettemann 2024-01-26 15:59:14 +01:00
parent 92730022a1
commit a19ca1d996
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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": {