diff --git a/.husky/commit-msg b/.husky/commit-msg index 10cb551..bd5945a 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,3 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" pnpm commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 6161053..d3afc67 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,3 @@ -turbo check-types && turbo test:changed && npx lint-staged \ No newline at end of file +#!/bin/sh + +turbo check-types && turbo test:changed && npx lint-staged diff --git a/commitlint.config.js b/commitlint.config.js index 69b4242..dcd0c9d 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,4 @@ +/** @type {import('cz-git').UserConfig} */ module.exports = { extends: ["@commitlint/config-conventional"], }; diff --git a/package.json b/package.json index c29c887..dae1dbf 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "private": true, "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a", "scripts": { - "prepare": "husky && turbo prisma-generate" + "prepare": "husky && turbo prisma-generate", + "commit": "git-cz" }, "devDependencies": { "@commitlint/cli": "^19.3.0",