Skip to content

Conversation

@isaacs
Copy link
Contributor

@isaacs isaacs commented Jul 31, 2020

  • 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.

@isaacs isaacs requested a review from a team as a code owner July 31, 2020 22:02
@isaacs isaacs requested a review from ruyadorno July 31, 2020 22:03
bin/npx-cli.js Outdated
const removedSwitches = new Set([
'always-spawn',
'ignore-existing',
'shell-auto-feedback'
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.`)
Copy link
Contributor

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.
isaacs added a commit that referenced this pull request Aug 4, 2020
- 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
@isaacs isaacs closed this Aug 4, 2020
isaacs added a commit that referenced this pull request Aug 4, 2020
- 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
@isaacs isaacs deleted the isaacs/npx branch October 2, 2020 21:41
jzacsh added a commit to jzacsh/dotfiles that referenced this pull request Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants