diff --git a/.cz-config.cjs b/.cz-config.cjs index f0335c6..b02bab2 100644 --- a/.cz-config.cjs +++ b/.cz-config.cjs @@ -2,7 +2,7 @@ module.exports = { types: [ { value: "feat", name: "feat: ✨ A new feature" }, { value: "fix", name: "fix: 🐛 A bug fix" }, - { value: "docs", name: "docs: 📚 Documentation changes" }, + { value: "docs", name: "docs: 📚 Documentation" }, { value: "style", name: "style: 💄 Code style changes" }, { value: "refactor", name: "refactor: ♻️ Code restructuring" }, { value: "perf", name: "perf: ⚡ Performance improvements" }, @@ -13,7 +13,7 @@ module.exports = { allowCustomScopes: true, allowBreakingChanges: ["feat", "fix"], messages: { - type: "Select the type of change that you're committing:", + type: "Select the type of change you're committing:", scope: "Specify the scope (optional):", customScope: "Specify the custom scope:", subject: "Write a short description of the change:", diff --git a/.czrc b/.czrc new file mode 100644 index 0000000..270d064 --- /dev/null +++ b/.czrc @@ -0,0 +1,4 @@ +{ + "path": "node_modules/cz-customizable", + "config": ".cz-config.cjs" +} diff --git a/package.json b/package.json index cb00b23..b20cd34 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "link": "npm link", "clean:playground": "rm -r ./playground/prisma ./playground/lib ./playground/node_modules", "prepare": "husky install", - "commit": "git-cz" + "commit": "npx git-cz", + "commitlint": "commitlint --edit" }, "dependencies": { "@nuxt/devtools-kit": "^1.3.3", @@ -64,7 +65,10 @@ }, "config": { "commitizen": { - "path": "./node_modules/cz-customizable" + "path": "node_modules/cz-customizable" + }, + "cz-customizable": { + "config": "./.cz-config.cjs" } } }