Merge Prisma Schema is simple tool to merge splitted prisma schema files. It allow to load partial schema from multiple location. The tool contain "validation" and "formatting" steps.
Install with npm install --global merge-prisma-schema
. Merge Prisma Schema can be used either through a command line interface with an optional configuration file.
You can create config file merge-prisma-schema.config.js
or merge-prisma-schema.config.json
or put configuration into package.json
name | description | default |
---|---|---|
schemas |
list of schema path | [] |
schemaSearchFolders |
list of folders to search schemas | ["prisma"] |
output |
location to store the merged schema | "prisma/schema.prisma" |
prismaCli |
prisma CLI path | "npx prisma" |