If you’re using prisma in a pnpm workspace inside ...
# random
r
If you’re using prisma in a pnpm workspace inside a
packages/db
package, consider adding a
prisma
script to the workspace root, so that you can run all prisma CLI commands from the root naturally:
Copy code
# from your workspace-root:
pnpm prisma generate
pnpm prisma migrate dev
pnpm prisma db push
looks like this:
Copy code
{
  scripts: {
    "prisma": "pnpm --filter db exec prisma"
  }
}
Wrote it about it here.
1
j
That's look great
I will implement your solutions to my side project. Now it has 3 prisma client which has own schema