You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a virtual root node with the same deps as the node that
1054
-
// is requesting this one, so that we can get all the peer deps in
1055
-
// a context where they're likely to be resolvable.
1056
-
// Note that the virtual root will also have virtual copies of the
1057
-
// targets of any child Links, so that they resolve appropriately.
1049
+
// create a virtual root node with the same deps as the node that is requesting this one, so that we can get all the peer deps in a context where they're likely to be resolvable.
1050
+
// Note that the virtual root will also have virtual copies of the targets of any child Links, so that they resolve appropriately.
// we might have a case where the parent has a peer dependency on
1064
-
// `foo@*` which resolves to v2, but another dep in the set has a
1065
-
// peerDependency on `foo@1`. In that case, if we force it to be v2,
1066
-
// we're unnecessarily triggering an ERESOLVE.
1067
-
// If we have a second edge to worry about, and it's not satisfied
1068
-
// by the first node, try a second and see if that satisfies the
1069
-
// original edge here.
1056
+
// we might have a case where the parent has a peer dependency on `foo@*` which resolves to v2, but another dep in the set has a peerDependency on `foo@1`.
1057
+
// In that case, if we force it to be v2, we're unnecessarily triggering an ERESOLVE.
1058
+
// If we have a second edge to worry about, and it's not satisfied by the first node, try a second and see if that satisfies the original edge here.
1070
1059
constspec2=secondEdge&&npa.resolve(
1071
1060
edge.name,
1072
1061
secondEdge.spec,
@@ -1210,11 +1199,12 @@ This is a one-time fix-up, please be patient...
0 commit comments