Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: set lockfileVersion from file during reset #340

Closed
wants to merge 1 commit into from

Commits on Oct 21, 2021

  1. fix: set lockfileVersion from file during reset

    Fix: npm/cli#3920
    
    When loading the initial tree while updating all, a shrinkwrap file
    loaded from disk with an existing `lockfileVersion` was not having the
    `lockfileVersion` preserved when saving the file back to disk.
    
    With this patch, an existing `lockfileVersion` is preserved if it is
    greater than the `defaultLockfileVersion`.
    
    Co-authored-by: @isaacs
    lukekarrys committed Oct 21, 2021
    Copy the full SHA
    bb14047 View commit details
    Browse the repository at this point in the history