create-better-t-stack 3.0.9 → 3.0.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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createBtsCli } from "./src-ql9M1DvL.js";
2
+ import { createBtsCli } from "./src-91MwhQvg.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 { builder, createBtsCli, docs, init, router, sponsors } from "./src-ql9M1DvL.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-91MwhQvg.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -130,7 +130,7 @@ const dependencyVersionMap = {
130
130
  "convex-svelte": "^0.0.11",
131
131
  "convex-nuxt": "0.1.5",
132
132
  "convex-vue": "^0.1.5",
133
- "@convex-dev/better-auth": "^0.8.4",
133
+ "@convex-dev/better-auth": "^0.9.1",
134
134
  "@tanstack/svelte-query": "^5.85.3",
135
135
  "@tanstack/svelte-query-devtools": "^5.85.3",
136
136
  "@tanstack/vue-query-devtools": "^5.90.2",
@@ -2089,8 +2089,10 @@ async function setupFumadocs(config) {
2089
2089
  const fumadocsInitCommand = getPackageExecutionCommand(packageManager, commandWithArgs);
2090
2090
  const s = spinner();
2091
2091
  s.start("Setting up Fumadocs...");
2092
+ const appsDir = path.join(projectDir, "apps");
2093
+ await fs.ensureDir(appsDir);
2092
2094
  await execa(fumadocsInitCommand, {
2093
- cwd: path.join(projectDir, "apps"),
2095
+ cwd: appsDir,
2094
2096
  env: { CI: "true" },
2095
2097
  shell: true
2096
2098
  });
@@ -2207,8 +2209,10 @@ async function setupStarlight(config) {
2207
2209
  "--skip-houston"
2208
2210
  ].join(" ")}`;
2209
2211
  const starlightInitCommand = getPackageExecutionCommand(packageManager, commandWithArgs);
2212
+ const appsDir = path.join(projectDir, "apps");
2213
+ await fs.ensureDir(appsDir);
2210
2214
  await execa(starlightInitCommand, {
2211
- cwd: path.join(projectDir, "apps"),
2215
+ cwd: appsDir,
2212
2216
  env: { CI: "true" },
2213
2217
  shell: true
2214
2218
  });
@@ -4402,7 +4406,7 @@ async function setupAuth(config) {
4402
4406
  const convexBackendDir = path.join(projectDir, "packages/backend");
4403
4407
  if (await fs.pathExists(convexBackendDir)) await addPackageDependency({
4404
4408
  dependencies: ["better-auth", "@convex-dev/better-auth"],
4405
- customDependencies: { "better-auth": "1.3.8" },
4409
+ customDependencies: { "better-auth": "1.3.27" },
4406
4410
  projectDir: convexBackendDir
4407
4411
  });
4408
4412
  if (clientDirExists) {
@@ -4411,17 +4415,17 @@ async function setupAuth(config) {
4411
4415
  const hasViteReactOther = frontend.some((f) => ["tanstack-router", "react-router"].includes(f));
4412
4416
  if (hasNextJs) await addPackageDependency({
4413
4417
  dependencies: ["better-auth", "@convex-dev/better-auth"],
4414
- customDependencies: { "better-auth": "1.3.8" },
4418
+ customDependencies: { "better-auth": "1.3.27" },
4415
4419
  projectDir: clientDir
4416
4420
  });
4417
4421
  else if (hasTanStackStart) await addPackageDependency({
4418
4422
  dependencies: ["better-auth", "@convex-dev/better-auth"],
4419
- customDependencies: { "better-auth": "1.3.8" },
4423
+ customDependencies: { "better-auth": "1.3.27" },
4420
4424
  projectDir: clientDir
4421
4425
  });
4422
4426
  else if (hasViteReactOther) await addPackageDependency({
4423
4427
  dependencies: ["better-auth", "@convex-dev/better-auth"],
4424
- customDependencies: { "better-auth": "1.3.8" },
4428
+ customDependencies: { "better-auth": "1.3.27" },
4425
4429
  projectDir: clientDir
4426
4430
  });
4427
4431
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
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",
@@ -22,7 +22,7 @@ export const createAuth = (
22
22
  disabled: optionsOnly,
23
23
  },
24
24
  {{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
25
- baseUrl: siteUrl,
25
+ baseURL: siteUrl,
26
26
  trustedOrigins: [siteUrl],
27
27
  {{else}}
28
28
  trustedOrigins: [siteUrl],