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(arborist): load actual tree on named updates #4306

Merged
merged 1 commit into from
Jan 26, 2022

Commits on Jan 21, 2022

  1. fix(arborist): load actual tree on named updates

    Arborist was not loading the actual tree when using named updates for
    global updates, that would result in removing all previously installed
    deps from a global install anytime the user would try to run
    `npm update <pkgname>`.
    
    This changeset fixes the problem by allowing the load of the actual tree
    if the `global` and `update.names` options are defined.
    
    Added a few more tests to illustrate but some of the snapshots already
    included were actually demonstrating the problem by having empty trees
    as result, these are now also updated with the expected tree result.
    
    Fixes: npm#3175
    ruyadorno committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    5186e06 View commit details
    Browse the repository at this point in the history