mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 21:46:29 +00:00
Add empty last line to the contributors file.
This commit is contained in:
parent
349776924c
commit
2e7e890837
1 changed files with 2 additions and 2 deletions
|
@ -8,13 +8,13 @@ function readConfig(configPath) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeConfig(configPath, content, cb) {
|
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) {
|
function writeContributors(configPath, contributors, cb) {
|
||||||
var config = readConfig(configPath);
|
var config = readConfig(configPath);
|
||||||
var content = _.assign(config, {contributors: contributors});
|
var content = _.assign(config, {contributors: contributors});
|
||||||
return fs.writeFile(configPath, JSON.stringify(content, null, 2), cb);
|
return writeConfig(configPath, content, cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Reference in a new issue