wisdom 14.3.1 → 14.4.1
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 +10 -0
- package/lib/prompts.js +8 -24
- package/package.json +2 -1
package/ChangeLog
CHANGED
package/lib/prompts.js
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
import enquirer from 'enquirer';
|
|
2
|
-
import actions from 'enquirer/lib/combos.js';
|
|
3
2
|
import tryToCatch from 'try-to-catch';
|
|
3
|
+
import {choose as chooseCLI} from '@putout/cli-choose';
|
|
4
4
|
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
const custom = {
|
|
8
|
-
h: 'left',
|
|
9
|
-
j: 'down',
|
|
10
|
-
k: 'up',
|
|
11
|
-
l: 'right',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
actions.keys = {
|
|
15
|
-
...actions.keys,
|
|
16
|
-
...custom,
|
|
17
|
-
};
|
|
5
|
+
const {Confirm} = enquirer;
|
|
18
6
|
|
|
19
7
|
export const choose = async () => {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'minor',
|
|
26
|
-
'major',
|
|
27
|
-
],
|
|
28
|
-
});
|
|
8
|
+
const choises = [
|
|
9
|
+
'patch',
|
|
10
|
+
'minor',
|
|
11
|
+
'major',
|
|
12
|
+
];
|
|
29
13
|
|
|
30
|
-
return await
|
|
14
|
+
return await chooseCLI('What type of changes are you goint to publish 🎁 ?', choises);
|
|
31
15
|
};
|
|
32
16
|
|
|
33
17
|
export const ask = async (name, version) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wisdom",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.1",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "configurable publish releases to github and npm",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/wisdom",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"url": "git://github.com/coderaiser/wisdom.git"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@putout/cli-choose": "^1.0.1",
|
|
35
36
|
"changelog-io": "^8.0.0",
|
|
36
37
|
"currify": "^4.0.0",
|
|
37
38
|
"enquirer": "^2.3.6",
|