소스 검색

fix: 修复husky问题

kailong321200875 9 달 전
부모
커밋
7b8e58e0ec
2개의 변경된 파일2개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 4
      .husky/commit-msg
  2. 1 7
      .husky/pre-commit

+ 1 - 4
.husky/commit-msg

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

+ 1 - 7
.husky/pre-commit

@@ -1,8 +1,2 @@
-#!/bin/sh
-. "$(dirname "$0")/husky.sh"
-
-[ -n "$CI" ] && exit 0
-
-# Format and submit code according to lintstagedrc.js configuration
 npm run ts:check
-npm run lint:lint-staged
+npm run lint:lint-staged