build(husky): 修复commitlint

This commit is contained in:
randy 2023-04-21 11:35:59 +08:00
parent 6e20517019
commit c443f9650c
4 changed files with 10 additions and 7 deletions

4
.husky/commit-msg Normal file
View File

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

5
.husky/pre-commit Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run lint-staged
npm test

View File

@ -45,11 +45,5 @@
"standard-version": "^9.5.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && test",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
}
}

View File

@ -1,3 +1,3 @@
export * from "./utils/permission";
console.log("index")
console.log("index");