omar-dulaimi / prisma-zod-generator

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

Re-exports for all schemas #52

Closed mubaidr closed 1 year ago

mubaidr commented 1 year ago

Problem

Currently, each schema has to be imported from its own file. Which is inconvenience.

Suggested solution

Add re-sports for each directory. This will make it easy to import schema from only one import.

Alternatives

A similar option also exists in prisma-nestjs-graphql re-exports

Additional context

Thanks for maintaining such an awesome project.

omar-dulaimi commented 1 year ago

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