Skip to content

docs(docs): fix pnpm workspace client imports#8063

Open
jaeyunjks wants to merge 1 commit into
prisma:mainfrom
jaeyunjks:docs/fix-pnpm-workspace-client-import
Open

docs(docs): fix pnpm workspace client imports#8063
jaeyunjks wants to merge 1 commit into
prisma:mainfrom
jaeyunjks:docs/fix-pnpm-workspace-client-import

Conversation

@jaeyunjks

@jaeyunjks jaeyunjks commented Jul 12, 2026

Copy link
Copy Markdown

Linear: DC-7944

Summary

  • Updates the Prisma Client import in the pnpm workspaces guide to point to ./generated/client/client.
  • Updates the generated client re-export to use the same Prisma 7 entry point.
  • Aligns the guide with the output structure of the prisma-client generator, which does not generate a root index.ts barrel file.

Testing

  • Ran git diff --check.
  • Confirmed no outdated ./generated/client imports remain in the guide.
  • Verified that Prisma's generated client.ts is the main server-side entry point and exports Prisma Client, models, enums, and generated types.

Fixes #7944

Summary by CodeRabbit

  • Documentation
    • Updated the pnpm workspaces deployment guide to use the current generated Prisma Client folder structure.
    • Corrected Prisma Client import and type re-export paths in the setup examples.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

@jaeyunjks is attempting to deploy a commit to the Prisma Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f21d02d4-d469-463e-b608-10ee63d7c4b0

📥 Commits

Reviewing files that changed from the base of the PR and between fb5c8ca and fa9cce6.

📒 Files selected for processing (1)
  • apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx

Walkthrough

The pnpm workspaces deployment guide updates both Prisma Client snippets to import from ./generated/client/client, matching the Prisma 7 generated output structure.

Changes

pnpm workspace Prisma setup

Layer / File(s) Summary
Generated client path updates
apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx
The PrismaClient import and generated Prisma type re-export now use the nested ./generated/client/client path.

Estimated code review effort: 2 (Simple) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: updating pnpm workspace Prisma client import paths for Prisma 7.
Linked Issues check ✅ Passed The guide now uses ./generated/client/client for imports and re-exports, satisfying the linked Prisma 7 fix request.
Out of Scope Changes check ✅ Passed The diff is limited to the documented Prisma client import/re-export paths and adds no unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] pnpm workspaces guide: import path ./generated/client doesn't work with Prisma 7

1 participant