Skip to content

Commit 4cae3b7

Browse files
fix type error in prisma.config.ts
1 parent a0fb387 commit 4cae3b7

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.changeset/heavy-weeks-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
fix prisma type error

apps/cli/templates/backend/server/next/tsconfig.json.hbs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
"name": "next"
2222
}
2323
],
24-
"paths": {
25-
"@/*": ["./src/*"]
26-
}
24+
"paths": {
25+
"@/*": ["./src/*"]
26+
{{#if (eq orm 'prisma')}},
27+
"prisma": ["node_modules/prisma"]
28+
{{/if}}
29+
},
2730
},
2831
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
2932
"exclude": ["node_modules"]

apps/cli/templates/backend/server/server-base/tsconfig.json.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"skipLibCheck": true,
99
"baseUrl": "./",
1010
"paths": {
11-
"@/*": ["./src/*"]
11+
"@/*": ["./src/*"]
12+
{{#if (eq orm 'prisma')}},
13+
"prisma": ["node_modules/prisma"]
14+
{{/if}}
1215
},
1316
"outDir": "./dist",
1417
"types": [

bun.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"apps/cli": {
1616
"name": "create-better-t-stack",
17-
"version": "2.18.1",
17+
"version": "2.18.3",
1818
"bin": {
1919
"create-better-t-stack": "dist/index.js",
2020
},

0 commit comments

Comments
 (0)