Make newlines consistent across different OS #224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently we had a security alert which dependabot created an automatic PR to fix for us. However this PR doesn't run
npm run build
which leads to a CI failure as thedist/index.js
file isn't up to date. We tried running this locally and pushing the results but this still fails, even though it appears that the files are the same.It appears that the issue is to do with line encoding differences between the various OSs being used locally and in GitHub actions runners.
This PR forces
lf
newlines usingtsc --newLine lf
which seems to work.