npm now asks to complete 2FA in the browser:
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access
Authenticate your account at:
https://www.npmjs.com/auth/cli/cda65f41-0edf4e1c6f4b
Press ENTER to open in the browser...
and I find this to be better than what np does:
? Select semver increment or specify new version major 4.0.0
✔ Prerequisite check
✔ Git
✔ Bumping version using npm
⠴ Publishing package using npm (waiting for input…)
→ ? Enter OTP:
Pushing tags
Creating release draft on GitHub
Is the feature request related to a problem?
Compare the two workflows:
with np's:
I don't know, but it could skip the "Press enter to continue" step and just use open
to open the browser and skip one more step.
Bonus points: this would also resolve another issue because "the notification" is the whole browser getting focus.
Potentially some people don't like this new workflow
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too