Registry / devops / prisma-fuse

prisma-fuse

JSON →
library0.0.6jsnpmunverified

A CLI tool to merge multiple Prisma schema files into a single schema file. Supports glob patterns for includes/excludes, optional comment stripping, and namespace annotation compatible with prisma-markdown. Version 0.0.6, released as a single-purpose utility. Prioritizes simplicity and integration with Prisma workflows; alternatives like @prisma/schema-fuse are less feature-rich.

npm install prisma-fuse
INSTALL
IMPORT
SIG · PRISMA-FUSE
P
prisma-fuse
devopsjavascriptv0.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prisma-fuse
npx prisma-fuse [options]
CLI tool; no programmatic API. Use npx or install globally.

Merge all .prisma files under src/ except schema.prisma, using base.prisma as anchor, output to schema.prisma, and add @namespace comments.

npx prisma-fuse --base-file src/prisma/base.prisma --output-file src/prisma/schema.prisma --schema-file-glob 'src/**/*.prisma' --excluded-file-glob 'src/**/schema.prisma' --add-namespace-from-file-name
Debug
Known issues
gotchaThe default output file overwrites schema.prisma; ensure your base.prisma is not the target of the glob.
fix
Set excluded-file-glob to exclude the output file, or use a different output path.
affects: >=0.0.1
gotchaNamespace annotation via --add-namespace-from-file-name inserts comments that may interfere with Prisma's parser if not handled by prisma-markdown.
fix
Only use this flag if you are using prisma-markdown.
affects: >=0.0.1
gotchaThe tool does not validate merged schemas; invalid Prisma syntax may result in runtime errors when generating Prisma client.
fix
Run prisma validate or prisma generate after fusion to check schema correctness.
affects: >=0.0.1
deprecatedNo versions deprecated yet.
Errors
Common errors & fixes
Error: ENOENT: no such file or directory, open 'src/prisma/base.prisma'
Default base-file path does not exist.
fix
Create the base.prisma file or specify a different path with --base-file.
Error: Cannot find module 'glob'
Missing dependency when using older Node versions or manual install.
fix
Reinstall prisma-fuse: npm install -g prisma-fuse or use npx.
Error: Invalid glob pattern: 'src/**/*.prisma'
Shell expansion may interfere; wrap glob in quotes.
fix
Use single quotes around the glob pattern: 'src/**/*.prisma'.
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
prisma-fuse — npm install prisma-fuse · libregistry