Skip to content

Commit

Permalink
chore: fixed trailing newline issue with npm dep rebuild and npm vers…
Browse files Browse the repository at this point in the history
…ion update
  • Loading branch information
ethanneff committed Mar 28, 2017
1 parent c5cb80a commit 2c20196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
"validate-commit-msg": "^2.11.2",
"xml2js": "^0.4.17"
}
}
}
2 changes: 1 addition & 1 deletion src/scripts/npm/updateNpmVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

function saveContent (file, content) {
return isFileXml(file) ? fileHelper.writeFile(file, content) : fileHelper.writeFile(file, JSON.stringify(content, null, 2))
return isFileXml(file) ? fileHelper.writeFile(file, content) : fileHelper.writeFile(file, JSON.stringify(content, null, 2) + '\n')
}

function isFileXml (file) {
Expand Down

0 comments on commit 2c20196

Please sign in to comment.