chore: 更新commit-msg

This commit is contained in:
roymondchen 2025-06-06 16:05:26 +08:00
parent 3097e8eddb
commit b78b2011e5
4 changed files with 4 additions and 16 deletions

View File

@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit $1

View File

@ -1,6 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
pnpm check:type
npx lint-staged && npm run check:type

View File

@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm test

View File

@ -27,8 +27,7 @@
"reinstall": "pnpm clean:all && pnpm bootstrap",
"test": "vitest run",
"coverage": "vitest run --coverage",
"prepare": "husky install",
"commit": "git-cz",
"prepare": "husky",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "node scripts/release.mjs"
},
@ -87,7 +86,7 @@
}
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --fix --cache",
"*.{js,ts,vue}": "npm run lint-fix",
"*.scss": "prettier --write"
}
}