-
Notifications
You must be signed in to change notification settings - Fork 736
Add pre-build step to auto-generate Typescript schema from JSON schema #1594
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
Comments
Hey I noticed this while looking into fixing this whole mess (for lack of a concise description). Personally, I'm using the types that have been published to While I've had a glance around, I can't tell if this is a viable option for you guys, but here's the patch file I'm using:
Otherwise, you can use The downside w/ this is that it's a complete override - I'm going to raise an issue on Hope that helps! The following schema should result in a compilable definition:
|
Thanks @G-Rath! |
No problem @sarvaje! I made a PR for the updated schema to
|
Uh oh!
There was an error while loading. Please reload this page.
This issue references the generation of a TS schema from schemastore's json schema while implementing the parckage.json parser
Currently the auto-generated TS schema has to be hand-edited due to this issue: scripts prop on generated schema for package.json needs to be fixed. Ideally, when the issue is resolved, we want to auto-generate the TS schema in a pre-build step from the JSON schema.
More info on the discussion originally posted by @antross in #1592 (comment)
The text was updated successfully, but these errors were encountered: