Update package.json to add prisma; Add prisma library

This commit is contained in:
Stefan-5422
2022-03-09 10:26:21 +01:00
parent dad7663aca
commit c6319edc31
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -19,8 +19,10 @@
},
"homepage": "https://github.com/GithubOrgProjectPiza/server#readme",
"dependencies": {
"@prisma/client": "^3.10.0",
"@types/express": "^4.17.13",
"express": "^4.17.3",
"prisma": "^3.10.0",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
},
+8
View File
@@ -0,0 +1,8 @@
import { PrismaClient } from "@prisma/client";
// See here: https://github.com/prisma/prisma-client-js/issues/228#issuecomment-618433162
let prisma: PrismaClient;
prisma = new PrismaClient();
export default prisma;