Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pr-9260.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix(app-builder-lib): Change dependency collection to parse from root to better handle monorepos
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export abstract class NodeModulesCollector<T extends Dependency<T, OptionalsType

public async getNodeModules(): Promise<NodeModuleInfo[]> {
const tree: T = await this.getDependenciesTree()
this.collectAllDependencies(tree) // Parse from the root, as npm list can host and deduplicate across projects in the workspace
const realTree: T = this.getTreeFromWorkspaces(tree)
this.collectAllDependencies(realTree)
this.extractProductionDependencyGraph(realTree, "." /*root project name*/)

const hoisterResult: HoisterResult = hoist(this.transToHoisterTree(this.productionGraph), { check: true })
Expand Down
Loading