-
Notifications
You must be signed in to change notification settings - Fork 77
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
Generate (export) all object (classes) types into one file #6
Comments
Set the |
Yes, that’s true, but I need just one big file with all exports. |
What version do you use? |
In 7.1 and newer versions is an option to reExportAll = true; which results in following folder structure: OurEntity
But if we integrate your solution with monorepo (Nx.Dev) there is a default setting which forbids cyclic dependency between files. So OurEntity.model cannot have a field from our Other entity if there is a backward reference. We can turn that setting off for now, but it would be great if you can generate all classes into single index.ts, that will resolve the issue with this cycle dependency constraint. |
So, let's clarify:
You want only |
Exactly, one @generated/index.ts file with all classes. |
🎉 This issue has been resolved in version 10.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@unlight I'm not sure if the latest release closes this issue. As i understand this would generate a single file with all the classes like prisma does in their client. But the |
I misunderstood it. |
At this time, I have all object types divided to folders by entity and I would need to have one big file with all of these exports.
Thanks in advance.
The text was updated successfully, but these errors were encountered: