I have a monorepo setup. It looks something like this:
- project
- node_modules
- packages
- my-first-project
- prisma
- schema.prisma
- prisma
- my-second-project
- prisma
- schema.prisma
- prisma
- my-first-project
So both projects (my-first-project and my-second-project) have @prisma/client installed and get there dependencies from the upper node_modules folder.
The thing is that whenever i change something in my schema.prisma file (e.g. in my-first-project) and run npx prisma migrate dev --name whatever
it generates all the types and stuff and puts it in the upper node_modules folder. this leads to "type not found" errors on the other project (e.g. my-second-project).
Is there a way to tell npm to keep some dependencies in a separate node_modules folder inside each project?