wisdom 14.3.1 → 14.4.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2023.10.31, v14.4.0
2
+
3
+ feature:
4
+ - 141739e wisdom: @putout/cli-choose v1.0.1
5
+
1
6
  2023.10.12, v14.3.1
2
7
 
3
8
  feature:
package/lib/prompts.js CHANGED
@@ -1,33 +1,16 @@
1
1
  import enquirer from 'enquirer';
2
2
  import actions from 'enquirer/lib/combos.js';
3
3
  import tryToCatch from 'try-to-catch';
4
+ import {choose as chooseCLI} from '@putout/cli-choose';
4
5
 
5
6
  const {Select, Confirm} = enquirer;
6
7
 
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
- };
18
-
19
8
  export const choose = async () => {
20
- const prompt = new Select({
21
- name: 'version',
22
- message: 'What type of changes are you goint to publish 🎁 ?',
23
- choices: [
24
- 'patch',
25
- 'minor',
26
- 'major',
27
- ],
28
- });
29
-
30
- return await run(prompt);
9
+ return chooseCLI('What type of changes are you goint to publish 🎁 ?', [
10
+ 'patch',
11
+ 'minor',
12
+ 'major',
13
+ ]);
31
14
  };
32
15
 
33
16
  export const ask = async (name, version) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wisdom",
3
- "version": "14.3.1",
3
+ "version": "14.4.0",
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",