Skip to content

Commit

Permalink
fixes for prisma 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Apr 10, 2024
1 parent 3f9eadf commit a7425cd
Show file tree
Hide file tree
Showing 18 changed files with 1,120 additions and 2,069 deletions.
2 changes: 1 addition & 1 deletion .changeset/bump-prisma-now.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@keystone-6/core': major
---

Upgrade `prisma` to `5.1.0`
Upgrade `@prisma/*` packages to `5.12.1`
4 changes: 2 additions & 2 deletions examples/cloudinary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"dependencies": {
"@keystone-6/cloudinary": "^7.0.0",
"@keystone-6/core": "^5.7.0",
"@prisma/client": "^4.16.2",
"@prisma/client": "^5.0.0",
"dotenv": "^16.0.0"
},
"devDependencies": {
"prisma": "^4.16.2",
"prisma": "^5.0.0",
"typescript": "~5.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/reuse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"dependencies": {
"@keystone-6/core": "^5.7.0",
"@prisma/client": "^4.16.2"
"@prisma/client": "^5.0.0"
},
"devDependencies": {
"prisma": "^4.16.2",
"prisma": "^5.0.0",
"typescript": "~5.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/usecase-relationship-union/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"dependencies": {
"@keystone-6/core": "^5.7.0",
"@prisma/client": "^4.16.2"
"@prisma/client": "^5.0.0"
},
"devDependencies": {
"prisma": "^4.16.2",
"prisma": "^5.0.0",
"typescript": "~5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@
"@keystone-ui/toast": "workspace:^",
"@keystone-ui/tooltip": "workspace:^",
"@nodelib/fs.walk": "^2.0.0",
"@prisma/client": "5.11.0",
"@prisma/internals": "5.11.0",
"@prisma/migrate": "5.11.0",
"@prisma/client": "5.12.1",
"@prisma/internals": "5.12.1",
"@prisma/migrate": "5.12.1",
"@sindresorhus/slugify": "^1.1.2",
"apollo-upload-client": "^17.0.0",
"bcryptjs": "^2.4.3",
Expand Down Expand Up @@ -235,7 +235,7 @@
"meow": "^9.0.0",
"next": "^13.3.0",
"pluralize": "^8.0.0",
"prisma": "5.1.1",
"prisma": "5.12.1",
"prompts": "^2.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ export async function generateTypes (cwd: string, system: System) {

export async function generatePrismaClient (cwd: string, system: System) {
const paths = getSystemPaths(cwd, system.config)
const dataProxy = system.config.db.url.startsWith('prisma:')
const generators = await getGenerators({
schemaPath: paths.schema.prisma,
dataProxy,
})

await Promise.all(
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/lib/types.d.ts

This file was deleted.

Loading

0 comments on commit a7425cd

Please sign in to comment.