create-better-t-stack 3.2.18 → 3.2.20

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-B-Gt8TxY.js";
2
+ import { n as createBtsCli } from "./src-CQps1oXf.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-B-Gt8TxY.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-CQps1oXf.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
  }
@@ -2070,7 +2073,7 @@ async function setupFumadocs(config) {
2070
2073
  initialValue: "next-mdx"
2071
2074
  });
2072
2075
  if (isCancel(template)) return exitCancelled("Operation cancelled");
2073
- const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@16.0.4 fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
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
2079
  const s = spinner();
@@ -4017,6 +4020,8 @@ async function setupCatalogs(projectDir, options) {
4017
4020
  const packagePaths = [
4018
4021
  "apps/server",
4019
4022
  "apps/web",
4023
+ "apps/fumadocs",
4024
+ "apps/docs",
4020
4025
  "packages/api",
4021
4026
  "packages/db",
4022
4027
  "packages/auth",
@@ -6994,9 +6999,9 @@ async function createProject(options, cliInput) {
6994
6999
  await handleExtras(projectDir, options);
6995
7000
  await setupEnvironmentVariables(options);
6996
7001
  await updatePackageConfigurations(projectDir, options);
6997
- await setupCatalogs(projectDir, options);
6998
7002
  await setupWebDeploy(options);
6999
7003
  await setupServerDeploy(options);
7004
+ await setupCatalogs(projectDir, options);
7000
7005
  await createReadme(projectDir, options);
7001
7006
  await writeBtsConfig(options);
7002
7007
  log.success("Project template successfully scaffolded!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.2.18",
3
+ "version": "3.2.20",
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",