@farm.js/create-app 0.1.0-beta.77 → 0.1.0-beta.78

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/dist/index.mjs CHANGED
@@ -3143,20 +3143,6 @@ async function createApp(projectName, options = {}) {
3143
3143
  logger.error(`The "${template}" starter currently targets React. Use --template basic or --template better-auth with --renderer ${renderer}.`);
3144
3144
  process.exit(1);
3145
3145
  }
3146
- let useTypeScript = options.typescript;
3147
- if (useTypeScript === void 0) {
3148
- const response = await prompts({
3149
- type: "confirm",
3150
- name: "typescript",
3151
- message: "Would you like to use TypeScript?",
3152
- initial: true
3153
- });
3154
- if (response.typescript === void 0) {
3155
- logger.error("Operation cancelled.");
3156
- process.exit(1);
3157
- }
3158
- useTypeScript = response.typescript;
3159
- }
3160
3146
  const projectPath = path.resolve(process.cwd(), projectName);
3161
3147
  const packageManager = detectPackageManager();
3162
3148
  if (await directoryHasFiles(projectPath)) {
@@ -3172,7 +3158,7 @@ async function createApp(projectName, options = {}) {
3172
3158
  }
3173
3159
  logger.info(`Creating FARMJS app in ${projectPath}`);
3174
3160
  await fs.mkdir(projectPath, { recursive: true });
3175
- const integrationResult = await copyTemplate(template, projectPath, useTypeScript, renderer);
3161
+ const integrationResult = await copyTemplate(template, projectPath, renderer);
3176
3162
  await updatePackageJson(projectPath, projectName, packageManager);
3177
3163
  logger.success(`🚜 Created ${projectName}`);
3178
3164
  if (!options.skipInstall) {
@@ -3198,18 +3184,14 @@ async function createApp(projectName, options = {}) {
3198
3184
  template,
3199
3185
  renderer,
3200
3186
  packageManager: packageManager.name,
3201
- typescript: useTypeScript,
3187
+ typescript: true,
3202
3188
  installedDependencies: !options.skipInstall
3203
3189
  });
3204
3190
  }
3205
- async function copyTemplate(template, projectPath, useTypeScript, renderer) {
3191
+ async function copyTemplate(template, projectPath, renderer) {
3206
3192
  const details = templateDetails[template];
3207
3193
  await copyDir(path.join(__dirname, "..", "templates", details?.integration ? "basic" : template), projectPath);
3208
3194
  const basePackageJson = await readPackageJson(projectPath);
3209
- if (useTypeScript) {
3210
- const tsTemplatePath = path.join(__dirname, "..", "templates", "_typescript");
3211
- if (await dirExists(tsTemplatePath)) await copyDir(tsTemplatePath, projectPath);
3212
- }
3213
3195
  if (renderer !== "react") {
3214
3196
  await applyRendererTemplate(projectPath, renderer, basePackageJson);
3215
3197
  const integrationRendererPath = getRendererIntegrationTemplatePath(template, renderer);