create-bakery 2.4.2 → 2.5.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bakery",
3
- "version": "2.4.2",
3
+ "version": "2.5.0-alpha.1",
4
4
  "description": "Scaffold a Bakery app: bun create bakery [directory]",
5
5
  "keywords": [
6
6
  "bakery",
@@ -39,6 +39,6 @@
39
39
  "!src/tests"
40
40
  ],
41
41
  "engines": {
42
- "bun": ">=1.4.0"
42
+ "bun": ">=1.4.4"
43
43
  }
44
44
  }
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 }
package/src/template.ts CHANGED
@@ -545,7 +545,7 @@ export function templateFiles(
545
545
  // alternative is core taking a dependency, and having none is a property
546
546
  // worth more than this convenience.
547
547
  devDependencies: {
548
- 'bun-types': '^1.4.0',
548
+ 'bun-types': '^1.4.4',
549
549
  // **`^5`, not `^7`, and the reason is `vue-tsc`.** TypeScript 7 is the
550
550
  // native port and does not ship `typescript/lib/tsc`, which `vue-tsc`
551
551
  // requires to patch, so a Vue app that installs TS 7 gets