PackageGraph.collectPackageNames()
Home > @backstage/cli-node > PackageGraph > collectPackageNames
Traverses the package graph and collects a set of package names.
The traversal starts at the provided list names, and continues throughout all the names returned by the collectFn, which is called once for each seen package.
Signature:
collectPackageNames(startingPackageNames: string[], collectFn: (pkg: PackageGraphNode) => Iterable<string> | undefined): Set<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
startingPackageNames |
string[] | |
|
collectFn |
(pkg: PackageGraphNode) => Iterable<string> | undefined |
Set<string>