betterstart-cli 0.0.52 → 0.0.54

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
@@ -22257,15 +22257,7 @@ async function promptProject(defaultName) {
22257
22257
  p13.cancel("Setup cancelled.");
22258
22258
  process.exit(0);
22259
22259
  }
22260
- const useSrcDir = await p13.confirm({
22261
- message: "Use src/ directory?",
22262
- initialValue: false
22263
- });
22264
- if (p13.isCancel(useSrcDir)) {
22265
- p13.cancel("Setup cancelled.");
22266
- process.exit(0);
22267
- }
22268
- return { projectName: projectName.trim(), useSrcDir };
22260
+ return { projectName: projectName.trim() };
22269
22261
  }
22270
22262
 
22271
22263
  // adapters/next/init/scaffolders/api-routes.ts
@@ -24478,9 +24470,6 @@ function withScope(args, scope) {
24478
24470
  function readLinkedProjectId(cwd) {
24479
24471
  return readLinkedProjectJson(cwd)?.projectId;
24480
24472
  }
24481
- function readLinkedProjectName(cwd) {
24482
- return readLinkedProjectJson(cwd)?.projectName;
24483
- }
24484
24473
  function readLinkedProjectJson(cwd) {
24485
24474
  try {
24486
24475
  const projectJsonPath = path46.join(cwd, ".vercel", "project.json");
@@ -25085,8 +25074,7 @@ async function runVercelDeployFlow(options) {
25085
25074
  printManualDeployHint();
25086
25075
  return { ok: false };
25087
25076
  }
25088
- const linkedName = readLinkedProjectName(options.cwd);
25089
- const url = linkedName ? `https://${linkedName}.vercel.app` : deploy.url;
25077
+ const url = deploy.url;
25090
25078
  deploySpinner.stop(url ? `Deployed ${pc6.cyan(url)}` : "Deployed to Vercel");
25091
25079
  return { ok: true, url, syncedEnvKeys: sync.synced };
25092
25080
  } catch (error) {
@@ -25490,7 +25478,7 @@ function resolveNonInteractiveProject(name) {
25490
25478
  if (projectName !== "." && !/^[a-z0-9_-]+$/i.test(projectName)) {
25491
25479
  throw new Error("Project name can only contain letters, numbers, hyphens, and underscores");
25492
25480
  }
25493
- return { projectName, useSrcDir: false };
25481
+ return { projectName };
25494
25482
  }
25495
25483
  async function readExistingConfigNamespace(cwd) {
25496
25484
  const configPath = path50.resolve(cwd, "admin.config.ts");
@@ -25655,7 +25643,7 @@ async function runInitCommand(name, options) {
25655
25643
  p18.log.error(error instanceof Error ? error.message : String(error));
25656
25644
  process.exit(1);
25657
25645
  }
25658
- srcDir = projectPrompt.useSrcDir;
25646
+ srcDir = false;
25659
25647
  if (!options.yes) {
25660
25648
  const pmChoice = await p18.select({
25661
25649
  message: "Which package manager do you want to use?",