ci: husky 调整

This commit is contained in:
RubyLiu 2023-05-24 14:58:24 +08:00 committed by 刘瑞斌
parent 5fce7ee1c2
commit 9ae14472ab
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm commitlint --edit $1
cd frontend && npx commitlint --edit $1

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run lint-staged
cd frontend && npm run lint-staged

View File

@ -14,7 +14,7 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint:styles": "stylelint 'src/**/*.{vue,html,css,scss,less}' --fix",
"lint-staged": "npx lint-staged",
"prepare": "husky install",
"prepare": "cd .. && husky install frontend/.husky",
"test": "vitest",
"coverage": "vitest run --coverage"
},