wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

Add option to enasure newline at the end of any generated file

Open pront opened this issue 2 years ago • 0 comments

💡 Feature description

Either add an option (e.g. a new cli argument) or change the default behavior of the tool to ensure a newline is added at the end of each generated file. This would be very helpful since many linting tools might report a missing newline at EOF as an error.

A common case where this is needed is described here: https://github.com/rustwasm/wasm-pack/issues/1161.

💻 Basic example

From:

*

To:

*
<-- newline added here

pront avatar Jul 05 '23 17:07 pront