Skip to content

Commit

Permalink
chore: add cz-git plugin
Browse files Browse the repository at this point in the history
re #191
  • Loading branch information
cedoor committed Mar 7, 2024
1 parent ddc6a63 commit 21d4424
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const fs = require("node:fs")
const path = require("node:path")

const packages = fs.readdirSync(path.resolve(__dirname, "packages"))

module.exports = {
extends: ["@commitlint/config-conventional"],
prompt: {
scopes: [...packages],
markBreakingChangeMode: true,
allowCustomIssuePrefix: false,
allowEmptyIssuePrefix: false,
issuePrefixes: [
{
value: "re",
name: "re: ISSUES related"
}
]
}
}
3 changes: 0 additions & 3 deletions .commitlintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"benny": "^3.7.1",
"changelogithub": "patch:changelogithub@npm%3A0.13.3#~/.yarn/patches/changelogithub-npm-0.13.3-1783949906.patch",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"cz-git": "^1.9.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
Expand All @@ -71,7 +71,7 @@
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
"path": "./node_modules/cz-git"
}
}
}
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6583,7 +6583,7 @@ __metadata:
languageName: node
linkType: hard

"cz-conventional-changelog@npm:3.3.0, cz-conventional-changelog@npm:^3.3.0":
"cz-conventional-changelog@npm:3.3.0":
version: 3.3.0
resolution: "cz-conventional-changelog@npm:3.3.0"
dependencies:
Expand All @@ -6601,6 +6601,13 @@ __metadata:
languageName: node
linkType: hard

"cz-git@npm:^1.9.0":
version: 1.9.0
resolution: "cz-git@npm:1.9.0"
checksum: 10/cae0dc50c3093600073a384493066cd50a31c66cf93c5601733510ac564bf01febb2bd9b873a71c5f623d64d69160a7b23881069088cd77342364573cfa6f4b8
languageName: node
linkType: hard

"d@npm:1, d@npm:^1.0.1":
version: 1.0.1
resolution: "d@npm:1.0.1"
Expand Down Expand Up @@ -18753,7 +18760,7 @@ __metadata:
benny: "npm:^3.7.1"
changelogithub: "patch:changelogithub@npm%3A0.13.3#~/.yarn/patches/changelogithub-npm-0.13.3-1783949906.patch"
commitizen: "npm:^4.3.0"
cz-conventional-changelog: "npm:^3.3.0"
cz-git: "npm:^1.9.0"
eslint: "npm:^8.56.0"
eslint-config-airbnb-base: "npm:^15.0.0"
eslint-config-airbnb-typescript: "npm:^17.1.0"
Expand Down

0 comments on commit 21d4424

Please sign in to comment.