omar-dulaimi / prisma-zod-generator

Prisma 2+ generator to emit Zod schemas from your Prisma schema
MIT License
535 stars 45 forks source link

How do I custom import path for prisma client ? #7

Closed omar-dulaimi closed 2 years ago

omar-dulaimi commented 2 years ago

Discussed in https://github.com/omar-dulaimi/prisma-zod-generator/discussions/6

Originally posted by **kittipojsr** July 20, 2022 By default prisma-trpc-generator use `import type { Prisma } from '@prisma/client';` for prisma client. But I need to use custom path from [prisma client](https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/generating-prisma-client#the-location-of-prisma-client) generator schema output.
omar-dulaimi commented 2 years ago

Released in https://github.com/omar-dulaimi/prisma-zod-generator/releases/tag/0.4.0