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

Enhancement: Warn when SchemaFromExport finds a matching file, but doesn't export the schema in the right way. #83

Open
koenpunt opened this Issue Apr 9, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@koenpunt
Copy link

koenpunt commented Apr 9, 2019

When trying to use a .ts file for loading the schema I found it was very difficult to see why it was not working.

Initially this was because I didn't add ts-node to the require array. But the error just showed me that the glob wasn't matching any files, which was confusing.
Before knowing I needed the require, I tried changing the file to export a function, instead of the schema directly.
When I then did add the require of ts-node, it still showed me the same "glob not matching" error.

I think it would help to show a warning or error when a file is found that doesn't export the schema in the right way.

@koenpunt koenpunt changed the title Enhancement: Warn when SchemaFromExport finds a matching file, but doesn't export the right things Enhancement: Warn when SchemaFromExport finds a matching file, but doesn't export the schema in the right way. Apr 9, 2019

@ardatan ardatan added the enhancement label Apr 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.