@inquirer/rawlist 2.1.16 → 2.1.18
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 +22 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/esm/types/index.d.mts +1 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -14,6 +14,25 @@ Simple interactive command line prompt to display a raw list of choices (single
|
|
|
14
14
|
<tr>
|
|
15
15
|
<td>
|
|
16
16
|
|
|
17
|
+
```sh
|
|
18
|
+
npm install @inquirer/prompts
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
</td>
|
|
22
|
+
<td>
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
yarn add @inquirer/prompts
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
</td>
|
|
29
|
+
</tr>
|
|
30
|
+
<tr>
|
|
31
|
+
<td colSpan="2" align="center">Or</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr>
|
|
34
|
+
<td>
|
|
35
|
+
|
|
17
36
|
```sh
|
|
18
37
|
npm install @inquirer/rawlist
|
|
19
38
|
```
|
|
@@ -32,7 +51,9 @@ yarn add @inquirer/rawlist
|
|
|
32
51
|
# Usage
|
|
33
52
|
|
|
34
53
|
```js
|
|
35
|
-
import rawlist from '@inquirer/
|
|
54
|
+
import { rawlist } from '@inquirer/prompts';
|
|
55
|
+
// Or
|
|
56
|
+
// import rawlist from '@inquirer/rawlist';
|
|
36
57
|
|
|
37
58
|
const answer = await rawlist({
|
|
38
59
|
message: 'Select a package manager',
|
|
@@ -8,7 +8,7 @@ type Choice<Value> = {
|
|
|
8
8
|
declare const _default: <Value>(config: {
|
|
9
9
|
message: string;
|
|
10
10
|
choices: readonly (Separator | Choice<Value>)[];
|
|
11
|
-
theme?: PartialDeep<Theme
|
|
11
|
+
theme?: PartialDeep<Theme> | undefined;
|
|
12
12
|
}, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export { Separator } from '@inquirer/core';
|
|
@@ -8,7 +8,7 @@ type Choice<Value> = {
|
|
|
8
8
|
declare const _default: <Value>(config: {
|
|
9
9
|
message: string;
|
|
10
10
|
choices: readonly (Separator | Choice<Value>)[];
|
|
11
|
-
theme?: PartialDeep<Theme
|
|
11
|
+
theme?: PartialDeep<Theme> | undefined;
|
|
12
12
|
}, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export { Separator } from '@inquirer/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"description": "Inquirer rawlist prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.ts",
|
|
@@ -54,18 +54,17 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/rawlist/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^9.0.
|
|
58
|
-
"@inquirer/type": "^1.5.
|
|
57
|
+
"@inquirer/core": "^9.0.6",
|
|
58
|
+
"@inquirer/type": "^1.5.1",
|
|
59
59
|
"yoctocolors-cjs": "^2.1.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@inquirer/testing": "^2.1.
|
|
62
|
+
"@inquirer/testing": "^2.1.29"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
66
66
|
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
|
|
67
67
|
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
|
|
68
|
-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
|
|
69
68
|
"attw": "attw --pack"
|
|
70
69
|
},
|
|
71
70
|
"publishConfig": {
|
|
@@ -87,5 +86,5 @@
|
|
|
87
86
|
}
|
|
88
87
|
},
|
|
89
88
|
"sideEffects": false,
|
|
90
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "7a061f13e053dd64ef7373b08e8a10130131ea59"
|
|
91
90
|
}
|