@inquirer/rawlist 1.0.0 → 1.0.2
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/LICENSE +1 -1
- package/README.md +5 -5
- package/package.json +6 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -29,12 +29,12 @@ const answer = await rawlist({
|
|
|
29
29
|
|
|
30
30
|
## Options
|
|
31
31
|
|
|
32
|
-
| Property | Type
|
|
33
|
-
| -------- |
|
|
34
|
-
| message | `string`
|
|
35
|
-
| choices | `Array<{ value: string, name?: string, key?: string }>` | yes
|
|
32
|
+
| Property | Type | Required | Description |
|
|
33
|
+
| -------- | ------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
34
|
+
| message | `string` | yes | The question to ask |
|
|
35
|
+
| choices | `Array<{ value: string, name?: string, key?: string }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. By default, choices will be selected by index. This can be customized by using the `key` option. |
|
|
36
36
|
|
|
37
37
|
# License
|
|
38
38
|
|
|
39
|
-
Copyright (c)
|
|
39
|
+
Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
|
|
40
40
|
Licensed under the MIT license.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Inquirer rawlist prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.mts",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/rawlist/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^1.0.
|
|
58
|
-
"@inquirer/type": "^1.0.
|
|
59
|
-
"chalk": "^
|
|
57
|
+
"@inquirer/core": "^1.0.3",
|
|
58
|
+
"@inquirer/type": "^1.0.2",
|
|
59
|
+
"chalk": "^4.1.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"tsc": "yarn run clean && yarn run tsc:esm && yarn run tsc:cjs",
|
|
63
63
|
"clean": "rm -rf dist",
|
|
64
64
|
"tsc:esm": "tsc -p ./tsconfig.esm.json",
|
|
65
65
|
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
|
|
66
|
-
"fix-ext": "ts-node ../../tools/rename-ext.
|
|
66
|
+
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3"
|
|
87
87
|
}
|