diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 8b1378917..000000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.mise.toml b/.mise.toml index 390bc92b8..0f19d1d94 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,2 +1,2 @@ [tools] -node = "23.3.0" +node = "21.3.0" diff --git a/package.json b/package.json index 86b59f94b..14339a338 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --noEmit", - "postinstall": "husky install" + "postinstall": "husky" }, "dependencies": { "@chenfengyuan/vue-countdown": "2", @@ -82,5 +82,15 @@ "vite-plugin-pages": "^0.28.0", "vue-json-viewer": "3", "vue-tsc": "^1.0.12" + }, + "config": { + "commitizen": { + "path": "cz-conventional-changelog" + } + }, + "husky": { + "hooks": { + "prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true" + } } -} +} \ No newline at end of file