{"id":48959,"library":"prisma-merge","title":"Prisma Merge","description":"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.","status":"maintenance","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/inside-labs/prisma-merge","tags":["javascript","prisma","typescript"],"install":[{"cmd":"npm install prisma-merge","lang":"bash","label":"npm"},{"cmd":"yarn add prisma-merge","lang":"bash","label":"yarn"},{"cmd":"pnpm add prisma-merge","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used for CLI command framework","package":"@oclif/command","optional":false}],"imports":[{"note":"Package is ESM-only; no CJS support.","wrong":"const prismaMerge = require('prisma-merge')","symbol":"prisma-merge","correct":"import prismaMerge from 'prisma-merge'"}],"quickstart":{"code":"import prismaMerge from 'prisma-merge';\n\nprismaMerge({\n  baseFilePattern: 'src/**/*.base.prisma',\n  schemaFilePatterns: 'src/**/*.prisma',\n  excludedFilePatterns: 'src/**/schema.prisma',\n  outputFile: 'src/prisma/schema.prisma'\n}).then(() => console.log('Merged successfully')).catch(console.error);","lang":"typescript","description":"Merge multiple Prisma schema files using default glob patterns, excluding generated schema.prisma files."},"warnings":[{"fix":"Use absolute paths or run from the project root directory.","message":"File patterns are relative to current working directory, not the project root.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Explicitly set excludedFilePatterns to include paths for all generated schema.prisma files.","message":"Excluded file patterns must include 'schema.prisma' to avoid overwriting generated files; defaults may not cover all cases.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider migrating to Prisma's built-in multi-file support (prisma.schema directory).","message":"Package is no longer actively maintained as Prisma now supports multi-file schemas natively.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.2.0':34 '2377':32 'address':20 'appear':42 'avoid':81 'base':90 'built':62 'built-in':61 'cli':7,78 'collect':57 'command':91 'conflict':82 'default':79 'definit':75 'differenti':76 'exclus':64 'file':14,19,27,59,68,86 'generat':66,85 'glob':54 'issu':31 'javascript':93 'lack':22 'latest':37 'mainten':46 'merg':2,4,10 'mode':47 'multi':26 'multi-fil':25 'multipl':11 'nativ':24 'oclif':89 'oclif-bas':88 'output':18 'packag':41 'pattern':55 'prisma':1,3,12,30,84,94 'recent':50 'releas':39 'schema':13,58 'schema.prisma':67 'ship':73 'simpl':77 'singl':17 'stabl':38 'structur':92 'support':28 'tool':8 'type':74 'typescript':71,95 'updat':51 'use':53 'version':33 'written':69","created_at":"2026-06-07T16:59:20.412689+00:00","updated_at":"2026-06-07T16:59:20.412689+00:00","problems":[{"fix":"Ensure the output directory exists before running, or create it with mkdir.","cause":"Output directory does not exist.","error":"Error: ENOENT: no such file or directory, open '...'"},{"fix":"Double-check the pattern and ensure files exist at expected paths.","cause":"Glob pattern did not match any files.","error":"Error: No files matched pattern '...'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/https://github.com/inside-labs/prisma-merge","github":"https://github.com/inside-labs/prisma-merge","docs":null,"changelog":null,"pypi":null,"npm":"prisma-merge","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}