mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 12:35:53 +00:00
chore: make sure that husky hooks are executed
This commit is contained in:
parent
ab9d59a30d
commit
cbfa98c6da
7
.husky/commit-msg
Normal file
7
.husky/commit-msg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx commitlint --edit $1
|
||||||
|
|
||||||
|
exit 0
|
@ -1 +0,0 @@
|
|||||||
npm test
|
|
@ -9,18 +9,11 @@
|
|||||||
"typecheck": "pnpm run -r typecheck",
|
"typecheck": "pnpm run -r typecheck",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"lint-staged": {},
|
|
||||||
"commitlint": {
|
"commitlint": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"@commitlint/config-conventional"
|
"@commitlint/config-conventional"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged",
|
|
||||||
"commit-msg": "commitlint --edit $1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "20.15.1",
|
"node": "20.15.1",
|
||||||
"pnpm": "9.4.0"
|
"pnpm": "9.4.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user