-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat export all schemas in index #54
Conversation
@omar-dulaimi Could you review and tell me if I need to change something? |
Hey @Feelixe-tin Yes of course, I will. In the meantime just make sure to test your changes inside a working project like Nextjs or something else, so we could eliminate any possible circular references. |
I have tested in my nuxt3 project it and works well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Feelixe-tin
I left you some points
src/utils/indexFile.ts
Outdated
@@ -0,0 +1,22 @@ | |||
import path from 'path'; | |||
import normalizePath from 'normalize-path'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to add a new dependency(normalizePath
)? Can we do without it using native Nodejs?
Thank you, I will look into it. |
Yeah, of course. Just as long as you don't face any circular references issues when you import it in your project |
Released in https://github.com/omar-dulaimi/prisma-zod-generator/releases/tag/0.8.6 Thanks @Feelixe-tin |
Description
This generates an index file in
./generated/schemas
that exports all schemasReferences
Closes #52
Closes #37