@commitlint/prompt-cli 18.6.0 → 19.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/README.md +7 -7
- package/cli.js +3 -3
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
> commit prompt using commitlint.config.js
|
|
2
|
-
|
|
3
1
|
# @commitlint/prompt-cli
|
|
4
2
|
|
|
3
|
+
commit prompt using commitlint.config.js
|
|
4
|
+
|
|
5
5
|
## Getting started
|
|
6
6
|
|
|
7
|
-
```
|
|
8
|
-
npm install
|
|
9
|
-
echo "
|
|
7
|
+
```sh
|
|
8
|
+
npm install -g @commitlint/prompt-cli @commitlint/config-angular
|
|
9
|
+
echo "export default {extends: ['@commitlint/config-angular']};" > commitlint.config.js
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
```
|
|
12
|
+
```sh
|
|
13
13
|
git add .
|
|
14
14
|
commit
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
A full usage guide is available at [docs/prompt](https://
|
|
17
|
+
A full usage guide is available at [docs/prompt](https://commitlint.js.org/guides/use-prompt).
|
package/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import {prompter} from '@commitlint/prompt';
|
|
3
|
+
import {execa} from 'execa';
|
|
4
|
+
import inquirer from 'inquirer';
|
|
5
5
|
|
|
6
6
|
main().catch((err) => {
|
|
7
7
|
setTimeout(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/prompt-cli",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "19.0.0",
|
|
4
5
|
"description": "commit prompt using commitlint.config.js",
|
|
5
6
|
"files": [
|
|
6
7
|
"cli.js"
|
|
@@ -32,13 +33,13 @@
|
|
|
32
33
|
"node": ">=v18"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@commitlint/test": "^
|
|
36
|
-
"@commitlint/utils": "^
|
|
36
|
+
"@commitlint/test": "^19.0.0",
|
|
37
|
+
"@commitlint/utils": "^19.0.0"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@commitlint/prompt": "^
|
|
40
|
-
"execa": "^
|
|
41
|
-
"inquirer": "^
|
|
40
|
+
"@commitlint/prompt": "^19.0.0",
|
|
41
|
+
"execa": "^8.0.1",
|
|
42
|
+
"inquirer": "^9.2.15"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f"
|
|
44
45
|
}
|