fix: always add a newline at the end of the file when generating js-binding.js

This commit is contained in:
yisibl 2021-11-16 13:10:03 +08:00
parent 0e0bfb1c0a
commit 753bb1e31b

View file

@ -345,7 +345,7 @@ async function writeJsBinding(
}, '') }, '')
await writeFileAsync( await writeFileAsync(
distFileName, distFileName,
template + declareCodes + exportsCode, template + declareCodes + exportsCode + '\n',
'utf8', 'utf8',
) )
} }