Skip to content

Conversation

@fforres
Copy link

@fforres fforres commented Apr 25, 2021

Whenever we run apollo type-generation, it writes every file that it finds regardless of the content of it.
In our case, we have project with over 1200 generated files, so running type-generation causes a few issues with type-checkers, or whenever we change a branch.

PR fixes part of the issues by doing a naive content-check before writing the files. Maybe this can be changed eventually to a content-hashing approach, but felt a bit out of scope for my fix.

@fforres fforres marked this pull request as ready for review April 25, 2021 19:27
@fforres fforres changed the title adding content check to file-writing function to avoid unnecessary writes Adding content check to file-writing function to avoid unnecessary writes Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant