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 13eba8d commit ad379ba
Show file tree
Hide file tree
Showing 15 changed files with 1,114 additions and 2,063 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`
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 ad379ba

Please sign in to comment.