create-better-t-stack 3.2.19 → 3.2.21

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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as createBtsCli } from "./src-BjWlXInp.js";
2
+ import { n as createBtsCli } from "./src-WIwtBCHf.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-BjWlXInp.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-WIwtBCHf.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -616,6 +616,7 @@ async function getApiChoice(Api, frontend, backend) {
616
616
  //#region src/prompts/auth.ts
617
617
  async function getAuthChoice(auth, backend, frontend) {
618
618
  if (auth !== void 0) return auth;
619
+ if (backend === "none") return "none";
619
620
  if (backend === "convex") {
620
621
  const supportedBetterAuthFrontends = frontend?.some((f) => [
621
622
  "tanstack-router",
@@ -1070,6 +1071,7 @@ async function getPackageManagerChoice(packageManager) {
1070
1071
  //#region src/prompts/payments.ts
1071
1072
  async function getPaymentsChoice(payments, auth, backend, frontends) {
1072
1073
  if (payments !== void 0) return payments;
1074
+ if (backend === "none") return "none";
1073
1075
  if (!(auth === "better-auth" && backend !== "convex" && (frontends?.length === 0 || splitFrontends(frontends).web.length > 0))) return "none";
1074
1076
  const response = await select({
1075
1077
  message: "Select payments provider",
@@ -1746,6 +1748,7 @@ function validateBackendNoneConstraints(config, providedFlags) {
1746
1748
  if (has("orm") && config.orm !== "none") exitWithError("Backend 'none' requires '--orm none'. Please remove the --orm flag or set it to 'none'.");
1747
1749
  if (has("api") && config.api !== "none") exitWithError("Backend 'none' requires '--api none'. Please remove the --api flag or set it to 'none'.");
1748
1750
  if (has("auth") && config.auth !== "none") exitWithError("Backend 'none' requires '--auth none'. Please remove the --auth flag or set it to 'none'.");
1751
+ if (has("payments") && config.payments !== "none") exitWithError("Backend 'none' requires '--payments none'. Please remove the --payments flag or set it to 'none'.");
1749
1752
  if (has("dbSetup") && config.dbSetup !== "none") exitWithError("Backend 'none' requires '--db-setup none'. Please remove the --db-setup flag or set it to 'none'.");
1750
1753
  if (has("serverDeploy") && config.serverDeploy !== "none") exitWithError("Backend 'none' requires '--server-deploy none'. Please remove the --server-deploy flag or set it to 'none'.");
1751
1754
  }
@@ -2073,12 +2076,12 @@ async function setupFumadocs(config) {
2073
2076
  const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@latest fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
2074
2077
  const appsDir = path.join(projectDir, "apps");
2075
2078
  await fs.ensureDir(appsDir);
2076
- const s = spinner();
2077
- s.start("Setting up Fumadocs...");
2079
+ log.info("Running Fumadocs create command...");
2078
2080
  await execa(fumadocsInitCommand, {
2079
2081
  cwd: appsDir,
2080
2082
  env: { CI: "true" },
2081
- shell: true
2083
+ shell: true,
2084
+ stdio: "inherit"
2082
2085
  });
2083
2086
  const fumadocsDir = path.join(projectDir, "apps", "fumadocs");
2084
2087
  const packageJsonPath = path.join(fumadocsDir, "package.json");
@@ -2088,7 +2091,7 @@ async function setupFumadocs(config) {
2088
2091
  if (packageJson.scripts?.dev) packageJson.scripts.dev = `${packageJson.scripts.dev} --port=4000`;
2089
2092
  await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
2090
2093
  }
2091
- s.stop("Fumadocs setup complete!");
2094
+ log.success("Fumadocs setup complete!");
2092
2095
  } catch (error) {
2093
2096
  log.error(pc.red("Failed to set up Fumadocs"));
2094
2097
  if (error instanceof Error) consola.error(pc.red(error.message));
@@ -2346,14 +2349,14 @@ async function setupUltracite(config, hasHusky) {
2346
2349
  if (agents.length > 0) ultraciteArgs.push("--agents", ...agents);
2347
2350
  if (hasHusky) ultraciteArgs.push("--integrations", "husky", "lint-staged");
2348
2351
  const ultraciteInitCommand = getPackageExecutionCommand(packageManager, `ultracite@latest ${ultraciteArgs.join(" ")} --skip-install`);
2349
- const s = spinner();
2350
- s.start("Setting up Ultracite...");
2352
+ log.info("Running Ultracite init command...");
2351
2353
  await execa(ultraciteInitCommand, {
2352
2354
  cwd: projectDir,
2353
2355
  env: { CI: "true" },
2354
- shell: true
2356
+ shell: true,
2357
+ stdio: "inherit"
2355
2358
  });
2356
- s.stop("Ultracite setup complete!");
2359
+ log.success("Ultracite setup complete!");
2357
2360
  if (hasHusky) await addPackageDependency({
2358
2361
  devDependencies: ["husky", "lint-staged"],
2359
2362
  projectDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.2.19",
3
+ "version": "3.2.21",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",