Merge pull request #859 from napi-rs/fix-newline
fix: always add a newline at the end of the file when generating js-binding.js
This commit is contained in:
commit
41037ec193
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ async function writeJsBinding(
|
|||
}, '')
|
||||
await writeFileAsync(
|
||||
distFileName,
|
||||
template + declareCodes + exportsCode,
|
||||
template + declareCodes + exportsCode + '\n',
|
||||
'utf8',
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue