@commitlint/cz-commitlint 19.0.3 → 19.1.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.cjs +4 -0
  3. package/package.json +8 -3
package/README.md CHANGED
@@ -13,9 +13,9 @@ The interactive process is inspired by [cz-conventional-changelog](https://githu
13
13
  ### Configure commitizen adapter
14
14
 
15
15
  ```bash
16
- npm install --save-dev @commitlint/cz-commitlint commitizen inquirer@8 # inquirer is required as peer dependency
16
+ npm install --save-dev @commitlint/cz-commitlint commitizen inquirer@9 # inquirer is required as peer dependency
17
17
  # or yarn
18
- yarn add -D @commitlint/cz-commitlint commitizen inquirer@8 # inquirer is required as peer dependency
18
+ yarn add -D @commitlint/cz-commitlint commitizen inquirer@9 # inquirer is required as peer dependency
19
19
  ```
20
20
 
21
21
  In package.json
package/index.cjs ADDED
@@ -0,0 +1,4 @@
1
+ /** @type {Awaited<typeof import('./lib/index.js')>['prompter']} */
2
+ exports.prompter = async (...args) => {
3
+ (await import('./lib/index.js')).prompter(...args);
4
+ };
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@commitlint/cz-commitlint",
3
3
  "type": "module",
4
- "version": "19.0.3",
4
+ "version": "19.1.0",
5
5
  "description": "Commitizen adapter using the commitlint.config.js",
6
6
  "main": "./lib/index.js",
7
+ "exports": {
8
+ "import": "./lib/index.js",
9
+ "require": "./index.cjs"
10
+ },
7
11
  "files": [
12
+ "index.cjs",
8
13
  "lib"
9
14
  ],
10
15
  "keywords": [
@@ -39,7 +44,7 @@
39
44
  },
40
45
  "dependencies": {
41
46
  "@commitlint/ensure": "^19.0.3",
42
- "@commitlint/load": "^19.0.3",
47
+ "@commitlint/load": "^19.1.0",
43
48
  "@commitlint/types": "^19.0.3",
44
49
  "chalk": "^5.3.0",
45
50
  "lodash.isplainobject": "^4.0.6",
@@ -56,5 +61,5 @@
56
61
  "commitizen": "^4.2.4",
57
62
  "lodash.isfunction": "^3.0.9"
58
63
  },
59
- "gitHead": "9b4ac34069e06cd327760ce37adbde8d537d8e3e"
64
+ "gitHead": "8d7a3d5d49ab77733e166cb5f195b1b7f277b4a7"
60
65
  }