Skip to content

Commit

Permalink
Merge pull request #83 from admisio/update_fix_prisma_node20
Browse files Browse the repository at this point in the history
(backend) fix prisma db:seed on node 20, upgrade prisma
  • Loading branch information
EETagent authored May 29, 2023
2 parents 71b813a + 9a00a1d commit 1a8912a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 30 deletions.
6 changes: 3 additions & 3 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"db:deploy": "prisma migrate deploy"
},
"dependencies": {
"@prisma/client": "^4.11.0",
"@prisma/client": "^4.13.0",
"bcrypt": "^5.1.0"
},
"devDependencies": {
"prisma": "^4.11.0",
"prisma": "^4.13.0",
"ts-node": "^10.9.1",
"@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
5 changes: 1 addition & 4 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
},
"dependencies": {
"@testy/database": "workspace:*",
"@prisma/client": "^4.11.0",
"@prisma/client": "^4.13.0",
"jest-mock-extended": "^3.0.3",
"vitest": "^0.29.7"
},
"devDependencies": {
"eslint-config-custom": "workspace:*",
"ts-node": "^10.9.1"
},
"prisma": {
"seed": "node --loader ts-node/esm prisma/seed.ts"
}
}
5 changes: 1 addition & 4 deletions packages/usersplit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
"ts-node": "^10.9.1"
},
"devDependencies": {
"prisma": "^4.11.0",
"prisma": "^4.13.0",
"ts-node": "^10.9.1",
"@types/bcrypt": "^5.0.0"
},
"prisma": {
"seed": "node --loader ts-node/esm prisma/seed.ts"
}
}
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a8912a

Please sign in to comment.