@betterstart/cli 0.1.10 → 0.1.11

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/cli.js CHANGED
@@ -13638,9 +13638,7 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13638
13638
  }
13639
13639
  pm = pmChoice;
13640
13640
  }
13641
- const cnaSpinner = p4.spinner();
13642
13641
  const displayName = projectPrompt.projectName === "." ? path37.basename(cwd) : projectPrompt.projectName;
13643
- cnaSpinner.start(`Creating Next.js app: ${displayName}...`);
13644
13642
  const { bin, prefix } = createNextAppCommand(pm);
13645
13643
  const cnaArgs = [
13646
13644
  ...prefix,
@@ -13656,14 +13654,14 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13656
13654
  ];
13657
13655
  if (srcDir) cnaArgs.push("--src-dir");
13658
13656
  else cnaArgs.push("--no-src-dir");
13657
+ p4.log.step(`Creating Next.js app: ${pc2.cyan(displayName)}`);
13659
13658
  try {
13660
13659
  execFileSync4(bin, cnaArgs, {
13661
13660
  cwd,
13662
- stdio: "pipe",
13661
+ stdio: "inherit",
13663
13662
  timeout: 12e4
13664
13663
  });
13665
13664
  } catch (err) {
13666
- cnaSpinner.stop("Failed to create Next.js app");
13667
13665
  p4.log.error(err instanceof Error ? err.message : "create-next-app failed");
13668
13666
  p4.log.info(
13669
13667
  `You can create the project manually:
@@ -13678,7 +13676,6 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13678
13676
  (f) => fs32.existsSync(path37.join(cwd, f))
13679
13677
  );
13680
13678
  if (!hasPackageJson || !hasNextConfig) {
13681
- cnaSpinner.stop("Failed to create Next.js app");
13682
13679
  p4.log.error(
13683
13680
  "create-next-app completed but the project was not created. This can happen with nested npx calls."
13684
13681
  );
@@ -13690,7 +13687,7 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13690
13687
  );
13691
13688
  process.exit(1);
13692
13689
  }
13693
- cnaSpinner.stop(`Created ${displayName}`);
13690
+ p4.log.success(`Created ${displayName} Next.js project`);
13694
13691
  project = detectProject(cwd);
13695
13692
  }
13696
13693
  const features = options.yes ? { includeEmail: true, preset: options.preset } : await promptFeatures(options.preset);