Skip to content

Commit

Permalink
fix(npm): print registry name only if custom registry is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Apr 9, 2018
1 parent 1adc6ad commit a247e80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plugins/npm/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ export default (config = {}) => {
}

logger.log(
"Publishing %s version %s to npm registry %s",
pkg.name,
pkg.nextRelease.version,
registry
"Publishing %s version %s to npm registry" + (registry ? " %s" : ""),
...[pkg.name, pkg.nextRelease.version, registry].filter(v => v)
);

const command = [
Expand Down

0 comments on commit a247e80

Please sign in to comment.