diff --git a/package.json b/package.json index 2e7be98..a71818b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,12 @@ "clean": "rimraf dist out", "format:check": "prettier --check .", "prepare": "husky", - "commit": "git add . && git-cz" + "commit": "git add . && (git status --porcelain | findstr . >nul 2>&1 && git-cz || echo ✅ 工作区无改动,无需提交!)" + }, + "config": { + "commitizen": { + "path": "cz-git" + } }, "dependencies": { "@arco-design/web-vue": "^2.57.0",