create-bakery 2.4.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bakery",
3
- "version": "2.4.1",
3
+ "version": "2.5.0-alpha.0",
4
4
  "description": "Scaffold a Bakery app: bun create bakery [directory]",
5
5
  "keywords": [
6
6
  "bakery",
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
- { id: 'db-explorer', label: 'db-explorer', hint: 'browse and edit rows' },
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
- | { kind: 'answer'; value: boolean }
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 }