Skip to content
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

fix(npx): link and run own bins directly when possible #5848

Draft
wants to merge 3 commits into
base: latest
Choose a base branch
from

Commits on Nov 12, 2022

  1. Configuration menu
    Copy the full SHA
    2939744 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2022

  1. fix(npx): link and run own bins directly when possible

    This follows a similar approach to local and global bins that already
    exist. This is achieved by linking a packages own bin script to
    `node_modules/.bin` and the package within `node_modules/` similar to if
    it had been installed with `--install-links=false`.
    
    Then the linked bin is run and the symlinks are cleaned up immediately
    after. This has the same effect as loading the current package into the
    `npx` cache and running it, except it is quicker to not have to run any
    Arborist commands.
    lukekarrys committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    501e738 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20eb746 View commit details
    Browse the repository at this point in the history