{"_id":"prisma-merge","_rev":"2-c065a52f1f5ec668b997d45886935d1c","name":"prisma-merge","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"prisma-merge","description":"Merge prisma schema files","version":"0.1.0","author":{"name":"cudba"},"bin":{"prisma-merge":"bin/run"},"bugs":{"url":"https://github.com/https://github.com/inside-labs/prisma-merge/issues"},"dependencies":{"@oclif/command":"^1","@oclif/config":"^1","@oclif/plugin-help":"^3","glob":"^7.1.6","tslib":"^1"},"devDependencies":{"@oclif/dev-cli":"^1","@types/node":"^10","ts-node":"^8","typescript":"^3.3"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/https://github.com/inside-labs/prisma-merge","keywords":["prisma"],"license":"MIT","main":"lib/index.js","oclif":{"bin":"prisma-merge"},"repository":{"type":"git","url":"git+https://github.com/inside-labs/prisma-merge.git"},"scripts":{"prepack":"rm -rf lib && tsc -b && oclif-dev readme","test":"echo NO TESTS","version":"oclif-dev readme && git add README.md"},"types":"lib/index.d.ts","gitHead":"3aabb14cfb0db400aed34e7752fdc96348aa0d56","_id":"prisma-merge@0.1.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+lIFlIe/qs/LnIs9TAipZHGXWyWiO/TvgtwltBU1PJK2jB71QA1rVuxWCuuyyecD/1N6lhAdiRSq6Me1ajUN0w==","shasum":"5db85a2276c70d4db7b026cc021f2583b95cfd4e","tarball":"https://registry.npmjs.org/prisma-merge/-/prisma-merge-0.1.0.tgz","fileCount":8,"unpackedSize":6833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxJQtCRA9TVsSAnZWagAAttoP/05bBbBKkZ2aAeXl7WpH\n+zUhjSS2AzvfKyO+3aknhRvRVAayw5qlGnCkywJCgfpgty0AfgJY4tSjLk/G\nZwydc1oeOXruUO/cwCkmnGSvuc35wt9vPCYNT2CXfv0ZaROCyAxRuzDBuIO4\nUYZryQUEDUupxT848E+7QF+c1VmREAfxDWDPGWi1jpQsDHxCtwzLfTvqSI00\nGDct9IMjT7+bW+CnDe3Ufi6NiiEQOwbN+kyGJJdgDy1mcQgS+DEfncvSj/k9\nU9HOwh9sFOBOntVbgbbo0ry9lPSR7YykxLxJK83xO8RPddy0hm8rl2QbVxc+\nfrw/s67HVZ/yi4mQoPGem2IgqPK3La4U9MNx15o2MvObHa9MoGeSba+qIaXi\nWn+OEWN3CfPh68YCdZq++MpYRi0fmbFJWHKcLDcgqqExEZ1oe18tsEDl/GRT\nf7AGz+aBjZhfxufCWEOepxSw89PVHDk5zcg7TroNMmloYQVUyIrVif+P7dOI\nW5P7KbejXArh0n4exEkIEoryJ7DIsmpuu6ioSgGFV0f+gwEjrPDIdzFOBsQ+\nehfhF/iXsYWJMyh5SUw3ehzrBCeT3wI0ofmvVPIZ6+DH0LWDa12YkmAOY+3q\nbxYSocZyYQ2/9vOsKb/kUPq04Vc41wwUc6FBavVaNdSA2dsotmwSFrTVsKfA\nsblh\r\n=XVxV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0aawzl1f8bEtI8QWVz3PsrViXh1ZgAaWQY9eM765uJAiAUUkddX4uxdeWdWEwkHFKLc0F3Czr2WCMxgDJASmpzZg=="}]},"_npmUser":{"name":"cudba","email":"cbarandun@gmail.com"},"directories":{},"maintainers":[{"name":"cudba","email":"cbarandun@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-merge_0.1.0_1606718509255_0.5945340534649421"},"_hasShrinkwrap":false},"0.2.0":{"name":"prisma-merge","description":"Merge prisma schema files","version":"0.2.0","author":{"name":"cudba"},"bin":{"prisma-merge":"bin/run"},"bugs":{"url":"https://github.com/https://github.com/inside-labs/prisma-merge/issues"},"dependencies":{"@oclif/command":"^1","@oclif/config":"^1","@oclif/plugin-help":"^3","glob":"^7.1.6","tslib":"^1"},"devDependencies":{"@oclif/dev-cli":"^1","@types/node":"^10","ts-node":"^8","typescript":"^3.3"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/https://github.com/inside-labs/prisma-merge","keywords":["prisma"],"license":"MIT","main":"lib/index.js","oclif":{"bin":"prisma-merge"},"repository":{"type":"git","url":"git+https://github.com/inside-labs/prisma-merge.git"},"scripts":{"prepack":"rm -rf lib && tsc -b && oclif-dev readme","test":"echo NO TESTS","version":"oclif-dev readme && git add README.md"},"types":"lib/index.d.ts","gitHead":"a6b59d38d28073a8cf2b159d5d7c60a9b9188692","_id":"prisma-merge@0.2.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+JUtw7P4ebcprjg0/KsgZukPBJuVPuo/Dv63NaZO7vsk4mufc+ekkhnm0n31HvnuYp3TAiPSarxUpbdpd0Ixcw==","shasum":"3dacd1314d1c6eef250e85441fc59901cee1c12e","tarball":"https://registry.npmjs.org/prisma-merge/-/prisma-merge-0.2.0.tgz","fileCount":8,"unpackedSize":6920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxJV+CRA9TVsSAnZWagAAFWgQAIHflZLp973s7DnhEfOI\nznjQ3r+brkF6AvpPVRclndSkqG4mB6+P4Y2WAsSnD+nMNlf00/IWRWBKCxAz\n9Lv3fkbaDNWCgmXbde+rjD9I7IiVdth5Zx/k9gP01/9Cn08Ib/1RdtrRzGJO\nn9Azp+QrXkjigIEjgOQItKGYIDbGGZwtA/3Hi4AcNha1ypMuRTY76S/z7AEB\nY1E3YQlzp99aOR7DI9MojZYzj/A/fxyylAvv5WfG3xtzjbMkcUmaITFCVLgk\npBwve/mrfv5qJhrS1rJFDsJSkQ0wgRFs1fbmpSOcG08PL3tHpdLNbO9EfVFt\nJ2bz+Gv+55YBZR/oVOunM6cAhemOcrgEr1rGWk3QJA9Qbafq3sq3x87TI69K\n9ZtngDv9CJ8hnqOXe9fCRUc65XVo71QA185dgSZ0edZ5DIJ2zE/FfFjLahmP\nVUX/k6EFNLnVVqISDfMgm69+pDwoDyjbfj+jyzhSQAXUwVnfV9kvCX5iopHz\niazirqLIKC4AZPluY9NU2VidrXVVpHP7PC6xZbMz14Yn+ZeWXgiC0rhU+fzU\n4eWWLEozzr8igCmOwUrv04NAhRhvNuag9WJLB0v/yg9RMurcic4sPMtcSuZ3\nbjsU1n4yZKDCv944/hpgx5gFdvoRTvO0K2G+zbJbUB+mt2+3GJfQ2WbFzJo5\nZrmr\r\n=iuRw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDNRqcN5TIKycpzb32T9ymG//Zg4Rejs5Iw3DeOevkrAiBFrEqZ4U/izPoD2j/f/3xKazopJHyqXDzTsWZhbimKLQ=="}]},"_npmUser":{"name":"cudba","email":"cbarandun@gmail.com"},"directories":{},"maintainers":[{"name":"cudba","email":"cbarandun@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-merge_0.2.0_1606718846011_0.5626713113989694"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-30T06:41:49.217Z","0.1.0":"2020-11-30T06:41:49.381Z","modified":"2022-05-13T10:33:01.942Z","0.2.0":"2020-11-30T06:47:26.137Z"},"maintainers":[{"name":"cudba","email":"cbarandun@gmail.com"}],"description":"Merge prisma schema files","homepage":"https://github.com/https://github.com/inside-labs/prisma-merge","keywords":["prisma"],"repository":{"type":"git","url":"git+https://github.com/inside-labs/prisma-merge.git"},"author":{"name":"cudba"},"bugs":{"url":"https://github.com/https://github.com/inside-labs/prisma-merge/issues"},"license":"MIT","readme":"prisma-merge\n============\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/prisma-merge.svg)](https://npmjs.org/package/prisma-merge)\n[![Downloads/week](https://img.shields.io/npm/dw/prisma-merge.svg)](https://npmjs.org/package/prisma-merge)\n[![License](https://img.shields.io/npm/l/prisma-merge.svg)](https://github.com/https://github.com/inside-labs/prisma-merge/prisma-merge/blob/master/package.json)\n\nUntil prisma supports multiple schema definition files. See issue [#2377](https://github.com/prisma/prisma/issues/2377#issuecomment-735387818)\n \nWe define our `base-file` which usually contains your `datasource` and `generator` statement and define a glob pattern for our schema files (usually just `*.prisma`).\nIt will then output a merged version. \n\nWe make use of the fact, that all generated schema files in migrations or the generated \nclient are named `schema.prisma`. So as long as  we name our schema files something else and include `schema.prisma` in \nour excluded pattern (which is the default), we should be fine. You can also just copy the script and tailor it to your needs. \nThe base & output file are excluded anyways and dont need to be added to the `excludedFilePatterns`\n\n# Install\nWith yarn\n```shell script\n$ yarn global add prisma-merge\n```\nor npx\n```shell script\n$ npx prisma-merge\n```\n# Options\n ```\n  -b, --baseFilePattern                            [default: src/**/*.base.prisma] Base file (can be glob), usually with datasource & generator statement\n  -e, --excludedFilePatterns                       [default: src/**/schema.prisma] Glob patterns for excluded files (e.g schema.prisma in migrations / generated folder)\n  -o, --outputFile                                 [default: src/prisma/schema.prisma] Output file\n  -s, --schemaFilePatterns                         [default: src/**/*.prisma] Glob to all prisma files to include\n  -h, --help                                       show CLI help\n```\n","readmeFilename":"README.md"}