Skip to content
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

Wishes / Ideas #17

Open
weihsth opened this issue Nov 11, 2021 · 6 comments
Open

Wishes / Ideas #17

weihsth opened this issue Nov 11, 2021 · 6 comments

Comments

@weihsth
Copy link

weihsth commented Nov 11, 2021

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!

@benkroeger
Copy link
Member

I believe your SECOND request is what the reExport option is there for.

For the FIRST: PR welcome

@weihsth
Copy link
Author

weihsth commented Nov 11, 2021

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 =)

@bmxpiku
Copy link

bmxpiku commented Jan 25, 2022

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

@benkroeger
Copy link
Member

re formatting see #92

@hengnee
Copy link

hengnee commented Apr 20, 2022

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

@Manugr21
Copy link

I wish for more examples of the usage of annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants