create-better-t-stack 3.6.4 → 3.6.6

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-BMcSQ5Qw.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-BMcSQ5Qw.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -62,8 +62,8 @@ function getDefaultConfig() {
62
62
  }
63
63
  const DEFAULT_CONFIG = getDefaultConfig();
64
64
  const dependencyVersionMap = {
65
- "better-auth": "^1.4.0",
66
- "@better-auth/expo": "^1.4.0",
65
+ "better-auth": "^1.4.5",
66
+ "@better-auth/expo": "^1.4.5",
67
67
  "@clerk/nextjs": "^6.31.5",
68
68
  "@clerk/clerk-react": "^5.45.0",
69
69
  "@clerk/tanstack-react-start": "^0.26.3",
@@ -79,16 +79,15 @@ const dependencyVersionMap = {
79
79
  "@types/ws": "^8.18.1",
80
80
  ws: "^8.18.3",
81
81
  mysql2: "^3.14.0",
82
- "@prisma/client": "^7.0.0",
83
- prisma: "^7.0.0",
84
- "@prisma/adapter-d1": "^7.0.0",
85
- "@prisma/adapter-neon": "^7.0.0",
86
- "@prisma/adapter-mariadb": "^7.0.0",
87
- "@prisma/adapter-libsql": "^7.0.0",
88
- "@prisma/adapter-better-sqlite3": "^7.0.0",
89
- "@prisma/adapter-pg": "^7.0.0",
90
- "@prisma/adapter-planetscale": "^7.0.0",
91
- "@prisma/adapter-ppg": "^7.0.0",
82
+ "@prisma/client": "^7.0.1",
83
+ prisma: "^7.0.1",
84
+ "@prisma/adapter-d1": "^7.0.1",
85
+ "@prisma/adapter-neon": "^7.0.1",
86
+ "@prisma/adapter-mariadb": "^7.0.1",
87
+ "@prisma/adapter-libsql": "^7.0.1",
88
+ "@prisma/adapter-better-sqlite3": "^7.0.1",
89
+ "@prisma/adapter-pg": "^7.0.1",
90
+ "@prisma/adapter-planetscale": "^7.0.1",
92
91
  mongoose: "^8.14.0",
93
92
  "vite-plugin-pwa": "^1.0.1",
94
93
  "@vite-pwa/assets-generator": "^1.0.0",
@@ -4289,8 +4288,8 @@ async function setupBetterAuthPlugins(projectDir, config) {
4289
4288
  const pluginsToAdd = [];
4290
4289
  const importsToAdd = [];
4291
4290
  if (config.backend === "self" && config.frontend?.includes("tanstack-start")) {
4292
- pluginsToAdd.push("reactStartCookies()");
4293
- importsToAdd.push("import { reactStartCookies } from \"better-auth/react-start\";");
4291
+ pluginsToAdd.push("tanstackStartCookies()");
4292
+ importsToAdd.push("import { tanstackStartCookies } from \"better-auth/tanstack-start\";");
4294
4293
  }
4295
4294
  if (config.backend === "self" && config.frontend?.includes("next")) {
4296
4295
  pluginsToAdd.push("nextCookies()");
@@ -5718,7 +5717,7 @@ async function setupDatabase(config, cliInput) {
5718
5717
  else if (database === "postgres") if (dbSetup === "neon") {
5719
5718
  prismaDependencies.push("@prisma/adapter-neon", "@neondatabase/serverless", "ws");
5720
5719
  prismaDevDependencies.push("@types/ws");
5721
- } else if (dbSetup === "prisma-postgres") prismaDependencies.push("@prisma/adapter-ppg");
5720
+ } else if (dbSetup === "prisma-postgres") prismaDependencies.push("@prisma/adapter-pg");
5722
5721
  else {
5723
5722
  prismaDependencies.push("@prisma/adapter-pg");
5724
5723
  prismaDependencies.push("pg");
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.6",
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",
@@ -14,9 +14,9 @@ const prisma = new PrismaClient({
14
14
  });
15
15
 
16
16
  {{else if (eq dbSetup "prisma-postgres")}}
17
- import { PrismaPostgresAdapter } from "@prisma/adapter-ppg";
17
+ import { PrismaPg } from "@prisma/adapter-pg";
18
18
 
19
- const adapter = new PrismaPostgresAdapter({
19
+ const adapter = new PrismaPg({
20
20
  connectionString: env.DATABASE_URL || "",
21
21
  });
22
22
 
@@ -48,9 +48,9 @@ const adapter = new PrismaNeon({
48
48
  const prisma = new PrismaClient({ adapter });
49
49
 
50
50
  {{else if (eq dbSetup "prisma-postgres")}}
51
- import { PrismaPostgresAdapter } from "@prisma/adapter-ppg";
51
+ import { PrismaPg } from "@prisma/adapter-pg";
52
52
 
53
- const adapter = new PrismaPostgresAdapter({
53
+ const adapter = new PrismaPg({
54
54
  connectionString: process.env.DATABASE_URL || "",
55
55
  });
56
56
 
@@ -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"