chore: Husky update to v9

This commit is contained in:
BaboonKing 2024-11-21 16:22:30 +08:00
parent 589f64dc8d
commit 397be94e79
4 changed files with 9 additions and 11 deletions

View File

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

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
# pnpm test

View File

@ -7,11 +7,11 @@
"type": "module",
"packageManager": "pnpm@8.15.9",
"scripts": {
"prepare": "husky",
"dev": "vite --host",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"new": "plop --plopfile ./plop/plopfile.js",
"postinstall": "husky install",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint .",
@ -73,7 +73,7 @@
"eslint": "9.15.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-vue": "9.31.0",
"husky": "^8.0.1",
"husky": "9.1.7",
"npm-run-all2": "7.0.1",
"plop": "4.0.1",
"prettier": "3.3.3",

10
pnpm-lock.yaml generated
View File

@ -164,8 +164,8 @@ devDependencies:
specifier: 9.31.0
version: 9.31.0(eslint@9.15.0)
husky:
specifier: ^8.0.1
version: 8.0.1
specifier: 9.1.7
version: 9.1.7
npm-run-all2:
specifier: 7.0.1
version: 7.0.1
@ -3264,9 +3264,9 @@ packages:
engines: {node: '>=10.17.0'}
dev: true
/husky@8.0.1:
resolution: {integrity: sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==}
engines: {node: '>=14'}
/husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
dev: true