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(link): do not prune packages #3399

Merged
merged 1 commit into from
Jun 11, 2021

Commits on Jun 11, 2021

  1. fix(link): do not prune packages

    `npm link <pkg>` is meant to be used as a way to link a local package to
    an install tree and it's very surprising to users that it may prune
    extraneous deps from the project.
    
    This change switches the default behavior to avoid pruning deps when
    reifying the dependencies in npm link.
    
    Fixes: npm#2554
    
    PR-URL: npm#3399
    Credit: @ruyadorno
    Close: npm#3399
    Reviewed-by: @ljharb, @nlf
    ruyadorno authored and wraithgar committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    40829ec View commit details
    Browse the repository at this point in the history