create-better-t-stack 2.40.1 → 2.40.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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DCgC3MR2.js → src-BOnnM-3r.js} +9 -6
- package/package.json +1 -1
- package/templates/db/prisma/mongodb/prisma/schema/schema.prisma.hbs +19 -0
- package/templates/db/prisma/mysql/prisma/schema/schema.prisma.hbs +19 -0
- package/templates/db/prisma/postgres/prisma/schema/schema.prisma.hbs +10 -1
- package/templates/db/prisma/sqlite/prisma/schema/schema.prisma.hbs +19 -0
- package/templates/db/prisma/mongodb/prisma/schema/schema.prisma +0 -10
- package/templates/db/prisma/mysql/prisma/schema/schema.prisma +0 -10
- package/templates/db/prisma/sqlite/prisma/schema/schema.prisma +0 -10
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -74,8 +74,8 @@ const dependencyVersionMap = {
|
|
|
74
74
|
"@types/ws": "^8.18.1",
|
|
75
75
|
ws: "^8.18.3",
|
|
76
76
|
mysql2: "^3.14.0",
|
|
77
|
-
"@prisma/client": "^6.
|
|
78
|
-
prisma: "^6.
|
|
77
|
+
"@prisma/client": "^6.15.0",
|
|
78
|
+
prisma: "^6.15.0",
|
|
79
79
|
"@prisma/extension-accelerate": "^2.0.2",
|
|
80
80
|
mongoose: "^8.14.0",
|
|
81
81
|
"vite-plugin-pwa": "^1.0.1",
|
|
@@ -108,9 +108,9 @@ const dependencyVersionMap = {
|
|
|
108
108
|
"@ai-sdk/svelte": "^3.0.9",
|
|
109
109
|
"@ai-sdk/react": "^2.0.9",
|
|
110
110
|
streamdown: "^1.1.6",
|
|
111
|
-
"@orpc/server": "^1.8.
|
|
112
|
-
"@orpc/client": "^1.8.
|
|
113
|
-
"@orpc/tanstack-query": "^1.8.
|
|
111
|
+
"@orpc/server": "^1.8.6",
|
|
112
|
+
"@orpc/client": "^1.8.6",
|
|
113
|
+
"@orpc/tanstack-query": "^1.8.6",
|
|
114
114
|
"@trpc/tanstack-react-query": "^11.5.0",
|
|
115
115
|
"@trpc/server": "^11.5.0",
|
|
116
116
|
"@trpc/client": "^11.5.0",
|
|
@@ -828,8 +828,11 @@ async function getDBSetupChoice(databaseType, dbSetup, orm, backend, runtime) {
|
|
|
828
828
|
//#endregion
|
|
829
829
|
//#region src/prompts/examples.ts
|
|
830
830
|
async function getExamplesChoice(examples, database, frontends, backend, api) {
|
|
831
|
-
if (api === "none") return [];
|
|
832
831
|
if (examples !== void 0) return examples;
|
|
832
|
+
if (api === "none") {
|
|
833
|
+
if (backend === "convex") return ["todo"];
|
|
834
|
+
return [];
|
|
835
|
+
}
|
|
833
836
|
if (backend === "convex") return ["todo"];
|
|
834
837
|
if (backend === "none") return [];
|
|
835
838
|
if (database === "none") return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.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",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client"
|
|
3
|
+
output = "../generated"
|
|
4
|
+
moduleFormat = "esm"
|
|
5
|
+
{{#if (eq runtime "bun")}}
|
|
6
|
+
runtime = "bun"
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if (eq runtime "node")}}
|
|
9
|
+
runtime = "nodejs"
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#if (eq runtime "workers")}}
|
|
12
|
+
runtime = "workerd"
|
|
13
|
+
{{/if}}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
datasource db {
|
|
17
|
+
provider = "mongodb"
|
|
18
|
+
url = env("DATABASE_URL")
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client"
|
|
3
|
+
output = "../generated"
|
|
4
|
+
moduleFormat = "esm"
|
|
5
|
+
{{#if (eq runtime "bun")}}
|
|
6
|
+
runtime = "bun"
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if (eq runtime "node")}}
|
|
9
|
+
runtime = "nodejs"
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#if (eq runtime "workers")}}
|
|
12
|
+
runtime = "workerd"
|
|
13
|
+
{{/if}}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
datasource db {
|
|
17
|
+
provider = "mysql"
|
|
18
|
+
url = env("DATABASE_URL")
|
|
19
|
+
}
|
|
@@ -2,10 +2,19 @@ generator client {
|
|
|
2
2
|
provider = "prisma-client"
|
|
3
3
|
output = "../generated"
|
|
4
4
|
moduleFormat = "esm"
|
|
5
|
+
{{#if (eq runtime "bun")}}
|
|
6
|
+
runtime = "bun"
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if (eq runtime "node")}}
|
|
9
|
+
runtime = "nodejs"
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#if (eq runtime "workers")}}
|
|
12
|
+
runtime = "workerd"
|
|
13
|
+
{{/if}}
|
|
5
14
|
}
|
|
6
15
|
|
|
7
16
|
datasource db {
|
|
8
|
-
provider = "
|
|
17
|
+
provider = "postgresql"
|
|
9
18
|
url = env("DATABASE_URL")
|
|
10
19
|
{{#if (eq dbSetup "supabase")}}
|
|
11
20
|
directUrl = env("DIRECT_URL")
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client"
|
|
3
|
+
output = "../generated"
|
|
4
|
+
moduleFormat = "esm"
|
|
5
|
+
{{#if (eq runtime "bun")}}
|
|
6
|
+
runtime = "bun"
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if (eq runtime "node")}}
|
|
9
|
+
runtime = "nodejs"
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#if (eq runtime "workers")}}
|
|
12
|
+
runtime = "workerd"
|
|
13
|
+
{{/if}}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
datasource db {
|
|
17
|
+
provider = "sqlite"
|
|
18
|
+
url = env("DATABASE_URL")
|
|
19
|
+
}
|