This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unpack shrinkwrapped deps not already unpacked
We loop over the diff.leaves to find all the shrinkwraps that _must_ be unpacked ahead of time in order to complete the idealTree. However, if the idealTree already contains the children of the shrinkwrap-containing module (because it's been previously installed and saved to a lockfile), then we saw the hasShrinkwrap flag, and assumed it had already been unpacked. This tracks a Set of all nodes unpacked for the purposes of reading their shrinkwraps, and only skips _those_ modules at unpackNewModules. Different approach than #233, without adding extra items into the diff.leaves, which can have the side effect of calling mkdirp more than necessary. Close: #233 Fix: npm/cli#2251 Reviewed-by: @nlf
- Loading branch information
Showing
3 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters