@programinglive/commiter 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +2 -0
- package/commitlint.config.cjs +4 -1
- package/index.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.5](https://github.com/programinglive/commiter/compare/v1.0.4...v1.0.5) (2025-10-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
* allow release commits with emoji ([26c4afa](https://github.com/programinglive/commiter/commit/26c4afa26fc7c11c91ac576dcba197cba5d3d98a))
|
|
11
|
+
|
|
5
12
|
### [1.0.4](https://github.com/programinglive/commiter/compare/v1.0.3...v1.0.4) (2025-10-19)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -150,6 +150,8 @@ type(scope): subject
|
|
|
150
150
|
|
|
151
151
|
Valid types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`
|
|
152
152
|
|
|
153
|
+
Release commits generated by `standard-version` such as `chore(release): 1.0.0 🚀` are automatically ignored by `commitlint`.
|
|
154
|
+
|
|
153
155
|
### First release
|
|
154
156
|
|
|
155
157
|
If this is your first release and you don't have a version tag yet:
|
package/commitlint.config.cjs
CHANGED
package/index.js
CHANGED
|
@@ -72,8 +72,14 @@ function setupCommiter() {
|
|
|
72
72
|
const isEsmProject = packageJson.type === 'module';
|
|
73
73
|
const commitlintConfigFile = isEsmProject ? 'commitlint.config.js' : 'commitlint.config.cjs';
|
|
74
74
|
const commitlintConfigContent = isEsmProject
|
|
75
|
-
? `export default {
|
|
76
|
-
|
|
75
|
+
? `export default {
|
|
76
|
+
extends: ['@commitlint/config-conventional'],
|
|
77
|
+
ignores: [(message) => message.startsWith('chore(release):')]
|
|
78
|
+
}\n`
|
|
79
|
+
: `module.exports = {
|
|
80
|
+
extends: ['@commitlint/config-conventional'],
|
|
81
|
+
ignores: [(message) => message.startsWith('chore(release):')]
|
|
82
|
+
}\n`;
|
|
77
83
|
|
|
78
84
|
const legacyCommitlintConfigFile = isEsmProject ? 'commitlint.config.cjs' : 'commitlint.config.js';
|
|
79
85
|
if (fs.existsSync(legacyCommitlintConfigFile)) {
|