MCPcopy Index your code
hub / github.com/tensorflow/tfjs / findDeps

Function findDeps

scripts/graph_utils.ts:133–138  ·  view source on GitHub ↗
(packages: Iterable<string>)

Source from the content-addressed store, hash-verified

131 * Find the transitive closure of dependencies of the given packages.
132 */
133export function findDeps(packages: Iterable<string>): Set<string> {
134 return new Set(
135 [...packages]
136 .map(packageName => findSubgraph(packageName, DEPENDENCY_GRAPH))
137 .reduce((a, b) => [...a, ...b], []));
138}
139
140/**
141 * Find the reverse dependencies of the given packages, i.e. find the

Callers 2

mainFunction · 0.90
generateCloudbuildFunction · 0.90

Calls 1

findSubgraphFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…