From 352cdc01421f9fafcd2c586a4f6f814de80122b0 Mon Sep 17 00:00:00 2001 From: yangsy Date: Mon, 2 Mar 2026 15:02:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8manifest.json=E6=9C=AB=E5=B0=BE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 确保生成的JSON文件以换行符结尾,符合POSIX文本文件标准,便于工具处理和版本控制。 --- build/pre-build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pre-build.ts b/build/pre-build.ts index bef9507..2b89b33 100644 --- a/build/pre-build.ts +++ b/build/pre-build.ts @@ -11,7 +11,7 @@ const versionInfo = { }; try { - await writeFile('./public/manifest.json', JSON.stringify(versionInfo, null, 2)); + await writeFile('./public/manifest.json', `${JSON.stringify(versionInfo, null, 2)}\n`); } catch (error) { console.error('写入manifest失败:', error); }