@kekkai/blueprint / runDeps
Function: runDeps()
runDeps(
root,options?):Promise<DepsResult>
Defined in: src/inspect/deps.ts:58
Run blueprint deps in root. Read-only. With a target, answers "who gets hit if I change this unit" (reverse deps + own imports); without one, prints the blast-radius leaderboard — every unit sorted by fan-in.
Parameters
root
string
options?
DepsOptions = {}
Returns
Promise<DepsResult>
Example
ts
const { units } = await runDeps(process.cwd(), { target: 'hooks/useCart' });
console.log(units[0].importedBy); // who gets hit if I change it