diff --git a/src/github.js b/src/github.js index 5beba0e..e29bdde 100644 --- a/src/github.js +++ b/src/github.js @@ -317,7 +317,7 @@ class Github { async allDescendantPackages(parent) { const tree = await this.getSubPackageTree(); let descendants = []; - for (const child of tree[parent] || []) { + for (const child of tree[parent].deps || []) { descendants = [...new Set([...descendants, ...(await this.allDescendantPackages(child))])]; } return [parent, ...descendants];