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.
fix: load global symlinks implicitly as file: deps
When running `loadActual` or `buildIdealTree()` in the global root, we read all or some of the top-level installed packages, and create a "pseudo-package" for the root node which depends on all of them with the range '*'. However, for *linked* packages, this is not quite accurate. In that case, we really do not want to change them by accident to anything other than the actual symlink we put there. Detect this state, and assign the dependency properly in the root level. Note that this does _not_ fix npm/cli#3457, but it did contribute to attempting to ending up with a Node rather than a Link in the top-level of the global install space. With this patch in place, the condition described will result in an `ERESOLVE` error rather than destroying the link target, but that is still arguably preferrable. Related-to: npm/cli#3457
- Loading branch information
Showing
5 changed files
with
132 additions
and
3 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
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