create-tamagui 1.23.0 → 1.23.2

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.js CHANGED
@@ -45273,7 +45273,7 @@ var globby2 = Object.assign(function globby3(patterns, options) {
45273
45273
  // package.json
45274
45274
  var package_default = {
45275
45275
  name: "create-tamagui",
45276
- version: "1.22.12",
45276
+ version: "1.23.1",
45277
45277
  bin: "./run.js",
45278
45278
  main: "dist",
45279
45279
  files: [
@@ -45307,7 +45307,7 @@ var package_default = {
45307
45307
  },
45308
45308
  devDependencies: {
45309
45309
  "@playwright/test": "^1.29.0",
45310
- "@tamagui/build": "1.22.12",
45310
+ "@tamagui/build": "1.23.1",
45311
45311
  "@types/async-retry": "1.4.2",
45312
45312
  "@types/cross-spawn": "^6.0.2",
45313
45313
  "@types/node": "^16.11.9",
@@ -45341,8 +45341,8 @@ var program = new import_commander.default.Command(package_default.name).version
45341
45341
  projectPath = name;
45342
45342
  }).option(
45343
45343
  `--template <template>, -t <template>`,
45344
- "Currently, the only option is `next-expo-solito`, which is set by default.",
45345
- "next-expo-solito"
45344
+ "Choose between next-expo-solito, a more full featured template with Expo and Next.js, or a simple client-only web starter that includes a nice simple example configuration to understand the basics more easily.",
45345
+ ""
45346
45346
  ).allowUnknownOption().usage(
45347
45347
  `${import_chalk5.default.green("<project-directory>")} [options]
45348
45348
 
@@ -45516,9 +45516,27 @@ ${err.stack}` : "trying from fresh."}`
45516
45516
  }
45517
45517
  }
45518
45518
  await setupTamaguiDotDir();
45519
- const starterDir = (0, import_path.join)(targetGitDir, "starters", program.template);
45519
+ let template = program.template;
45520
+ if (!template) {
45521
+ template = (await (0, import_prompts.default)({
45522
+ name: "template",
45523
+ type: "select",
45524
+ message: `Pick a template:`,
45525
+ choices: [
45526
+ {
45527
+ title: `Next + Expo + Solito (recommended for production) - Production-ready universal app with a monorepo.`,
45528
+ value: "next-expo-solito"
45529
+ },
45530
+ {
45531
+ title: `Simple Web (recommended for learning) - Client-only web app with Webpack or Vite. Useful to understand how to set up tamagui.config.ts.`,
45532
+ value: "simple-web"
45533
+ }
45534
+ ]
45535
+ })).template;
45536
+ }
45537
+ const starterDir = (0, import_path.join)(targetGitDir, "starters", template);
45520
45538
  if (!await (0, import_fs_extra.pathExists)(starterDir)) {
45521
- console.error(`Missing template for ${program.template} in ${starterDir}`);
45539
+ console.error(`Missing template for ${template} in ${starterDir}`);
45522
45540
  process.exit(1);
45523
45541
  }
45524
45542
  console.log(