pantoken / tools/aggregate/src / discoverTargets
Function: discoverTargets()
discoverTargets(
metaDir):Target[]
Beta
Read the pantoken targets from the meta package's dependencies.
Parameters
metaDir
string
Returns
Target[]
Example
Inspect what would be aggregated, without writing anything
ts
import { discoverTargets } from "@pantoken/aggregate";
const targets = discoverTargets("/path/to/packages/pantoken");
for (const t of targets) console.log(t.key, t.kind, "->", t.pkg);