ensure package.json files have a newline

This commit is contained in:
Sebastian McKenzie 2015-10-31 01:02:44 +00:00
parent 66440a92ae
commit 950f4b2aea

View File

@ -114,7 +114,7 @@ function publish() {
updateDepsObject(changedPackages, pkg.devDependencies); updateDepsObject(changedPackages, pkg.devDependencies);
// write new package // write new package
fs.writeFileSync(pkgLoc, JSON.stringify(pkg, null, " ")); fs.writeFileSync(pkgLoc, JSON.stringify(pkg, null, " ") + "\n");
// push to be git committed // push to be git committed
changedFiles.push(pkgLoc); changedFiles.push(pkgLoc);