create-better-t-stack 3.6.4 → 3.6.5

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-DON9UROB.js";
2
+ import { n as createBtsCli } from "./src-CZUWfiAN.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-DON9UROB.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-CZUWfiAN.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -4289,8 +4289,8 @@ async function setupBetterAuthPlugins(projectDir, config) {
4289
4289
  const pluginsToAdd = [];
4290
4290
  const importsToAdd = [];
4291
4291
  if (config.backend === "self" && config.frontend?.includes("tanstack-start")) {
4292
- pluginsToAdd.push("reactStartCookies()");
4293
- importsToAdd.push("import { reactStartCookies } from \"better-auth/react-start\";");
4292
+ pluginsToAdd.push("tanstackStartCookies()");
4293
+ importsToAdd.push("import { tanstackStartCookies } from \"better-auth/tanstack-start\";");
4294
4294
  }
4295
4295
  if (config.backend === "self" && config.frontend?.includes("next")) {
4296
4296
  pluginsToAdd.push("nextCookies()");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
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",
@@ -54,7 +54,6 @@ export const web = await Nextjs("web", {
54
54
  {{else if (ne backend "self")}}
55
55
  NEXT_PUBLIC_SERVER_URL: process.env.NEXT_PUBLIC_SERVER_URL || "",
56
56
  {{/if}}
57
- {{#if (eq backend "self")}}
58
57
  {{#if (eq dbSetup "d1")}}
59
58
  DB: db,
60
59
  {{else if (ne database "none")}}
@@ -85,7 +84,6 @@ export const web = await Nextjs("web", {
85
84
  DATABASE_PASSWORD: process.env.DATABASE_PASSWORD || "",
86
85
  {{/if}}
87
86
  {{/if}}
88
- {{/if}}
89
87
  },
90
88
  dev: {
91
89
  command: "{{packageManager}} run dev"
@@ -128,7 +126,6 @@ export const web = await TanStackStart("web", {
128
126
  {{else if (ne backend "self")}}
129
127
  VITE_SERVER_URL: process.env.VITE_SERVER_URL || "",
130
128
  {{/if}}
131
- {{#if (eq backend "self")}}
132
129
  {{#if (eq dbSetup "d1")}}
133
130
  DB: db,
134
131
  {{else if (ne database "none")}}
@@ -159,7 +156,6 @@ export const web = await TanStackStart("web", {
159
156
  DATABASE_PASSWORD: process.env.DATABASE_PASSWORD || "",
160
157
  {{/if}}
161
158
  {{/if}}
162
- {{/if}}
163
159
  },
164
160
  dev: {
165
161
  command: "{{packageManager}} run dev"