diff --git a/packages/database/package.json b/packages/database/package.json index 12d456b..6c2ba35 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -18,6 +18,6 @@ "@types/bcrypt": "^5.0.0" }, "prisma": { - "seed": "node --loader ts-node/esm prisma/seed.ts" + "seed": "ts-node prisma/seed.ts" } } diff --git a/packages/database/prisma/seed.ts b/packages/database/prisma/seed.ts index 9e67a14..f9c0745 100644 --- a/packages/database/prisma/seed.ts +++ b/packages/database/prisma/seed.ts @@ -1,5 +1,6 @@ import { PrismaClient } from '@prisma/client'; import bcrypt from 'bcrypt'; + const prisma = new PrismaClient(); async function main() {