{"_id":"@cyntheon/prisma-merge","_rev":"1-c4077d716f9ee6e601d70ac2b5469dca","name":"@cyntheon/prisma-merge","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@cyntheon/prisma-merge","description":"Merge prisma schema files","version":"0.2.0","author":{"name":"Cyntheon"},"private":false,"bin":{"prisma-merge":"bin/run"},"bugs":{"url":"https://github.com/https://github.com/Cyntheon/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":"^18.15.10","ts-node":"^10.9.1","typescript":"^5.0.2"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/https://github.com/Cyntheon/prisma-merge","keywords":["prisma"],"license":"MIT","main":"lib/index.js","oclif":{"bin":"prisma-merge"},"repository":{"type":"git","url":"git+https://github.com/Cyntheon/prisma-merge.git"},"scripts":{"prepack":"npx rimraf lib && tsc -b && oclif-dev readme","test":"echo NO TESTS","version":"oclif-dev readme && git add README.md"},"types":"lib/index.d.ts","gitHead":"6522445921581160ad2ad664568986ca7e097574","_id":"@cyntheon/prisma-merge@0.2.0","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-gIC3qYVVlJy3pvSIMCo63tOkZYIxDbrLOQnFgiL0hklSrdf1EertFkz6jabB+TrIH1vi8RaHkQqKH/4jZFpuVw==","shasum":"2cb147ea6fc6c8a404f138de36e86f9304701631","tarball":"https://registry.npmjs.org/@cyntheon/prisma-merge/-/prisma-merge-0.2.0.tgz","fileCount":8,"unpackedSize":7497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8S6LlCLmh7dsJj5yI09sPLYEglKtkddwTSJB1xS55xAIhAKFCWNJvicoE22rCkWzqyha6rKdWWcbHyUtKfd6HOrG8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIdtkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojmQ/9GK/BDfQeFVwa8i8vgIt5XNNv+lZ8IGaSy6INTcVlZ1Qae+24\r\n/cDB/b4/l2dsNmOxob+OILTldfEwaobMd2Sn1lidVJZybPQvDB4LeFfGIVX3\r\nMmfYUV3R8pY5WzXTwJqQAnYl2LitwQrDDg1DHDPVsKoNghpeFnwfOB3VBaZ2\r\nCXBZAFXYInj6mxPwBKed6w6l9h0cDJXOgqn7wSCO8lYCDwZ2Bc0/fQ0vNY//\r\nicS2CtWO0brN3rOE/7HjTNDgLuawTZMRTP6QsZNewFcH0Az6Amc6vhiTzKeT\r\nv/mt4SKg169pQTKYGTsZOLZqH2H/02RMV7vY2YvYhvfsw9KgrmY2mrHieXAE\r\n4ySPggmkyL5CAPSoQAc0wY/Z0/UL8206qXP0cBZxR6hKyakA/lVGR+9V/7TF\r\nvVcHXwZNntk9gjNA5b23HIo8bHk4PAwoM7KiSnZUt06+DphmhkvgW8AUj8Vy\r\nk7pB+FxVJAQrTz2GCYWs3gLen4u1su04Wj1GqkMcKfj9bdBylHWeMOKdS53u\r\nzCbauoSkNDNYEt90gIPMh4RzDBHq9c+8wntu0gVSXnQJN9yABsW2413pzimP\r\nWjNnXNAFyIhS2XtdKhfS2U6yy0T2GG5PcQCburJ32bKd4OlVpOD6XUq8CVv7\r\nEgiC8Bx9hk7iH+r3nWMGVW5jSear6PJ2jJY=\r\n=j1PV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cyntheon","email":"cynthiachung03@gmail.com"},"directories":{},"maintainers":[{"name":"cyntheon","email":"cynthiachung03@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-merge_0.2.0_1679940452546_0.6886539360831372"},"_hasShrinkwrap":false},"0.2.1":{"name":"@cyntheon/prisma-merge","description":"Merge prisma schema files","version":"0.2.1","author":{"name":"Cyntheon"},"private":false,"bin":{"prisma-merge":"bin/run"},"bugs":{"url":"https://github.com/https://github.com/Cyntheon/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":"^18.15.10","ts-node":"^10.9.1","typescript":"^5.0.2"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/https://github.com/Cyntheon/prisma-merge","keywords":["prisma"],"license":"MIT","main":"lib/index.js","oclif":{"bin":"prisma-merge"},"repository":{"type":"git","url":"git+https://github.com/Cyntheon/prisma-merge.git"},"scripts":{"prepack":"npx rimraf lib && tsc -b && oclif-dev readme","test":"echo NO TESTS","version":"oclif-dev readme && git add README.md"},"types":"lib/index.d.ts","gitHead":"6522445921581160ad2ad664568986ca7e097574","_id":"@cyntheon/prisma-merge@0.2.1","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-OMgYQtSMxXw0AhsQ+jytlKOCmTMnfR18X4e10y9FEUO0vsiOPoCzv+G+cC2sSsUpBHUEyBbxIc+KuHQudmk2zQ==","shasum":"caab603e3e84b77d17f4338d7354bd8d23a3828c","tarball":"https://registry.npmjs.org/@cyntheon/prisma-merge/-/prisma-merge-0.2.1.tgz","fileCount":8,"unpackedSize":7497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7y+u2HaJy16/3VEQzOAXVqsP9qqGYrCKzgrnYHQpcCAiEA9zdokbqiYadE6KBHC9/SOPvJUbuT0fM2/sYutZYpygg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIdu8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsQw//UnkvKQk99tG15GDFMBBlD+/LyIvgQDAoGQCEpOtO1h9mJa3/\r\nuheI4Dojnn3Vt6l1Mk8XSjNbMDF/L4Dw6HFhG2YhS6e2gKb5yvUDYdZ2/mU3\r\nkriGw3SWaVszqAbOKR/KFEHNoHyhzmqm5t4trJ9kOmY4Ul39WmuSnZAKjk71\r\n2s83mqYTQWSTBD4336B/IjtUflFH4/BA8kI1H1InYofwo6WHqqj2MByeVlBi\r\n5kAppR+XG5/dEgBBThZ3uhFFC3BMGzfj9kdCTEv0SmlFhwTEbE82VUkoAGbD\r\narrUgbXJv3ZzC3yv+b5Ys6CtAww8OQc0KMVbY22xszUwMdE3KY5vePIAoNnY\r\n6/nbTrXMep3XMPPETSitV7L8jRD9HmTAszk82xCXE3eGRCT8BuuW2R2Jt6PH\r\nNVNbQke7qj/we55vyOESBKIwERuE0ay0YlZg7Vq2/s2jJeYhA+hLVMrzfYGb\r\nhnGZpp1FuyeX6JQHGaRHbuHyta+LRLUQCaQEg4TYWa+wJpVLC8CSpcB+l3+1\r\n0xDzXUUjWZYCj6Lttw0iTB+1kVUOnOQpeQDU+dPjZhFomCRATrb7qtKBdUp3\r\nwTtkHqEtVh/dSFTgzkdD2AH2+UGQ2w9E2+dFvKartPzzJLi8ysgkhA0AX71l\r\nCpJ4s6FgCVGZUh2mlbK4jnT1q/Ol1wMmGuw=\r\n=zFFE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cyntheon","email":"cynthiachung03@gmail.com"},"directories":{},"maintainers":[{"name":"cyntheon","email":"cynthiachung03@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-merge_0.2.1_1679940540196_0.33790654729421776"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-27T18:07:32.461Z","0.2.0":"2023-03-27T18:07:32.682Z","modified":"2023-03-27T18:09:00.491Z","0.2.1":"2023-03-27T18:09:00.372Z"},"maintainers":[{"name":"cyntheon","email":"cynthiachung03@gmail.com"}],"description":"Merge prisma schema files","homepage":"https://github.com/https://github.com/Cyntheon/prisma-merge","keywords":["prisma"],"repository":{"type":"git","url":"git+https://github.com/Cyntheon/prisma-merge.git"},"author":{"name":"Cyntheon"},"bugs":{"url":"https://github.com/https://github.com/Cyntheon/prisma-merge/issues"},"license":"MIT","readme":"prisma-merge\r\n============\r\n\r\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\r\n[![Version](https://img.shields.io/npm/v/prisma-merge.svg)](https://npmjs.org/package/prisma-merge)\r\n[![Downloads/week](https://img.shields.io/npm/dw/prisma-merge.svg)](https://npmjs.org/package/prisma-merge)\r\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)\r\n\r\nUntil prisma supports multiple schema definition files. See issue [#2377](https://github.com/prisma/prisma/issues/2377#issuecomment-735387818)\r\n \r\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`).\r\nIt will then output a merged version. \r\n\r\nWe make use of the fact, that all generated schema files in migrations or the generated \r\nclient are named `schema.prisma`. So as long as  we name our schema files something else and include `schema.prisma` in \r\nour excluded pattern (which is the default), we should be fine. You can also just copy the script and tailor it to your needs. \r\nThe base & output file are excluded anyways and dont need to be added to the `excludedFilePatterns`\r\n\r\n# Install\r\nWith yarn\r\n```shell script\r\n$ yarn add --dev prisma-merge\r\n```\r\nor npx\r\n```shell script\r\n$ npx prisma-merge\r\n```\r\n# Options\r\n ```\r\n  -b, --baseFile                    [default: src/prisma/base.prisma] Base file usually with datasource & generator statement\r\n  -s, --schemaFilePatterns          [default: src/**/*.prisma] Glob to all prisma files to include\r\n  -o, --outputFile                  [default: src/prisma/schema.prisma] Output file\r\n  -e, --excludedFilePattern         [default: src/**/schema.prisma] Glob pattern for excluded files (e.g schema.prisma in migrations / generated folder)\r\n  -h, --help                        show CLI help\r\n```\n","readmeFilename":"README.md"}