Skip to content

Commit

Permalink
[fix] Maintain \n at the end of package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Nov 13, 2012
1 parent d861a6d commit 4293e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jitsu/package.js
Expand Up @@ -298,7 +298,7 @@ package.write = function (pkg, dir, create, callback) {
fs.readFile(path.resolve(path.join(dir, 'package.json')), function(e, data) {
var offset = data ? ladder(data.toString()) : 2;

fs.writeFile(path.join(dir, 'package.json'), JSON.stringify(pkg, null, offset), function (err) {
fs.writeFile(path.join(dir, 'package.json'), JSON.stringify(pkg, null, offset) + '\n', function (err) {
return err ? callback(err) : callback(null, pkg, dir);
});
});
Expand Down

0 comments on commit 4293e19

Please sign in to comment.