create-bakery 2.4.0 → 2.5.0-alpha.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/package.json +1 -1
- package/src/index.ts +5 -2
- package/src/prompt.ts +1 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -121,7 +121,6 @@ function parsePlugins(
|
|
|
121
121
|
* user typed, and answering it with a stack trace teaches nothing. Throwing is
|
|
122
122
|
* reserved for a failure of the scaffolding itself.
|
|
123
123
|
*/
|
|
124
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: argv dispatcher, one branch per flag
|
|
125
124
|
export function parseArgs(
|
|
126
125
|
argv: string[],
|
|
127
126
|
): { ok: true; options: Options } | { ok: false; message: string } {
|
|
@@ -327,7 +326,11 @@ export async function resolveChoices(
|
|
|
327
326
|
{ id: 'vue', label: 'vue', hint: 'single-file components' },
|
|
328
327
|
{ id: 'analytics', label: 'analytics', hint: 'request metrics' },
|
|
329
328
|
{ id: 'dashboard', label: 'dashboard', hint: 'admin console' },
|
|
330
|
-
{
|
|
329
|
+
{
|
|
330
|
+
id: 'db-explorer',
|
|
331
|
+
label: 'db-explorer',
|
|
332
|
+
hint: 'browse and edit rows',
|
|
333
|
+
},
|
|
331
334
|
])
|
|
332
335
|
if (chosen === null) return null
|
|
333
336
|
plugins = PLUGIN_IDS.filter(id => chosen.includes(id))
|
package/src/prompt.ts
CHANGED
|
@@ -86,9 +86,7 @@ export function applyConfirmKey(
|
|
|
86
86
|
key: string,
|
|
87
87
|
fallback: boolean,
|
|
88
88
|
):
|
|
89
|
-
|
|
90
|
-
| { kind: 'cancel' }
|
|
91
|
-
| { kind: 'ignore' } {
|
|
89
|
+
{ kind: 'answer'; value: boolean } | { kind: 'cancel' } | { kind: 'ignore' } {
|
|
92
90
|
if (key === KEY.ctrlC || key === KEY.ctrlD) return { kind: 'cancel' }
|
|
93
91
|
if (key === 'y' || key === 'Y') return { kind: 'answer', value: true }
|
|
94
92
|
if (key === 'n' || key === 'N') return { kind: 'answer', value: false }
|