@inquirer/prompts 7.4.0 → 7.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.
Files changed (2) hide show
  1. package/README.md +31 -0
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -15,6 +15,16 @@ Give it a try in your own terminal!
15
15
  npx @inquirer/demo@latest
16
16
  ```
17
17
 
18
+ # Special Thanks
19
+
20
+ <div align="center" markdown="1">
21
+
22
+ [![Graphite](https://github.com/user-attachments/assets/53db40ca-2254-481a-a094-6597f8716e29)](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)<br>
23
+
24
+ ### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
25
+
26
+ </div>
27
+
18
28
  # Installation
19
29
 
20
30
  <table>
@@ -339,6 +349,27 @@ import { confirm } from '@inquirer/prompts';
339
349
  const answer = await confirm({ message: await getMessage() });
340
350
  ```
341
351
 
352
+ ## Usage with `npx` within bash scripts
353
+
354
+ You can use Inquirer prompts directly in the shell via [`npx`](https://docs.npmjs.com/cli/v8/commands/npx), which is useful for quick scripts or `package.json` commands.
355
+
356
+ A community library, [@inquirer-cli](https://github.com/fishballapp/inquirer-cli), exposes each prompt as a standalone CLI.
357
+
358
+ For example, to prompt for input:
359
+
360
+ ```bash
361
+ name=$(npx -y @inquirer-cli/input -r "What is your name?")
362
+ echo "Hello, $name!"
363
+ ```
364
+
365
+ Or to create an interactive version bump:
366
+
367
+ ```bash
368
+ $ npm version $(npx -y @inquirer-cli/select -c patch -c minor -c major 'Select Version')
369
+ ```
370
+
371
+ Find out more: [@inquirer-cli](https://github.com/fishballapp/inquirer-cli).
372
+
342
373
  # Community prompts
343
374
 
344
375
  If you created a cool prompt, [send us a PR adding it](https://github.com/SBoudrias/Inquirer.js/edit/main/README.md) to the list below!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/prompts",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "description": "Inquirer prompts, combined in a single package",
5
5
  "keywords": [
6
6
  "answer",
@@ -76,20 +76,20 @@
76
76
  "tsc": "tshy"
77
77
  },
78
78
  "dependencies": {
79
- "@inquirer/checkbox": "^4.1.4",
80
- "@inquirer/confirm": "^5.1.8",
81
- "@inquirer/editor": "^4.2.9",
82
- "@inquirer/expand": "^4.0.11",
83
- "@inquirer/input": "^4.1.8",
84
- "@inquirer/number": "^3.0.11",
85
- "@inquirer/password": "^4.0.11",
86
- "@inquirer/rawlist": "^4.0.11",
87
- "@inquirer/search": "^3.0.11",
88
- "@inquirer/select": "^4.1.0"
79
+ "@inquirer/checkbox": "^4.1.5",
80
+ "@inquirer/confirm": "^5.1.9",
81
+ "@inquirer/editor": "^4.2.10",
82
+ "@inquirer/expand": "^4.0.12",
83
+ "@inquirer/input": "^4.1.9",
84
+ "@inquirer/number": "^3.0.12",
85
+ "@inquirer/password": "^4.0.12",
86
+ "@inquirer/rawlist": "^4.0.12",
87
+ "@inquirer/search": "^3.0.12",
88
+ "@inquirer/select": "^4.1.1"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@arethetypeswrong/cli": "^0.17.4",
92
- "@inquirer/type": "^3.0.5",
92
+ "@inquirer/type": "^3.0.6",
93
93
  "@repo/tsconfig": "workspace:*",
94
94
  "tshy": "^3.0.2"
95
95
  },
@@ -113,5 +113,5 @@
113
113
  "optional": true
114
114
  }
115
115
  },
116
- "gitHead": "83508f90ca65d26abc1408e4209e4f8fc73e43fe"
116
+ "gitHead": "d367155a8d64d8b3e93f9c763adccf708aedc8a8"
117
117
  }