patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Support lockfile version 3

Open brettwillis opened this issue 2 years ago • 0 comments

Since NPM version 7, the package-lock.json version 2 file now uses a packages field, and the dependencies field is duplicated for backwards compatibility.

It is possible to configure NPM to use a package-lock.json version 3, which omits the dependencies field to greatly reduce the size of the lock file. See https://docs.npmjs.com/cli/v8/using-npm/config#lockfile-version.

To support lockfile-version=3, patch-package must be able to interpret the packages field of the lock file.

brettwillis avatar May 15 '22 03:05 brettwillis