Skip to content

Commit

Permalink
Merge pull request #8 from bcomnes/add-newline
Browse files Browse the repository at this point in the history
Add newline
  • Loading branch information
zeke committed Aug 28, 2018
2 parents f1dcba4 + 852f86b commit 1a479b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
language: node_js
node_js:
- 'node'
- 'lts/*'
sudo: false
cache:
directories:
- ~/.npm
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var merge = require("merge");
var steelToe = require("steeltoe");
var stringToArray = require("./lib/string-to-array");
var args = require("minimist")(process.argv.slice(2));
var endOfLine = require('os').EOL;

var defaults = {
package: process.cwd() + "/package.json"
Expand Down Expand Up @@ -51,4 +52,4 @@ Object.keys(pkg).forEach(function(property){
}
});

fs.writeFileSync(args.package, JSON.stringify(pkg, null, 2));
fs.writeFileSync(args.package, JSON.stringify(pkg, null, 2) + endOfLine);
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"homepage": "https://github.com/zeke/npe",
"devDependencies": {
"mocha": "^1.20.1",
"nixt": "^0.3.0"
"mocha": "^5.2.0",
"nixt": "^0.5.0"
},
"dependencies": {
"merge": "^1.1.3",
"minimist": "^0.1.0",
"minimist": "^1.0.0",
"steeltoe": "^1.0.1"
},
"bin": "index.js",
Expand Down

0 comments on commit 1a479b3

Please sign in to comment.