create-tamagui 1.23.3 → 1.24.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/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.23.1",
45276
+ version: "1.23.4",
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.23.1",
45310
+ "@tamagui/build": "1.23.4",
45311
45311
  "@types/async-retry": "1.4.2",
45312
45312
  "@types/cross-spawn": "^6.0.2",
45313
45313
  "@types/node": "^16.11.9",
@@ -45410,6 +45410,7 @@ async function run() {
45410
45410
  console.log(`Run ${import_chalk5.default.cyan(`${program.name()} --help`)} to see all options.`);
45411
45411
  process.exit(1);
45412
45412
  }
45413
+ console.log();
45413
45414
  const shouldGitInit = IS_TEST || Boolean(
45414
45415
  (await (0, import_prompts.default)({
45415
45416
  type: "confirm",
@@ -45418,6 +45419,25 @@ async function run() {
45418
45419
  initial: true
45419
45420
  })).gitInit
45420
45421
  );
45422
+ console.log();
45423
+ let template = program.template;
45424
+ if (!template) {
45425
+ template = (await (0, import_prompts.default)({
45426
+ name: "template",
45427
+ type: "select",
45428
+ message: `Pick a template:`,
45429
+ choices: [
45430
+ {
45431
+ title: `Next + Expo + Solito (recommended for production) - Production-ready universal app with a monorepo.`,
45432
+ value: "next-expo-solito"
45433
+ },
45434
+ {
45435
+ title: `Simple Web (recommended for learning) - Client-only web app with Webpack or Vite. Useful to understand how to set up tamagui.config.ts.`,
45436
+ value: "simple-web"
45437
+ }
45438
+ ]
45439
+ })).template;
45440
+ }
45421
45441
  const resolvedProjectPath = import_path.default.resolve(process.cwd(), projectPath);
45422
45442
  const projectName = import_path.default.basename(resolvedProjectPath);
45423
45443
  const { valid, problems } = validateNpmName(projectName);
@@ -45516,24 +45536,6 @@ ${err.stack}` : "trying from fresh."}`
45516
45536
  }
45517
45537
  }
45518
45538
  await setupTamaguiDotDir();
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
45539
  const starterDir = (0, import_path.join)(targetGitDir, "starters", template);
45538
45540
  if (!await (0, import_fs_extra.pathExists)(starterDir)) {
45539
45541
  console.error(`Missing template for ${template} in ${starterDir}`);