create-better-t-stack 3.6.5 → 3.6.7
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
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-
|
|
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.
|
|
66
|
-
"@better-auth/expo": "^1.4.
|
|
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.
|
|
83
|
-
prisma: "^7.0.
|
|
84
|
-
"@prisma/adapter-d1": "^7.0.
|
|
85
|
-
"@prisma/adapter-neon": "^7.0.
|
|
86
|
-
"@prisma/adapter-mariadb": "^7.0.
|
|
87
|
-
"@prisma/adapter-libsql": "^7.0.
|
|
88
|
-
"@prisma/adapter-better-sqlite3": "^7.0.
|
|
89
|
-
"@prisma/adapter-pg": "^7.0.
|
|
90
|
-
"@prisma/adapter-planetscale": "^7.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",
|
|
@@ -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-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
{{#if (eq orm "prisma")}}
|
|
2
|
-
import { betterAuth
|
|
2
|
+
import { betterAuth } from "better-auth";
|
|
3
3
|
import { prismaAdapter } from "better-auth/adapters/prisma";
|
|
4
4
|
{{#if (eq payments "polar")}}
|
|
5
5
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -7,7 +7,7 @@ import { polarClient } from "./lib/payments";
|
|
|
7
7
|
{{/if}}
|
|
8
8
|
import prisma from "@{{projectName}}/db";
|
|
9
9
|
|
|
10
|
-
export const auth = betterAuth
|
|
10
|
+
export const auth = betterAuth({
|
|
11
11
|
database: prismaAdapter(prisma, {
|
|
12
12
|
{{#if (eq database "postgres")}}provider: "postgresql",{{/if}}
|
|
13
13
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -59,7 +59,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
59
59
|
|
|
60
60
|
{{#if (eq orm "drizzle")}}
|
|
61
61
|
{{#if (or (eq runtime "bun") (eq runtime "node") (eq runtime "none"))}}
|
|
62
|
-
import { betterAuth
|
|
62
|
+
import { betterAuth } from "better-auth";
|
|
63
63
|
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
64
64
|
{{#if (eq payments "polar")}}
|
|
65
65
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -68,7 +68,7 @@ import { polarClient } from "./lib/payments";
|
|
|
68
68
|
import { db } from "@{{projectName}}/db";
|
|
69
69
|
import * as schema from "@{{projectName}}/db/schema/auth";
|
|
70
70
|
|
|
71
|
-
export const auth = betterAuth
|
|
71
|
+
export const auth = betterAuth({
|
|
72
72
|
database: drizzleAdapter(db, {
|
|
73
73
|
{{#if (eq database "postgres")}}provider: "pg",{{/if}}
|
|
74
74
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -119,7 +119,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
119
119
|
{{/if}}
|
|
120
120
|
|
|
121
121
|
{{#if (eq runtime "workers")}}
|
|
122
|
-
import { betterAuth
|
|
122
|
+
import { betterAuth } from "better-auth";
|
|
123
123
|
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
124
124
|
{{#if (eq payments "polar")}}
|
|
125
125
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -129,7 +129,7 @@ import { db } from "@{{projectName}}/db";
|
|
|
129
129
|
import * as schema from "@{{projectName}}/db/schema/auth";
|
|
130
130
|
import { env } from "cloudflare:workers";
|
|
131
131
|
|
|
132
|
-
export const auth = betterAuth
|
|
132
|
+
export const auth = betterAuth({
|
|
133
133
|
database: drizzleAdapter(db, {
|
|
134
134
|
{{#if (eq database "postgres")}}provider: "pg",{{/if}}
|
|
135
135
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -194,7 +194,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
194
194
|
{{/if}}
|
|
195
195
|
|
|
196
196
|
{{#if (eq orm "mongoose")}}
|
|
197
|
-
import { betterAuth
|
|
197
|
+
import { betterAuth } from "better-auth";
|
|
198
198
|
import { mongodbAdapter } from "better-auth/adapters/mongodb";
|
|
199
199
|
{{#if (eq payments "polar")}}
|
|
200
200
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -202,7 +202,7 @@ import { polarClient } from "./lib/payments";
|
|
|
202
202
|
{{/if}}
|
|
203
203
|
import { client } from "@{{projectName}}/db";
|
|
204
204
|
|
|
205
|
-
export const auth = betterAuth
|
|
205
|
+
export const auth = betterAuth({
|
|
206
206
|
database: mongodbAdapter(client),
|
|
207
207
|
trustedOrigins: [
|
|
208
208
|
process.env.CORS_ORIGIN || "",
|
|
@@ -248,13 +248,13 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
248
248
|
{{/if}}
|
|
249
249
|
|
|
250
250
|
{{#if (eq orm "none")}}
|
|
251
|
-
import { betterAuth
|
|
251
|
+
import { betterAuth } from "better-auth";
|
|
252
252
|
{{#if (eq payments "polar")}}
|
|
253
253
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
254
254
|
import { polarClient } from "./lib/payments";
|
|
255
255
|
{{/if}}
|
|
256
256
|
|
|
257
|
-
export const auth = betterAuth
|
|
257
|
+
export const auth = betterAuth({
|
|
258
258
|
database: "", // Invalid configuration
|
|
259
259
|
trustedOrigins: [
|
|
260
260
|
process.env.CORS_ORIGIN || "",
|
|
@@ -14,9 +14,9 @@ const prisma = new PrismaClient({
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
{{else if (eq dbSetup "prisma-postgres")}}
|
|
17
|
-
import {
|
|
17
|
+
import { PrismaPg } from "@prisma/adapter-pg";
|
|
18
18
|
|
|
19
|
-
const adapter = new
|
|
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 {
|
|
51
|
+
import { PrismaPg } from "@prisma/adapter-pg";
|
|
52
52
|
|
|
53
|
-
const adapter = new
|
|
53
|
+
const adapter = new PrismaPg({
|
|
54
54
|
connectionString: process.env.DATABASE_URL || "",
|
|
55
55
|
});
|
|
56
56
|
|