From e35abb1c9899bb5c487b8643037817848609e2d4 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Mon, 13 Feb 2023 20:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=89=8D=E9=AA=8C=E8=AF=81=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 2 +- .husky/pre-commit | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 .husky/commit-msg mode change 100644 => 100755 .husky/pre-commit 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" ] } }