PrismaP
Prisma2y ago
7 replies
JayPe

Multiple schema - node_modules - prisma client

Hello,

I have one monorepository with the following structure :

/src
/service1
/prisma
prisma.schema
/service2
/prisma
prisma.schema

I'm using only one Dockerfile, and a docker compose to expose both services.
In dev environment, I want to be able to debug both services, but it seems that

npx --yes prisma generate --schema src/service1/prisma/schema.prisma
npx --yes prisma generate --schema src/service2/prisma/schema.prisma

the second command will erase the content of the first command in the .prisma folder in node_modules.
Is there any way to be able to generate prisma data from 2 different schemas ?

so according to the order of my generates command, one service is working and not the other one.

Any idea ?
Was this page helpful?