From 753bb1e31b375bb546523d372bcc0a079bae3ed5 Mon Sep 17 00:00:00 2001 From: yisibl Date: Tue, 16 Nov 2021 13:10:03 +0800 Subject: [PATCH] fix: always add a newline at the end of the file when generating js-binding.js --- cli/src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 8a79f239..151dfe6a 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -345,7 +345,7 @@ async function writeJsBinding( }, '') await writeFileAsync( distFileName, - template + declareCodes + exportsCode, + template + declareCodes + exportsCode + '\n', 'utf8', ) }