Typescript: Do not strip end of file newlines in emit

Created on 27 May 2015  ·  3Comments  ·  Source: microsoft/TypeScript

When using tsc, every file output does not have a newline at the end of the file. Is this intended? If so, it would be nice to have a flag to change this behavior.

Suggestion help wanted

All 3 comments

To what end? Can you not put newlines at the end of your source files if there's some need for this in your toolchain? Or are you saying your EOF newlines are getting removed?

The original typescript files are formatted with newlines before EOF, and the output es5 files are not.

Happy to take a PR that patches this up

Was this page helpful?
0 / 5 - 0 ratings