李白字一日
02/08/2021, 2:35 AMEddy Nguyen
02/08/2021, 5:25 AMprisma.schema
, and using polyrepo approach, you might want to write a script to copy the file from the original location to other repos.
If you are using webpack, you can add a plugin to copy the schema file to other directories everytime a build happens. There could be other ways as well.
I normally see people just share the generated prisma client so there’s only one source for the schema. In this case, if you are using a monorepo, you can import it to packages where you need it. If you are using polyrepo, you might have to publish an npm package and install it where you need it.李白字一日
02/08/2021, 6:03 AMEddy Nguyen
02/08/2021, 6:18 AM李白字一日
02/08/2021, 8:10 AMnikolasburk
李白字一日
02/08/2021, 9:07 AM