{"_id":"@elhanmah/prisma-to-zod","_rev":"9-1a11f3e7fceb0c484ea438713e2c150e","name":"@elhanmah/prisma-to-zod","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@elhanmah/prisma-to-zod","version":"0.0.1","keywords":["zod","prisma","generator"],"author":{"name":"Carter Grimmeisen"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.1","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/CarterGrimmeisen/@elhanmah/prisma-to-zod#readme","bugs":{"url":"https://github.com/CarterGrimmeisen/@elhanmah/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"6efdd27526fdf961c864698847a70db4baaa94dc","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.1.tgz","fileCount":10,"integrity":"sha512-oRQpCV2eMoaHCqfq0ZQBcXsuFzzD8DWtKrgcDpyM5RrV/23/2AXoCu8iyjMe9y9bl4T0e47zf/WyEToQjKyn0Q==","signatures":[{"sig":"MEUCIQDwoxg3wAEfx5CnTQLkwF6S5HjX/d/ad8nSBu6SWgDjkgIgfOxrMFvFnmqc7+mkBzxegJdGSeMRDiigo8XoJt36isc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93456},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"6c04f0dd6a0824d5b84f583bce679dcbf5628ae2","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"https://github.com/CarterGrimmeisen/@elhanmah/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1","decimal.js":"10.4.3"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.1_1726309026485_0.08219055059614533","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2":{"name":"@elhanmah/prisma-to-zod","version":"0.0.2","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.2","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"5833483b721f398775700ca29ffea128361c119f","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.2.tgz","fileCount":10,"integrity":"sha512-FOBE/W+hpwXPaTn5qTB9Lg0hMk40gw4B2YzgBN6Ihec047TS7scjklU8GeLpoBCyoBpz/t5UYa5bE/yU9JayoA==","signatures":[{"sig":"MEQCIBhkKXAKHSODwRduvs/Wk3tKVSQkfCChKqTkRGEbzgZhAiBirXrKr+7nsLiRGq5CJygCQkMXzeynUvtoQfVR9oVbaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92904},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"3a8e8b3a912bc8284483aaded0e4ed117384d808","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","start":"dts watch","format":"prettier --check .","prepare":"husky install","publish":"publish --access=public","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1","decimal.js":"10.4.3"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.2_1726310057131_0.9676213169440013","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.3":{"name":"@elhanmah/prisma-to-zod","version":"0.0.3","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.3","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"95053f830139cee40b4abc63ee467f9a1a001ee6","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.3.tgz","fileCount":10,"integrity":"sha512-sdsBR8zfX2bhwM0XE2QTZWnPnNCYZdfbWTfFLynNhjh1KgQP7YcQ6ysq+7xn1nipvju9um2taniGix9k1QEBww==","signatures":[{"sig":"MEUCIQCY11dG8qqPzsGFXPQ/ay9cRh7ECtnflBOqdNTjEDAVzQIgWQiUwqxG1CRUjjr+JQ5/01P3RunSfYumhVaHBdX5JpA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92864},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"3a8e8b3a912bc8284483aaded0e4ed117384d808","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1","decimal.js":"10.4.3"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.3_1726310128359_0.8444212672898739","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.4":{"name":"@elhanmah/prisma-to-zod","version":"0.0.4","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.4","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"3ef6e55a0366d75eed0a652386c99762e9e44665","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.4.tgz","fileCount":10,"integrity":"sha512-SwtXihXfdEOmpeT7yBU02N5ibCnJZs2qmb5D4d+6X8SduyEAZDURpq9wzHActmKjLigBd9TbVHhb6aAtielxJA==","signatures":[{"sig":"MEYCIQDGw713rDTt1qIh+PlWi9uHaBFaRYPQRaJzoMzfJM8iqAIhAMMPP5fm8mpaStaqh/CiMZrjM4QhdazroyfWmuYWbomJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92865},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"3a8e8b3a912bc8284483aaded0e4ed117384d808","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1","decimal.js":"10.4.3"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.4_1726310836083_0.18221237476698993","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.5":{"name":"@elhanmah/prisma-to-zod","version":"0.0.5","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.5","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"182296e3dfde1cb02e02b9fd3f014033bfd94ac6","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.5.tgz","fileCount":10,"integrity":"sha512-CKwafQJ9yyJQAeCjcBpx5w4xG9+kqa4nk3JSNmu6eAvXC01OV+U/9dJIM12/zf6EuCV5t7g0LFB7ZXT5Un/Xlw==","signatures":[{"sig":"MEQCIHPY43gI9lIX8LbvYaXJ0/KIXropF/dXzTEGxDsJhtyIAiBRfaPFeCaBJDjDcbPEqVWI9lklpW+95z8uMyEbHh84SA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92865},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"06029d5467e66a34118c1f83ecafce59f4f91010","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1","decimal.js":"10.4.3"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.5_1726311097393_0.8020856608814289","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.6":{"name":"@elhanmah/prisma-to-zod","version":"0.0.6","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.6","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"85a8b4e72c5941280820ce39ec48b35acdee03ba","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.6.tgz","fileCount":10,"integrity":"sha512-pfCkqvBDLoXjOeZInUthHwIbmHumlRDjgwg5WZHeP9wgI5Yn6HC7tzk0k6KAj/4n0hhKbsUXMcLQZ7Qx2ODcPg==","signatures":[{"sig":"MEQCIC3WAT6EbbuwV2wAXxlC9AF08t979zrreWx8LJejtGVVAiAeA74TXs9AWmtCFZILuon0EVXM18BkgESEq9uA3ItgeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92971},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"2ca06a0c03671caa13b6bd9a77218f13164f7b12","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","panic":"sh ./scripts/panic.sh","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit","postinstall":"node ./scripts/generate-prisma-schemas.js"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@elhanmah/prisma-to-zod":"latest","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.6_1726315648583_0.7527929770921704","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.7":{"name":"@elhanmah/prisma-to-zod","version":"0.0.7","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.0.7","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"16a3bb8f45f3123beccb67e996a0458ab4c4bdbd","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.0.7.tgz","fileCount":10,"integrity":"sha512-HMHDbUCpIHqQxFBy2dzhkp+aq4EZnIL9Bz4n3a6JTIuD/m7nYZYJcdiaLQ67ou2+eYE67x2xBz/QkodvDh46ig==","signatures":[{"sig":"MEUCIQCWTEeO+NhWaI0zk4Rrk8QcZZSyhVh7QZJlWgWwTZHGeQIgQsl0uALP2HWeYrTEroBTlL1U/cf5L5KmG78Eg4udOYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97524},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"592473aef6a7163ec6c4a53567ac2c9715adea2c","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","panic":"sh ./scripts/panic.sh","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit","postinstall":"node ./scripts/generate-prisma-schemas.js","reset-tests":"sh ./scripts/copy_files.sh"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@elhanmah/prisma-to-zod":"latest","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.0.7_1726333062092_0.20582520567027318","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.0":{"name":"@elhanmah/prisma-to-zod","version":"0.1.0","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.1.0","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"13ec7162712463b88a3762dc996ecda79ed3bfff","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.1.0.tgz","fileCount":10,"integrity":"sha512-TFSNABNUd0Hlt1XDqGy65VzINFSVAS2z0VaHYgStdhPgxPFAqAGg9IKkD+3SCJM014SpbPg6Pi/9rp95EusHGg==","signatures":[{"sig":"MEQCID/9UIFWcRRH3CV1BzBC/T7Nd+wIYh0W5Jc9/sIhLcadAiB8TymqPbGUPrdWNZkPBQj6AJ4G/XPNwLS96xP23S1RVg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99357},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"fd20a1f2209a89bb51919fa3ee8fdb28c0c6351f","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","panic":"sh ./scripts/panic.sh","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit","postinstall":"sh ./scripts/generate-prisma.sh","reset-tests":"sh ./scripts/copy_files.sh"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.53.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"2.0.4","@tsconfig/recommended":"1.0.1","@elhanmah/prisma-to-zod":"latest","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.1.0_1726412755897_0.941662031682087","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.1":{"name":"@elhanmah/prisma-to-zod","version":"0.1.1","keywords":["zod","prisma","generator"],"author":{"name":"Elhan Mahmutovic"},"license":"MIT","_id":"@elhanmah/prisma-to-zod@0.1.1","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"homepage":"https://github.com/ElhanM/prisma-to-zod#readme","bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"bin":{"prisma-to-zod":"bin/cli.js"},"dist":{"shasum":"f5fba4dc273792b3e1597bbbd102b865d436286f","tarball":"https://registry.npmjs.org/@elhanmah/prisma-to-zod/-/prisma-to-zod-0.1.1.tgz","fileCount":10,"integrity":"sha512-vz+wWdw305EAzlYEnliEtRR76ng0/QbFMvWQBB0CPTU3kLJCl+4qdCK2mnRZF44tTFwC97dTs3aexdCrMemc4g==","signatures":[{"sig":"MEUCIF+7K8eZiGXH9KNMksv4sjcE0GxyTaiqgAIVptsfo1eQAiEAnuH/3vzafdYQUENah7m68IJtYBg+2k8Dv3+oZ6C4Bwk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100340},"jest":{"testEnvironment":"node"},"main":"dist/index.js","module":"dist/prisma-to-zod.esm.js","engines":{"node":">=20"},"gitHead":"0590855072570d4afbb5c54ac3c3bbd26c4f42b8","scripts":{"lint":"eslint . --max-warnings 0","test":"dts test --maxWorkers=4 --verbose","build":"dts build --target node --format cjs --rollupTypes","panic":"sh ./scripts/panic.sh","start":"dts watch","format":"prettier --check .","prepare":"husky install","format:fix":"prettier --write .","prepublish":"dts build --target node --format cjs --rollupTypes","type-check":"tsc --noEmit","postinstall":"sh ./scripts/generate-prisma.sh","reset-tests":"sh ./scripts/copy_files.sh"},"typings":"dist/index.d.ts","_npmUser":{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"},"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prisma generator that creates Zod schemas for all of your models","directories":{},"_nodeVersion":"20.11.0","dependencies":{"prettier":"3.1.1","ts-morph":"13.0.2","parenthesis":"3.1.8","@prisma/internals":"5.19.1","@prisma/generator-helper":"5.19.1"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","execa":"5.1.0","husky":"7.0.4","tslib":"2.3.1","eslint":"8.57.0","prisma":"5.19.1","dts-cli":"1.1.5","globals":"15.9.0","fs-extra":"10.0.0","fast-glob":"3.2.5","typescript":"5.4.5","@prisma/client":"5.19.1","@types/fs-extra":"9.0.13","jest-mock-extended":"3.0.7","@tsconfig/recommended":"1.0.1","@elhanmah/prisma-to-zod":"latest","@typescript-eslint/parser":"7.3.1","@typescript-eslint/eslint-plugin":"7.1.1"},"peerDependencies":{"zod":"3.23.8","prisma":"5.19.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-to-zod_0.1.1_1726526883535_0.3698201258244549","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2024-09-14T10:17:06.402Z","modified":"2024-09-17T14:52:00.131Z","0.0.1":"2024-09-14T10:17:06.675Z","0.0.2":"2024-09-14T10:34:17.331Z","0.0.3":"2024-09-14T10:35:28.554Z","0.0.4":"2024-09-14T10:47:16.294Z","0.0.5":"2024-09-14T10:51:37.563Z","0.0.6":"2024-09-14T12:07:28.831Z","0.0.7":"2024-09-14T16:57:42.243Z","0.1.0":"2024-09-15T15:05:56.119Z","0.1.1":"2024-09-16T22:48:03.785Z"},"bugs":{"url":"https://github.com/ElhanM/prisma-to-zod/issues"},"author":{"name":"Elhan Mahmutovic"},"license":"MIT","homepage":"https://github.com/ElhanM/prisma-to-zod#readme","keywords":["zod","prisma","generator"],"repository":{"url":"git+https://github.com/ElhanM/prisma-to-zod.git","type":"git"},"description":"A Prisma generator that creates Zod schemas for all of your models","maintainers":[{"name":"elhanm","email":"elhan.mahmutovic03@gmail.com"}],"readme":"<!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n***\n***\n***\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** Elhan Mahmutovic, @elhanmah/prisma-to-zod, prisma-to-zod, twitter_handle, elhan.mahmutovic03@gmail.com, prisma-to-zod, A custom Prisma generator that creates Zod schemas from your Prisma model.\n-->\n\n<!-- PROJECT SHIELDS -->\n<!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n-->\n\n[![NPM][npm-shield]][npm-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n<!-- PROJECT LOGO -->\n<br />\n<p align=\"center\">\n  <a href=\"https://github.com/elhanm/prisma-to-zod\">\n    <img src=\"https://raw.githubusercontent.com/elhanm/prisma-to-zod/main/images/prisma-to-zod.svg\" alt=\"Logo\" width=\"120\" height=\"120\">\n  </a>\n  <h3 align=\"center\">prisma-to-zod</h3>\n  <p align=\"center\">\n    A custom Prisma generator that creates Zod schemas from your Prisma model.\n    <br />\n    <a href=\"https://github.com/elhanm/prisma-to-zod\"><strong>Explore the docs »</strong></a>\n    <br />\n    <br />\n    <a href=\"https://github.com/elhanm/prisma-to-zod/blob/main/src/test/functional\">View Demo</a>\n    ·\n    <a href=\"https://github.com/elhanm/prisma-to-zod/issues\">Report Bug</a>\n    ·\n    <a href=\"https://github.com/elhanm/prisma-to-zod/issues\">Request Feature</a>\n  </p>\n</p>\n\n<!-- TABLE OF CONTENTS -->\n<details open=\"open\">\n  <summary><h2 style=\"display: inline-block\">Table of Contents</h2></summary>\n  <ol>\n\t\t<li>\n\t\t\t<a href=\"#reasoning-for-the-fork\">Reasoning for the Fork</a>\n\t\t</li>\n    <li>\n      <a href=\"#about-the-project\">About The Project</a>\n      <ul>\n        <li><a href=\"#built-with\">Built With</a></li>\n      </ul>\n    </li>\n    <li>\n      <a href=\"#getting-started\">Getting Started</a>\n      <ul>\n        <li><a href=\"#prerequisites\">Prerequisites</a></li>\n        <li><a href=\"#installation\">Installation</a></li>\n      </ul>\n    </li>\n    <li><a href=\"#usage\">Usage</a>\n      <ul>\n      <li><a href=\"#jsdoc-generation\">JSDoc Generation</a></li>\n      <li><a href=\"#extending-zod-fields\">Extending Zod Fields</a></li>\n      <li>\n        <a href=\"#importing-helpers\">Importing Helpers</a>\n        <ul>\n        <li><a href=\"#custom-zod-schema\">Custom Zod Schemas</a></li>\n        </ul>\n      </li>\n      <li><a href=\"#json-fields\">JSON Fields</a></li>\n      </ul>\n    </li>\n    <li><a href=\"#examples\">Examples</a></li>\n    <li><a href=\"#roadmap\">Roadmap</a></li>\n    <li><a href=\"#contributing\">Contributing</a></li>\n    <li><a href=\"#license\">License</a></li>\n    <li><a href=\"#contact\">Contact</a></li>\n  </ol>\n</details>\n\n<!-- ABOUT THE PROJECT -->\n\n## Reasoning for the Fork\n\nThere are other libraries out there made to generate Zod schemas from Prisma models, but the reason I like this more than some alternatives is because of its simplicity and ease of use. I plan to keep this library that way and will be skeptical of adding any features that might significantly increase the complexity of the library.\n\nThe original zod-prisma library is no longer maintained. When I tried to use it, I ran into a bug that made the library unusable. More on that [here](https://github.com/CarterGrimmeisen/zod-prisma/issues/168).\n\nI tried contacting the original author, but he was unresponsive, so there was no way for me to get the bug fixed. I decided to fork the project, fix the bug, publish it as a new library, and maintain it myself. I also plan to add some new features that I think would be useful.\n\nFirst of all, I added better ESLint, Prettier, and TypeScript configurations/checks to the project. I also plan to bump up all of the dependencies to their latest versions so that the library is up to date, and consider switching some of the dependencies to more modern alternatives.\n\nI also plan on keeping this library compatible with the latest versions of Prisma (currently v5.19.1) and Zod (currently v3.23.8).\n\n## About The Project\n\nI got tired of having to manually create Zod schemas for my Prisma models and of\nupdating them everytime I made schema changes. This provides a way to automatically generate them from your Prisma schema.\n\n<!-- [![Product Name Screen Shot][product-screenshot]](https://example.com) -->\n\n### Built With\n\n- [dts-cli](https://github.com/weiran-zsd/dts-cli)\n- [Zod](https://github.com/colinhacks/zod)\n- [Based on this gist](https://gist.github.com/deckchairlabs/8a11c33311c01273deec7e739417dbc9)\n\n<!-- GETTING STARTED -->\n\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\nThis project utilizes yarn and if you plan on contributing, you should use it as well.\n\n```sh\nnpm install -g yarn\n```\n\n### Installation\n\n0.  **Ensure your tsconfig.json enables the compiler's strict mode.** **Zod\n    requires it and so do we, you will experience TS errors without strict mode\n    enabled**\n\n1.  Add @elhanmah/prisma-to-zod as a dev dependency\n\n    ```sh\n    yarn add -D @elhanmah/prisma-to-zod\n    ```\n\n2.  Add the prisma-to-zod generator to your schema.prisma\n\n    ```prisma\n    generator zod {\n      provider                 = \"prisma-to-zod\"\n      output                   = \"./zod\" // (default) the directory where generated zod schemas will be saved\n\n      relationModel            = true // (default) Create and export both plain and related models.\n      // relationModel         = \"default\" // Do not export model without relations.\n      // relationModel         = false // Do not generate related model\n\n      modelCase                = \"PascalCase\" // (default) Output models using pascal case (ex. UserModel, PostModel)\n      // modelCase             = \"camelCase\" // Output models using camel case (ex. userModel, postModel)\n\n      modelSuffix              = \"Model\" // (default) Suffix to apply to your prisma models when naming Zod schemas\n\n      imports                  = null // (default) will import the referenced file in generated schemas to be used via imports.someExportedVariable\n\n      // https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values\n      prismaJsonNullability    = true // (default) uses prisma's scheme for JSON field nullability\n      // prismaJsonNullability = false // allows null assignment to optional JSON fields\n\n      prisma                   = \"@prisma/client\" // Path to prisma client, defaults to '@prisma/client'\n\n      optionalRelations        = true // (default) all relations generated on the relation schema will be optional\n    }\n    ```\n\n3.  Run `npx prisma generate` or `yarn prisma generate` to generate your zod\n    schemas\n4.  Import the generated schemas from your selected output location\n\n<!-- USAGE EXAMPLES -->\n\n## Usage\n\n### JSDoc Generation\n\n[Rich-comments](https://www.prisma.io/docs/concepts/components/prisma-schema#comments)\nin the Prisma schema will be transformed into JSDoc for the associated fields:\n\n> _Note: make sure to use a triple-slash. Double-slash comments won't be\n> processed._\n\n```prisma\nmodel Post {\n  /// The unique identifier for the post\n  /// @default {Generated by database}\n  id String @id @default(uuid())\n\n  /// A brief title that describes the contents of the post\n  title String\n\n  /// The actual contents of the post.\n  contents String\n}\n```\n\nGenerated code:\n\n```ts\nexport const PostModel = z.object({\n  /**\n   * The unique identifier for the post\n   * @default {Generated by database}\n   */\n  id: z.string().uuid(),\n  /**\n   * A brief title that describes the contents of the post\n   */\n  title: z.string(),\n  /**\n   * The actual contents of the post.\n   */\n  contents: z.string(),\n})\n```\n\n### Extending Zod Fields\n\nYou can also use the `@zod` keyword in rich-comments in the Prisma schema to\nextend your Zod schema fields:\n\n```prisma\nmodel Post {\n  id String @id @default(uuid()) /// @zod.uuid()\n\n  /// @zod.max(255, { message: \"The title must be shorter than 256 characters\" })\n  title String\n\n  contents String /// @zod.max(10240)\n}\n```\n\nGenerated code:\n\n```ts\nexport const PostModel = z.object({\n  id: z.string().uuid(),\n  title: z.string().max(255, { message: 'The title must be shorter than 256 characters' }),\n  contents: z.string().max(10240),\n})\n```\n\n### Importing Helpers\n\nSometimes it is useful to define a custom Zod preprocessor or transformer for your\ndata. @elhanmah/prisma-to-zod enables you to reuse these by importing them via a config\noptions. For example:\n\n```prisma\ngenerator zod {\n  provider      = \"prisma-to-zod\"\n  output        = \"./zod\"\n  imports \t\t  = \"../src/zod-schemas\"\n}\n\nmodel User {\n  username\tString /// @zod.refine(imports.isValidUsername)\n}\n```\n\nThe referenced file can then be used by simply referring to exported members via\n`imports.whateverExport`. The generated zod schema files will now include a\nnamespaced import like the following.\n\n```typescript\nimport * as imports from '../../src/zod-schemas'\n```\n\n#### Custom Zod Schema\n\nIn conjunction with this import option, you may want to utilize an entirely\ncustom zod schema for a field. This can be accomplished by using the special\ncomment directive `@zod.custom()`. By specifying the custom schema within the\nparentheses you can replace the autogenerated type that would normally be\nassigned to the field.\n\n> For instance if you wanted to use `z.preprocess`\n\n### JSON Fields\n\nJSON fields in Prisma disallow null values. This is to disambiguate between\nsetting a field's value to NULL in the database and having a value of null\nstored in the JSON. In accordance with this @elhanmah/prisma-to-zod will default to\ndisallowing null values, even if your JSON field is optional.\n\nIf you would like to revert this behavior and allow null assignment to JSON\nfields, you can set `prismaJsonNullability` to `false` in the generator options.\n\n## Examples\n\n<!-- Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources. -->\n\n_For examples, please refer to the\n[Examples Directory](https://github.com/elhanm/prisma-to-zod/blob/main/examples)\nor the\n[Functional Tests](https://github.com/elhanm/prisma-to-zod/blob/main/src/test/functional)_\n\n<!-- ROADMAP -->\n\n## Roadmap\n\nSee the [open issues](https://github.com/elhanm/prisma-to-zod/issues) for\na list of proposed features (and known issues).\n\n<!-- CONTRIBUTING -->\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to\nbe learn, inspire, and create. Any contributions you make are **greatly\nappreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n<!-- LICENSE -->\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n<!-- CONTACT -->\n\n## Contact\n\nElhan Mahmutovic - elhan.mahmutovic03@gmail.com\n\nProject Link:\n[https://github.com/elhanm/prisma-to-zod](https://github.com/elhanm/prisma-to-zod)\n\n<!-- MARKDOWN LINKS & IMAGES -->\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\n\n[npm-shield]: https://img.shields.io/npm/v/@elhanmah/prisma-to-zod?style=for-the-badge\n[npm-url]: https://www.npmjs.com/package/@elhanmah/prisma-to-zod\n[contributors-shield]: https://img.shields.io/github/contributors/elhanm/prisma-to-zod.svg?style=for-the-badge\n[contributors-url]: https://github.com/elhanm/prisma-to-zod/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/elhanm/prisma-to-zod.svg?style=for-the-badge\n[forks-url]: https://github.com/elhanm/prisma-to-zod/network/members\n[stars-shield]: https://img.shields.io/github/stars/elhanm/prisma-to-zod.svg?style=for-the-badge\n[stars-url]: https://github.com/elhanm/prisma-to-zod/stargazers\n[issues-shield]: https://img.shields.io/github/issues/elhanm/prisma-to-zod.svg?style=for-the-badge\n[issues-url]: https://github.com/elhanm/prisma-to-zod/issues\n[license-shield]: https://img.shields.io/github/license/elhanm/prisma-to-zod.svg?style=for-the-badge\n[license-url]: https://github.com/elhanm/prisma-to-zod/blob/main/LICENSE\n","readmeFilename":"README.md"}