]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: add final newline to output package.json file
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 27 Jul 2021 05:42:05 +0000 (13:42 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 27 Jul 2021 05:42:05 +0000 (13:42 +0800)
utils/renderTemplate.js

index 8a64df77d93f41f67787c3538d0a4217b8565006..4ac98797fe2c413796e7f54968758dae8ce41729 100644 (file)
@@ -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
   }