From 950f4b2aead2224f75170f09d1ca5ba1d9fe2c6b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 31 Oct 2015 01:02:44 +0000 Subject: [PATCH] ensure package.json files have a newline --- scripts/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish.js b/scripts/publish.js index 2f4615c6ca..a061f15686 100755 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -114,7 +114,7 @@ function publish() { updateDepsObject(changedPackages, pkg.devDependencies); // write new package - fs.writeFileSync(pkgLoc, JSON.stringify(pkg, null, " ")); + fs.writeFileSync(pkgLoc, JSON.stringify(pkg, null, " ") + "\n"); // push to be git committed changedFiles.push(pkgLoc);