diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100644 new mode 100755 index 827a8d8..4002db7 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -pnpm exec commitlint --config .commitlintrc.json --edit "${1}" +npx --no -- commitlint --edit diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 index 58b1861..d24fdfc --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -pnpm exec lint-staged +npx lint-staged diff --git a/package.json b/package.json index 4eb61e0..1c4976e 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ }, "lint-staged": { "*.{js,ts,jsx,tsx,vue}": [ - "pnpm run lint:fix", - "pnpm run type-check" + "pnpm lint:fix", + "pnpm type-check" ] } }