From: Haoqun Jiang Date: Tue, 27 Jul 2021 05:42:05 +0000 (+0800) Subject: chore: add final newline to output package.json file X-Git-Tag: v3.0.0-alpha.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab386a39cfeeadb6a5ea860c694c83ae97f0b0a7;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: add final newline to output package.json file --- diff --git a/utils/renderTemplate.js b/utils/renderTemplate.js index 8a64df77..4ac98797 100644 --- a/utils/renderTemplate.js +++ b/utils/renderTemplate.js @@ -32,7 +32,7 @@ function renderTemplate(src, dest) { JSON.parse(fs.readFileSync(dest)), JSON.parse(fs.readFileSync(src)) ) - fs.writeFileSync(dest, JSON.stringify(pkg, null, 2)) + fs.writeFileSync(dest, JSON.stringify(pkg, null, 2) + '\n') return }