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

Allow silencing ENOENT #70

Open
dstoyanoff opened this issue May 24, 2023 · 2 comments
Open

Allow silencing ENOENT #70

dstoyanoff opened this issue May 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@dstoyanoff
Copy link
Contributor

dstoyanoff commented May 24, 2023

use case: I have a library that contains mixins, but does not contain models or enums.

When passing it in the additionalPaths array, I would get errors for models and enums folders missing. The generation still works as expected, but there is just noise in the console.

Btw, have you considered using direct imports instead of specifying folder paths? Would allow more flexibility to the developers. I would imagine in similar to how you import graphql resolvers in the schema generation file.

@ridafkih
Copy link
Owner

@dstoyanoff Thanks, I've noticed this too. Should be easy enough to address!

As far as direct imports, it's definitely something which I think could be useful to support! I'll make a new issue.

@ridafkih
Copy link
Owner

The expected behaviour should be that if the folder is absent, nothing happens. I'll consider the fact that it complains in the console a bug. An empty folder should be synonymous with a non-existent one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants