Repository navigation
Replace json-schema-to-typescript: not maintained and too many dependencies
#16963
thernstig
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
json-schema-to-typescriptis hardly maintained anymore, see https://github.com/bcherny/json-schema-to-typescript and the commit history.What is worse its dependencies look like this:
Notice hhow it uses e.g.
prettierwhich is in reality a dev tool, and lodash in 2026 is arguably bad. There should be better options.One is https://www.npmjs.com/package/json-schema-to-typescript-lite. There are others.
Replacing it would reduce payload's bundle size. I think Payload should take more care into looking into its dependencies to scale down to minimalisticc versions and remove some deps altogether.
All reactions