create-better-t-stack 2.45.1 → 2.45.3
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
|
@@ -59,8 +59,8 @@ function getDefaultConfig() {
|
|
|
59
59
|
}
|
|
60
60
|
const DEFAULT_CONFIG = getDefaultConfig();
|
|
61
61
|
const dependencyVersionMap = {
|
|
62
|
-
"better-auth": "^1.3.
|
|
63
|
-
"@better-auth/expo": "^1.3.
|
|
62
|
+
"better-auth": "^1.3.9",
|
|
63
|
+
"@better-auth/expo": "^1.3.9",
|
|
64
64
|
"@clerk/nextjs": "^6.31.5",
|
|
65
65
|
"@clerk/clerk-react": "^5.45.0",
|
|
66
66
|
"@clerk/tanstack-react-start": "^0.23.1",
|
|
@@ -6090,7 +6090,7 @@ async function getDatabaseInstructions(database, orm, runCmd, runtime, dbSetup,
|
|
|
6090
6090
|
if (orm === "prisma") {
|
|
6091
6091
|
if (database === "mongodb" && dbSetup === "docker") instructions.push(`${pc.yellow("WARNING:")} Prisma + MongoDB + Docker combination\n may not work.`);
|
|
6092
6092
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
|
6093
|
-
instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
|
|
6093
|
+
if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
|
|
6094
6094
|
if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Database UI: ${`${runCmd} db:studio`}`);
|
|
6095
6095
|
} else if (orm === "drizzle") {
|
|
6096
6096
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.45.
|
|
3
|
+
"version": "2.45.3",
|
|
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",
|
|
@@ -91,7 +91,12 @@ export const auth = betterAuth({
|
|
|
91
91
|
{{#if (eq database "mysql")}}provider: "mysql",{{/if}}
|
|
92
92
|
schema: schema,
|
|
93
93
|
}),
|
|
94
|
-
trustedOrigins: [
|
|
94
|
+
trustedOrigins: [
|
|
95
|
+
env.CORS_ORIGIN,
|
|
96
|
+
{{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
|
|
97
|
+
"mybettertapp://", "exp://"
|
|
98
|
+
{{/if}}
|
|
99
|
+
],
|
|
95
100
|
emailAndPassword: {
|
|
96
101
|
enabled: true,
|
|
97
102
|
},
|
|
@@ -1,38 +1,10 @@
|
|
|
1
1
|
import "dotenv/config";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import type { PrismaConfig } from "prisma";
|
|
4
|
-
{{#if (eq dbSetup "d1")}}
|
|
5
|
-
import { PrismaD1 } from "@prisma/adapter-d1";
|
|
6
|
-
{{/if}}
|
|
7
|
-
{{#if (eq dbSetup "turso")}}
|
|
8
|
-
import { PrismaLibSQL } from "@prisma/adapter-libsql";
|
|
9
|
-
{{/if}}
|
|
10
4
|
|
|
11
5
|
export default {
|
|
12
|
-
{{#if (or (eq dbSetup "d1") (eq dbSetup "turso"))}}
|
|
13
|
-
experimental: {
|
|
14
|
-
adapter: true
|
|
15
|
-
},
|
|
16
|
-
{{/if}}
|
|
17
6
|
schema: path.join("prisma", "schema"),
|
|
18
7
|
migrations: {
|
|
19
8
|
path: path.join("prisma", "migrations"),
|
|
20
|
-
}
|
|
21
|
-
{{#if (eq dbSetup "d1")}}
|
|
22
|
-
async adapter() {
|
|
23
|
-
return new PrismaD1({
|
|
24
|
-
CLOUDFLARE_D1_TOKEN: process.env.CLOUDFLARE_D1_TOKEN,
|
|
25
|
-
CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
|
|
26
|
-
CLOUDFLARE_DATABASE_ID: process.env.CLOUDFLARE_DATABASE_ID,
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
{{/if}}
|
|
30
|
-
{{#if (eq dbSetup "turso")}}
|
|
31
|
-
async adapter() {
|
|
32
|
-
return new PrismaLibSQL({
|
|
33
|
-
url: process.env.DATABASE_URL || "",
|
|
34
|
-
authToken: process.env.DATABASE_AUTH_TOKEN,
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
{{/if}}
|
|
9
|
+
}
|
|
38
10
|
} satisfies PrismaConfig;
|