chore: make sure that husky hooks are executed

This commit is contained in:
Dominic Elm 2024-07-12 17:45:50 +02:00
parent ab9d59a30d
commit cbfa98c6da
3 changed files with 7 additions and 8 deletions

7
.husky/commit-msg Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
npx commitlint --edit $1
exit 0

View File

@ -1 +0,0 @@
npm test

View File

@ -9,18 +9,11 @@
"typecheck": "pnpm run -r typecheck",
"prepare": "husky"
},
"lint-staged": {},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint --edit $1"
}
},
"engines": {
"node": "20.15.1",
"pnpm": "9.4.0"