build-app-with 2.0.6 → 2.0.7

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.
@@ -321,7 +321,7 @@ function getPrompts(cliProjectName = null) {
321
321
  ],
322
322
  default: 0,
323
323
  when: (answers) =>
324
- answers.setupType === 'customize' && answers.framework === 'react'
324
+ answers.setupType === 'customize' && answers.framework === 'vite-react'
325
325
  },
326
326
  // ESLint and Prettier prompts hidden per user request
327
327
  {
@@ -352,11 +352,15 @@ function getPrompts(cliProjectName = null) {
352
352
  return prompts;
353
353
  }
354
354
 
355
- // After prompting, always enforce TS for Next.js
355
+ // After prompting, always enforce TS for Next.js and default to TS for Vite+React
356
356
  function finalizeAnswers(answers) {
357
357
  if (answers.framework === 'nextjs') {
358
358
  answers.typescript = true;
359
359
  }
360
+ // Default to TypeScript for Vite+React if not explicitly set
361
+ if (answers.framework === 'vite-react' && answers.typescript === undefined) {
362
+ answers.typescript = true;
363
+ }
360
364
  return answers;
361
365
  }
362
366
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "build-app-with",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "🚀 Interactive CLI tool to quickly create modern web applications. Use with 'npx build-app-with my-app' or install globally. Choose from React (Next.js/Vite), Node.js backends (Express/Fastify), with built-in TypeScript, authentication, databases, and more.",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {
8
- "build-app-with": "./bin/cli.js"
8
+ "build-app-with": "./bin/build-app-with.js"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "node ./bin/cli.js",