Generate a dependency graph for a list of packages, based on their defined
peerDependencies. To begin, instantiate an instance of
PackageGraph, which accepts a list of
package.json objects as the first argument.
Once all packages have been defined, we can resolve our graph into 1 of 3 formats.
Will only resolve and return packages that have been defined. Will not return non-defined packages found in
PackageGraph#addPackage(package: T): this
Add a package by name with an associated
package.json object. Will map a dependency between the
package and its dependees found in
PackageGraph#addPackages(packages: T): this
Add multiple packages and map their dependencies.
Resolve the dependency graph and return a list of batched
package.json objects (array of arrays)
in the order they are depended on.
Resolve the dependency graph and return a list of all
package.json objects in the order they are
Resolve the dependency graph and return a tree of nodes for all
package.json objects and their