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

supports overwriting model output folder #135

Closed
wants to merge 1 commit into from

Conversation

k4ttitude
Copy link

Since API endpoints & module names are often in plural form, NestJS also follow that convention; I came up with this solution to overwrite the output folder for some particular models.

@DtoFolder <folder>

TODO: Regex for valid folder name needs some improvements.

@benkroeger
Copy link
Member

is this related to #21 and #22 ?

@k4ttitude
Copy link
Author

is this related to #21 and #22 ?

@benkroeger yes. This config will put User's entities and dto into src/users

generator nestjsDto {
  provider                        = "prisma-generator-nestjs-dto"
  output                          = "../src"
  outputToNestJsResourceStructure = true
}

@DtoFolder users
model User { }

@sebthom
Copy link
Member

sebthom commented Jun 20, 2022

Dear Minh Hiếu Phạm, thanks a lot for your interest in this project and your PR. We however stopped using this package ourselves and thus decided to suspend development until a new maintainer is found.

@sebthom sebthom closed this Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants