You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, on further investigation, this appears to be a known issue with inquirer catching the SIGINT.
The same issue also has a quick-fix for this, using a SignalRef and this works in our code as well, as seen here. I tried the solution quickly and it looks like it works.
The only part I don't like is that it makes the simple inquirer prompt action look fairly more complicated as we have to wrap it around the above function.
@sindresorhus , do you think it's worth us doing a fix on this or should we wait for inquirer to handle this gracefully?
Description
issue demo
Steps to reproduce
git clone git@github.com:oren-l/np-issue.git
npm install
npm run release
Expected behavior
Aborting np should exit with non-zero status code so that any post-hooks will not be executed.
Environment
np - 6.2.1
Node.js - 11.15.0
npm - 6.14.4
Git - 2.20.1 (Apple Git-117)
OS - macOS Mojave 10.14.6
The text was updated successfully, but these errors were encountered: