Prisma Merge is a CLI tool for merging multiple Prisma schema files into a single output file, addressing the lack of native multi-file support in Prisma (issue #2377). Version 0.2.0 is the latest stable release; the package appears to be in maintenance mode with no recent updates. It uses glob patterns to collect schema files, with built-in exclusion of generated schema.prisma files. Written in TypeScript and ships type definitions. Differentiators: simple CLI, defaults that avoid conflicts with Prisma generated files, and oclif-based command structure.
npm install prisma-mergeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Merge multiple Prisma schema files using default glob patterns, excluding generated schema.prisma files.
Use absolute paths or run from the project root directory.
Explicitly set excludedFilePatterns to include paths for all generated schema.prisma files.
Consider migrating to Prisma's built-in multi-file support (prisma.schema directory).
Ensure the output directory exists before running, or create it with mkdir.
Double-check the pattern and ensure files exist at expected paths.