diff --git a/utils/release/reify.mjs b/utils/release/reify.mjs index c3e131d35d..7e51f2a975 100644 --- a/utils/release/reify.mjs +++ b/utils/release/reify.mjs @@ -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