-
Notifications
You must be signed in to change notification settings - Fork 4.1k
npx: add install prompt, handle options correctly #1596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bin/npx-cli.js
Outdated
| const removedSwitches = new Set([ | ||
| 'always-spawn', | ||
| 'ignore-existing', | ||
| 'shell-auto-feedback' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops, isn't it shell-auto-fallback ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
| } | ||
|
|
||
| if (removed.has(key)) { | ||
| console.error(`npx: the --${key} argument has been removed.`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice to have a more elaborate msg for some of these keys, or maybe just add a link to npm help exec (showing the "Compatibility with Older npx Versions" section) or to a blog post that explains the reasoning for the changes? as an user I would def appreciate that
- handle previous npx options that are still possible to be handled, and print a warning if any deprecated/removed options are used. - expand shorthands properly in npx command line. - take existing npm options into account when determining placement of the -- argument. - document changes from previous versions of npx.
- handle previous npx options that are still possible to be handled, and print a warning if any deprecated/removed options are used. - expand shorthands properly in npx command line. - take existing npm options into account when determining placement of the -- argument. - document changes from previous versions of npx. PR-URL: #1596 Credit: @isaacs Close: #1596 Reviewed-by: @ruyadorno
- handle previous npx options that are still possible to be handled, and print a warning if any deprecated/removed options are used. - expand shorthands properly in npx command line. - take existing npm options into account when determining placement of the -- argument. - document changes from previous versions of npx. PR-URL: #1596 Credit: @isaacs Close: #1596 Reviewed-by: @ruyadorno
print a warning if any deprecated/removed options are used.
the -- argument.