Skip to content

Commit

Permalink
Merge pull request #29 from Avaq/av-private-package-support
Browse files Browse the repository at this point in the history
Add detection of private packages and don't publish them to NPM
  • Loading branch information
davidchambers authored Oct 26, 2016
2 parents d0c6f1b + c1c37e7 commit bd72e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Several things will happen if one elects to continue:
git commit --message 'Version 0.6.1'
git tag --annotate 'v0.6.1' --message 'Version 0.6.1'
git push origin 'refs/heads/master' 'refs/tags/v0.6.1'
npm publish
npm publish # Only for non-private packages.

xyz accepts several optional arguments, described in the help text:

Expand Down
2 changes: 1 addition & 1 deletion xyz
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ run "git commit --message '$message'"
run "git tag --annotate '$tag' --message '$message'"
run "git push --atomic '$repo' 'refs/heads/$branch' 'refs/tags/$tag'"

run "npm publish"
node -e 'process.exit(require("./package.json").private === true ? 1 : 0)' && run "npm publish"

0 comments on commit bd72e9d

Please # to comment.