Is there a way I can use a single dB with Prisma in two different projects?
n
Nurul
04/14/2022, 9:00 AM
Hey 👋
One way could be creating either an NPM or Github package that has just the types generated by Prisma and using them in different projects.
👍 1
s
shahrukh ahmed
04/14/2022, 9:16 AM
Thank you. Let me try this.
My problem is I have a project like this. When I run prisma generate --schema="path", whatever is generated ends up in the parent node_modules.
When I use prisma client in the svelte directory, models are often not updated.
Copy code
|prisma
|schema.prisma
|svelte
|package.json (svelte framework related stuff)
|package.json (express related stuff)
|app.js.