From cb946ceb250c26fa0a261b597683396e88a4e46c Mon Sep 17 00:00:00 2001 From: wkylin Date: Thu, 10 Oct 2024 17:41:04 +0800 Subject: [PATCH] chore: ad s chore --- .husky/prepare-commit-msg | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) create mode 100644 .husky/prepare-commit-msg diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg new file mode 100644 index 00000000..cb932df0 --- /dev/null +++ b/.husky/prepare-commit-msg @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +exec < /dev/tty && npx cz --hook || true diff --git a/README.md b/README.md index 1a39aca0..76996b07 100644 --- a/README.md +++ b/README.md @@ -625,6 +625,7 @@ npm version [| major | minor | patch | premajor | preminor | prepatch | prerelea npx husky add .husky/pre-commit "npx lint-staged" npx husky add .husky/pre-commit "npx pretty-quick --staged" npx husky add .husky/commit-msg 'npx --no-install commitlint --edit' + npx husky add .husky/prepare-commit-msg 'exec < /dev/tty && npx cz --hook || true' ``` ## Show your support