Skip to content

Commit

Permalink
fix: prisma db:seed on node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
EETagent committed May 2, 2023
1 parent d6018f3 commit 9a00a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
1 change: 1 addition & 0 deletions packages/database/prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { PrismaClient } from '@prisma/client';
import bcrypt from 'bcrypt';

const prisma = new PrismaClient();

async function main() {
Expand Down

0 comments on commit 9a00a1d

Please sign in to comment.