tooling/lib/dependencies.js
async function buildDirectDependentTree() {
  const dependents = new Map();

  for (const packageName of await _list()) {
    dependents.set(packageName, new Set());
  }

  for (const packageName of await _list()) {
    for (const dep of tree.get(packageName)) {
      dependents.get(dep).add(packageName);
    }
  }

  return dependents;
}
async function buildDirectDependentTree() {
  const dependents = new Map();

  for (const packageName of await _list()) {
    dependents.set(packageName, new Set());
  }

  for (const packageName of await _list()) {
    for (const dep of tree.get(packageName)) {
      dependents.get(dep).add(packageName);
    }
  }

  return dependents;
}
async function buildDirectDependentTree ( ) { const dependents = new Map ( ) ; for ( const packageName of await _list ( ) ) { dependents . set ( packageName , new Set ( ) ) ; } for ( const packageName of await _list ( ) ) { for ( const dep of tree . get ( packageName ) ) { dependents . get ( dep ) . add ( packageName ) ; } } return dependents ; }
Builds a tree of direct dependent packages
@returns {Map<string, Set>}
Builds a tree of direct dependent packages