How to share Hono RPC client type with frontend package?
We have a Hono backend application using Prisma ORM. One day our frontend application added the backend package as a dependency to use Hono RPC. However, this led to the following error since PrismaClient only works in a Node.js runtime:
"PrismaClient" is not exported by "../../packages/db/prisma-client/index-browser.js", imported by "../server/src/db.ts".
"PrismaClient" is not exported by "../../packages/db/prisma-client/index-browser.js", imported by "../server/src/db.ts".
This happens because the frontend app has a direct dependency on the backend app. Is there a best practice for sharing only the Hono RPC client types with another package?