@betterstart/cli 0.1.23 → 0.1.24

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
@@ -4679,7 +4679,9 @@ function mergeImports(content, requiredImports, needsSql) {
4679
4679
  const drizzleOrmMatch = content.match(/import\s*\{([^}]*)\}\s*from\s*['"]drizzle-orm['"]/);
4680
4680
  const existingDrizzleOrmImports = /* @__PURE__ */ new Set();
4681
4681
  if (drizzleOrmMatch) {
4682
- drizzleOrmMatch[1].split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => existingDrizzleOrmImports.add(i));
4682
+ drizzleOrmMatch[1].split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => {
4683
+ existingDrizzleOrmImports.add(i);
4684
+ });
4683
4685
  }
4684
4686
  const hasSqlImport = existingDrizzleOrmImports.has("sql");
4685
4687
  const existing = /* @__PURE__ */ new Set();
@@ -7016,11 +7018,13 @@ export default async function ${PageName}Page() {
7016
7018
  const data = await get${Singular}()
7017
7019
 
7018
7020
  return (
7019
- <div className="flex flex-col">
7020
- <PageHeader title="${schema.label}" />
7021
- <div className="max-w-5xl mx-auto w-full pb-24">
7022
- <${Singular}Form initialData={data} />
7021
+ <div className="flex flex-col w-full pb-20">
7022
+ <div className="flex items-center justify-between bg-card px-6 py-4 border-b">
7023
+ <PageHeader title="${schema.label}" description="Manage ${schema.label.toLowerCase()}" />
7023
7024
  </div>
7025
+ <main className="container mx-auto max-w-5xl p-6">
7026
+ <${Singular}Form initialData={data} />
7027
+ </main>
7024
7028
  </div>
7025
7029
  )
7026
7030
  }
@@ -13903,6 +13907,7 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13903
13907
  p4.log.info(`You can run it manually: ${pc2.cyan("npx betterstart seed")}`);
13904
13908
  }
13905
13909
  }
13910
+ s.start("Generating documentation...");
13906
13911
  {
13907
13912
  const entityNames = [];
13908
13913
  const formNames = [];
@@ -13924,7 +13929,9 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13924
13929
  forms: formNames
13925
13930
  });
13926
13931
  }
13932
+ s.stop("Generated CMS.md");
13927
13933
  if (isFreshProject) {
13934
+ s.start("Creating initial git commit...");
13928
13935
  try {
13929
13936
  execFileSync4("git", ["init"], { cwd, stdio: "pipe" });
13930
13937
  execFileSync4("git", ["add", "."], { cwd, stdio: "pipe" });
@@ -13932,8 +13939,9 @@ var initCommand = new Command3("init").description("Scaffold CMS into a new or e
13932
13939
  cwd,
13933
13940
  stdio: "pipe"
13934
13941
  });
13935
- p4.log.success("Created initial git commit");
13942
+ s.stop("Created initial git commit");
13936
13943
  } catch {
13944
+ s.stop("Git commit skipped");
13937
13945
  }
13938
13946
  }
13939
13947
  const totalFiles = baseFiles.length + dbFiles.length + authFiles.length + compFiles.length + layoutFiles.length + apiFiles.length;