Skip to content

Commit

Permalink
Fix version prompt and config (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaisteinherz committed Apr 6, 2019
1 parent 9dac7aa commit 45cea18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/cli.js
Expand Up @@ -36,6 +36,7 @@ const cli = meow(`
$ np 1.0.2-beta.3 --tag=beta
$ np 1.0.2-beta.3 --tag=beta --contents=dist
`, {
booleanDefault: undefined,
flags: {
anyBranch: {
type: 'boolean'
Expand Down Expand Up @@ -95,6 +96,7 @@ updateNotifier({pkg: cli.pkg}).notify();
process.exit(0);
}

console.log(); // Prints a newline for readability
const newPkg = await np(options.version, options);
console.log(`\n ${newPkg.name} ${newPkg.version} published 🎉`);
})().catch(error => {
Expand Down
1 change: 1 addition & 0 deletions source/ui.js
Expand Up @@ -161,6 +161,7 @@ module.exports = async (options, pkg) => {
return {
...options,
...answers,
confirm: true,
repoUrl,
releaseNotes
};
Expand Down

0 comments on commit 45cea18

Please sign in to comment.