flow-mono-cli
flow-mono-cli copied to clipboard
`align-types` removes end-of-file newline
trafficstars
First off: thanks for your work on this tool! It's been helpful. Second off, I came across a little issue:
Some people and tools find it important that files always end with a newline character. After running flow-mono align-types, I've found that it removes the trailing newline from all of my package.jsons.
I think that flow-mono should either:
- Always include a trailing newline (or
os.EOLmaybe?) when writing.jsonfiles - Attempt to preserve existing end-of-file newline somehow
If (1) is acceptable, perhaps leaning on a existing package.json writing solution like write-pkg might be easier than maintaining a bespoke one.