diff options
author | nlf <quitlahok@gmail.com> | 2022-01-20 23:37:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 23:37:43 +0300 |
commit | c99c2151a868672c017f64ff0ecb12149a2fb095 (patch) | |
tree | f69903b0ea2523637e106d8191880a17cfd260f4 /workspaces/arborist/lib | |
parent | cfd59b8c81078f842328b13a23a234150842cd58 (diff) |
fix(arborist): prioritize valid workspace nodes (#4230)
closes #3637
Diffstat (limited to 'workspaces/arborist/lib')
-rw-r--r-- | workspaces/arborist/lib/arborist/build-ideal-tree.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/workspaces/arborist/lib/arborist/build-ideal-tree.js b/workspaces/arborist/lib/arborist/build-ideal-tree.js index ff0cc3480..f20a554bd 100644 --- a/workspaces/arborist/lib/arborist/build-ideal-tree.js +++ b/workspaces/arborist/lib/arborist/build-ideal-tree.js @@ -1180,6 +1180,11 @@ This is a one-time fix-up, please be patient... return true } + // If the edge is a workspace, and it's valid, leave it alone + if (edge.to.isWorkspace) { + return false + } + // user explicitly asked to update this package by name, problem if (this[_updateNames].includes(edge.name)) { return true |