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" },