From a3522df29876ae519de978c8bd393fa955de8d44 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Wed, 20 Oct 2021 09:26:27 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=B7=A5=E7=A8=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 4ab9039..a9b7523 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -2,3 +2,5 @@ . "$(dirname "$0")/_/husky.sh" npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1" +npx --no-install commitlint --edit .git/COMMIT_EDITMSG +npx --no-install commitlint --edit .git/COMMIT_EDITMSG diff --git a/package.json b/package.json index 693f8a9..69a3298 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "dev": "vite", "build": "vite build", "serve": "vite preview", - "commit": "cz", + "cz": "git add . && git cz", "prettier": "npx prettier --write .", "prepare": "husky install" },