Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix(cli): better logging
Browse files Browse the repository at this point in the history
log when publishing is skipped and when is successful

Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 15, 2017
1 parent 4883b77 commit 6e99e92
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ prepublish(cwd)

process.exit(1)
})
.then((result) => {
if (result === true) {
console.log('skip npm publishing')
} else {
console.log('published sucessfully')
}
process.exit(0)
})

0 comments on commit 6e99e92

Please sign in to comment.