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 npx --no-install commitlint --edit $1
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit $1

View File

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

View File

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

View File

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