From b78b2011e55304c9d9c0eb4c34461dbb69834431 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 6 Jun 2025 16:05:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0commit-msg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 5 +---- .husky/pre-commit | 7 +------ .husky/pre-push | 3 --- package.json | 5 ++--- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index e8511eae..d468455f 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install commitlint --edit $1 +npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 68d8d979..35aa522a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged - -pnpm check:type +npx lint-staged && npm run check:type diff --git a/.husky/pre-push b/.husky/pre-push index 449fcdee..72c4429b 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm test diff --git a/package.json b/package.json index 30300b01..35d0474e 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ "reinstall": "pnpm clean:all && pnpm bootstrap", "test": "vitest run", "coverage": "vitest run --coverage", - "prepare": "husky install", - "commit": "git-cz", + "prepare": "husky", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "release": "node scripts/release.mjs" }, @@ -87,7 +86,7 @@ } }, "lint-staged": { - "*.{js,ts,vue}": "eslint --fix --cache", + "*.{js,ts,vue}": "npm run lint-fix", "*.scss": "prettier --write" } }