Skip to content

Commit

Permalink
chore(custom): add required configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-arch committed Nov 7, 2024
1 parent d1bc082 commit cc7d5d0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .cz-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand All @@ -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:",
Expand Down
4 changes: 4 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"path": "node_modules/cz-customizable",
"config": ".cz-config.cjs"
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -64,7 +65,10 @@
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
"path": "node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./.cz-config.cjs"
}
}
}

0 comments on commit cc7d5d0

Please sign in to comment.