File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
- "type" : " module " ,
6
+
7
7
"scripts" : {
8
- "build" : " tsc " ,
8
+ "build" : " npx esbuild ./src/index.ts --bundle --platform=node --outfile=dist/index.js --external:swagger-ui-express --external:swagger-jsdoc " ,
9
9
"start" : " node dist/index.js" ,
10
10
"dev" : " ts-node src/index.ts"
11
11
},
Original file line number Diff line number Diff line change 1
1
import express from "express" ;
2
- import { prisma as db } from "@repo/db/client" ;
2
+ import db from "@repo/db/client" ;
3
3
4
4
import swaggerJSDoc from "swagger-jsdoc" ;
5
5
import { z } from "zod" ;
Original file line number Diff line number Diff line change 16
16
// }
17
17
{
18
18
"extends" : " @repo/typescript-config/base.json" ,
19
- // "compilerOptions": {
20
- // "outDir": "dist"
21
- // },
22
19
"compilerOptions" : {
23
- "outDir" : " dist" ,
24
- "module" : " NodeNext" ,
25
- "moduleResolution" : " NodeNext" ,
26
- "target" : " ES2022"
20
+ "outDir" : " dist"
27
21
},
22
+ // "compilerOptions": {
23
+ // "outDir": "dist",
24
+ // "module": "NodeNext",
25
+ // "moduleResolution": "NodeNext",
26
+ // "target": "ES2022"
27
+ // },
28
28
"include" : [" src" ],
29
29
"exclude" : [" node_modules" , " dist" ]
30
30
}
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ declare global {
11
11
const prisma : ReturnType < typeof prismaClientSingleton > = globalThis . prismaGlobal ?? prismaClientSingleton ( )
12
12
13
13
export default prisma
14
- export { prisma } ;
14
+
15
15
16
16
if ( process . env . NODE_ENV !== 'production' ) globalThis . prismaGlobal = prisma
You can’t perform that action at this time.
0 commit comments