From 2e7e890837c0290cafce6a85d204a97681f98e02 Mon Sep 17 00:00:00 2001 From: Ben Briggs Date: Thu, 23 Jun 2016 18:26:49 +0100 Subject: [PATCH] Add empty last line to the contributors file. --- lib/util/config-file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/config-file.js b/lib/util/config-file.js index 8879866..cc34350 100644 --- a/lib/util/config-file.js +++ b/lib/util/config-file.js @@ -8,13 +8,13 @@ function readConfig(configPath) { } function writeConfig(configPath, content, cb) { - return fs.writeFile(configPath, JSON.stringify(content, null, 2), cb); + return fs.writeFile(configPath, JSON.stringify(content, null, 2) + '\n', cb); } function writeContributors(configPath, contributors, cb) { var config = readConfig(configPath); var content = _.assign(config, {contributors: contributors}); - return fs.writeFile(configPath, JSON.stringify(content, null, 2), cb); + return writeConfig(configPath, content, cb); } module.exports = {