Skip to content

Commit

Permalink
fix(example): Fix Prisma example (#8046)
Browse files Browse the repository at this point in the history
### Description

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

Fix missing dependency `tsup` and incorrect import path of the
`database` package of the `with-prisma` example.

I was boostrapping an app using the prisma example and ran into some
errors mostly likely caused by some minor missing pieces in the previous
update #6571. This patch should fix
them.

---------

Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
  • Loading branch information
caaatisgood and anthonyshew committed Apr 28, 2024
1 parent 35e3526 commit d9676c0
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 15 deletions.
5 changes: 3 additions & 2 deletions examples/with-prisma/packages/database/package.json
Expand Up @@ -9,7 +9,7 @@
"db:migrate:dev": "prisma migrate dev",
"db:push": "prisma db push",
"db:seed": "tsx src/seed.ts",
"dev": "tsup --watch",
"dev": "tsup src/* --watch",
"format": "prisma format",
"generate": "prisma generate",
"lint": "eslint . --max-warnings 0",
Expand All @@ -22,10 +22,11 @@
},
"devDependencies": {
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"eslint": "^8.57.0",
"prisma": "^5.10.2",
"rimraf": "^5.0.5",
"@repo/typescript-config": "*",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-prisma/packages/database/src/seed.ts
@@ -1,4 +1,4 @@
import { prisma } from ".";
import { prisma } from "./client";

import type { User } from "@prisma/client";

Expand Down

0 comments on commit d9676c0

Please sign in to comment.