graphql-code-generator
graphql-code-generator copied to clipboard
CODEGEN-793 - Treat line endings same when using --check flag
Description
We want seamless experience for users of all OS. --check flag currently doesn't work for Windows users when something saves the generated file.
This PR treats line endings the same by converting them both back to Linux style when comparing for hash values.
Related https://github.com/dotansimha/graphql-code-generator/issues/10309
Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [ ] Unit test