np
np copied to clipboard
Clear output on successful publish
The checklist is useful during publish, but when it's successful we only care about the last message. So would be nice to focus on that.
This is only regarding when publishing is done and the final success message is displayed.
Current
Publish a new version of np (2.9.0)
? Select semver increment or specify new version minor (2.10.0)
? Will bump from 2.9.0 to 2.10.0. Continue? Yes
✔ Prerequisite check
✔ Git
✔ Cleanup
✔ Installing dependencies
✔ Running tests
✔ Bumping version
✔ Publishing package
✔ Pushing tags
np 2.10.0 published 🎉
Proposed
np 2.10.0 published 🎉
Thoughts?
I agree. It makes sense to show the progress of publishing the module, but after that, that information is quite useless as it's all green.
It would make sense to keep the output if some tasks are skipped, but I don't believe that's the case here.
that information is quite useless as it's all green.
Indeed. I am up for it too.
Go for it :)
It will be possible with the next release of Listr
by just setting clearOutput
to true
right here.
This off course only clears the Listr
output and not the Inquirer.js. But I guess we can manually clear those 4 extra lines with eraseLines.
Will do a PR when the next Listr release lands.