commitizen 4.3.1 → 5.0.0
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/.github/workflows/release.yml +14 -7
- package/.husky/pre-commit +1 -0
- package/CONTRIBUTING.md +53 -21
- package/README.md +5 -6
- package/babel.config.js +21 -10
- package/bin/git-cz.js +1 -1
- package/dist/cli/parsers/commitizen.js +8 -2
- package/dist/cli/parsers.js +2 -2
- package/dist/cli/strategies/git-cz.js +5 -7
- package/dist/cli/strategies/git.js +4 -5
- package/dist/cli/strategies.js +1 -1
- package/dist/commitizen/adapter.js +53 -1412
- package/dist/commitizen/cache.js +7 -238
- package/dist/commitizen/commit.js +16 -566
- package/dist/commitizen/configLoader.js +1 -84
- package/dist/commitizen/init.js +32 -980
- package/dist/commitizen/staging.js +3 -255
- package/dist/commitizen.js +3 -3
- package/dist/common/util.js +50 -445
- package/dist/configLoader/findup.js +9 -315
- package/dist/configLoader/getContent.js +19 -647
- package/dist/configLoader/getNormalizedConfig.js +10 -384
- package/dist/configLoader/loader.js +6 -374
- package/dist/configLoader.js +1 -1
- package/dist/git/add.js +4 -114
- package/dist/git/commit.js +20 -802
- package/dist/git/init.js +3 -75
- package/dist/git/log.js +2 -175
- package/dist/git/whatChanged.js +4 -176
- package/dist/index.js +1 -56
- package/dist/npm.js +1 -32
- package/jobs/build.yml +19 -19
- package/package.json +39 -47
- package/pnpm-workspace.yaml +7 -0
package/package.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commitizen",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Git commit, but play nice with conventions.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"packageManager": "pnpm@12.16.1",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"check-coverage": "nyc check-coverage --statements
|
|
8
|
+
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
|
|
8
9
|
"commit": "node bin/git-cz",
|
|
9
10
|
"build": "babel src --out-dir dist",
|
|
10
11
|
"build:watch": "babel --watch src --out-dir dist",
|
|
11
|
-
"prepare": "
|
|
12
|
-
"report-coverage": "nyc report --reporter=lcov | codecov",
|
|
12
|
+
"prepare": "babel src --out-dir dist && (husky || true)",
|
|
13
13
|
"write-coverage": "nyc report --reporter=lcov --reporter=cobertura --reporter=html",
|
|
14
|
-
"semantic-release": "
|
|
15
|
-
"start": "
|
|
16
|
-
"test-actual": "mocha --reporter
|
|
17
|
-
"test": "nyc --require @babel/register
|
|
18
|
-
"test:watch": "
|
|
14
|
+
"semantic-release": "semantic-release",
|
|
15
|
+
"start": "pnpm run test:watch",
|
|
16
|
+
"test-actual": "mocha --require @babel/register --reporter ./test/reporters/multi-reporter.cjs --reporter-option output=./junit-testresults.xml test/tests/index.js",
|
|
17
|
+
"test": "nyc --require @babel/register pnpm run test-actual",
|
|
18
|
+
"test:watch": "mocha --require @babel/register --watch --watch-files src,test test/tests/index.js"
|
|
19
19
|
},
|
|
20
20
|
"config": {
|
|
21
21
|
"commitizen": {
|
|
22
22
|
"path": "./node_modules/cz-conventional-changelog"
|
|
23
|
-
},
|
|
24
|
-
"ghooks": {
|
|
25
|
-
"pre-commit": "npm run test && npm run check-coverage"
|
|
26
23
|
}
|
|
27
24
|
},
|
|
28
25
|
"homepage": "https://github.com/commitizen/cz-cli",
|
|
@@ -48,56 +45,51 @@
|
|
|
48
45
|
"author": "Jim Cummins <jimthedev@gmail.com> (https://github.com/jimthedev)",
|
|
49
46
|
"license": "MIT",
|
|
50
47
|
"devDependencies": {
|
|
51
|
-
"@babel/cli": "
|
|
52
|
-
"@babel/core": "
|
|
53
|
-
"@babel/
|
|
54
|
-
"@babel/
|
|
55
|
-
"@babel/register": "7.18.9",
|
|
48
|
+
"@babel/cli": "8.1.4",
|
|
49
|
+
"@babel/core": "8.1.4",
|
|
50
|
+
"@babel/preset-env": "8.1.4",
|
|
51
|
+
"@babel/register": "8.1.2",
|
|
56
52
|
"@istanbuljs/nyc-config-babel": "3.0.0",
|
|
57
|
-
"babel-plugin-istanbul": "
|
|
58
|
-
"chai": "
|
|
59
|
-
"
|
|
60
|
-
"conventional-changelog-conventionalcommits": "4.6.3",
|
|
53
|
+
"babel-plugin-istanbul": "8.0.0",
|
|
54
|
+
"chai": "6.3.0",
|
|
55
|
+
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
61
56
|
"cz-conventional-changelog-default-export": "0.0.0-semantically-released.1",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"mocha-multi-reporters": "1.5.1",
|
|
67
|
-
"nodemon": "2.0.20",
|
|
68
|
-
"nyc": "15.1.0",
|
|
57
|
+
"husky": "9.1.7",
|
|
58
|
+
"mocha": "12.0.3",
|
|
59
|
+
"npm-cli": "npm:npm@11.21.3",
|
|
60
|
+
"nyc": "18.0.0",
|
|
69
61
|
"proxyquire": "2.1.3",
|
|
70
|
-
"semantic-release": "
|
|
71
|
-
"semver": "7.
|
|
72
|
-
"sinon": "
|
|
73
|
-
"
|
|
62
|
+
"semantic-release": "26.0.1",
|
|
63
|
+
"semver": "7.8.6",
|
|
64
|
+
"sinon": "22.1.0",
|
|
65
|
+
"yarn-cli": "npm:yarn@1.22.22"
|
|
74
66
|
},
|
|
75
67
|
"dependencies": {
|
|
76
|
-
"cachedir": "2.
|
|
68
|
+
"cachedir": "2.4.0",
|
|
77
69
|
"cz-conventional-changelog": "3.3.0",
|
|
78
|
-
"dedent": "
|
|
79
|
-
"detect-indent": "
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"inquirer": "8.2.5",
|
|
85
|
-
"is-utf8": "^0.2.1",
|
|
86
|
-
"lodash": "4.17.21",
|
|
87
|
-
"minimist": "1.2.7",
|
|
88
|
-
"strip-bom": "4.0.0",
|
|
89
|
-
"strip-json-comments": "3.1.1"
|
|
70
|
+
"dedent": "1.7.2",
|
|
71
|
+
"detect-indent": "7.0.2",
|
|
72
|
+
"glob": "15.0.0",
|
|
73
|
+
"inquirer": "8.2.7",
|
|
74
|
+
"minimist": "1.2.8",
|
|
75
|
+
"strip-json-comments": "5.1.0"
|
|
90
76
|
},
|
|
91
77
|
"nyc": {
|
|
92
78
|
"extends": "@istanbuljs/nyc-config-babel",
|
|
93
79
|
"exclude": [
|
|
94
|
-
"src/cli",
|
|
95
80
|
"test"
|
|
96
81
|
]
|
|
97
82
|
},
|
|
98
83
|
"engineStrict": true,
|
|
99
84
|
"engines": {
|
|
100
|
-
"node": ">= 12"
|
|
85
|
+
"node": ">= 22.12"
|
|
86
|
+
},
|
|
87
|
+
"devEngines": {
|
|
88
|
+
"runtime": {
|
|
89
|
+
"name": "node",
|
|
90
|
+
"version": "^22.18.0 || ^24.11.0 || ^26.0.0",
|
|
91
|
+
"onFail": "error"
|
|
92
|
+
}
|
|
101
93
|
},
|
|
102
94
|
"collective": {
|
|
103
95
|
"type": "opencollective",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Pin exact versions when adding dependencies (was save-exact in .npmrc, which pnpm no longer reads).
|
|
2
|
+
saveExact: true
|
|
3
|
+
|
|
4
|
+
allowBuilds:
|
|
5
|
+
# yarn 1's preinstall only checks for corepack; the test suite runs the
|
|
6
|
+
# pinned yarn from node_modules/.bin and does not need it.
|
|
7
|
+
yarn: false
|