Skip to content

Commit

Permalink
optchaining
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Feb 15, 2024
1 parent 70db6c1 commit 9e62e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/release/reify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function buildDependencyGraph(rootNode) {
: node.edgesOut;
const workspaces = edgesOut.filter(
(edge) =>
edge.to.package.name && rootNode.workspaces?.has(edge.to.package.name)
edge?.to?.package?.name &&
rootNode.workspaces?.has(edge.to.package.name)
);
return workspaces.map((edge) =>
edge.to instanceof Arborist.Link ? edge.to.target : edge.to
Expand Down

0 comments on commit 9e62e30

Please sign in to comment.