prisma-generator-nestjs-dto
prisma-generator-nestjs-dto copied to clipboard
Wishes / Ideas
Good Morning,
I have two ideas for extension:
FIRST: Maybe I just did not see it, but how can I set the import path of prisma client? I use a different path of prisma client and need to set this as option to nestjsDto generator.
have:
import {Enum_UserSalutation} from '@prisma/client
want:
import {Enum_UserSalutation} from '@db'
SECOND: Would be nice to have an generated index.ts file with all exports, like:
export { default as A } from "./a";
export { default as B } from "./b";
[...]
Have a great day!
I believe your SECOND request is what the reExport
option is there for.
For the FIRST: PR welcome
Ohh sorry, you're right.. should have searched for "index"... I'll try my best to get the import path of prisma client done an do a PR =)
Coming up with Wishes/Ideas I taught I will chip in, what would you think about adding formatting command to config @benkroeger ?
So that after generating files it would automatically align them to project code-style because right now I'd have to go trigger something like
npm run format
after each regeneration of DTOs
re formatting see #92
Would wish to see the following feature(s) but please do at a pace that maintainers are comfortable in:
- Automatic Swagger inclusion in generated Classes
I wish for more examples of the usage of annotations.