Skip to content

Commit

Permalink
Minor build fixes
Browse files Browse the repository at this point in the history
run build on postversion so correct version is added to bin names
remove unecessary console output
  • Loading branch information
dwaring87 committed Nov 17, 2017
1 parent 6842569 commit a249519
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ function pack() {
throw err;
});

console.log(os);
if ( os === 'win' ) {
name = name + '.exe';
}
console.log(name);

archive.pipe(zip);
archive.file(binFile, {name: name});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"main": "src/cli.js",
"scripts": {
"preversion": "npm run build",
"postversion": "npm run build",
"build": "node build.js"
},
"repository": {
Expand Down

0 comments on commit a249519

Please sign in to comment.