Skip to content

Commit e35abb1

Browse files
committed
fix: 修复代码提交前验证流程
1 parent 910c19b commit e35abb1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.husky/commit-msg

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm exec commitlint --config .commitlintrc.json --edit "${1}"
4+
npx --no -- commitlint --edit

.husky/pre-commit

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm exec lint-staged
4+
npx lint-staged

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
},
4949
"lint-staged": {
5050
"*.{js,ts,jsx,tsx,vue}": [
51-
"pnpm run lint:fix",
52-
"pnpm run type-check"
51+
"pnpm lint:fix",
52+
"pnpm type-check"
5353
]
5454
}
5555
}

0 commit comments

Comments
 (0)