Permalink
Browse files

[fix] Maintain `\n` at the end of `package.json`

  • Loading branch information...
1 parent d861a6d commit 4293e196b273656ea646489ae14d438a1216bde4 @mmalecki mmalecki committed Nov 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jitsu/package.js
View
@@ -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);
});
});

0 comments on commit 4293e19

Please sign in to comment.