mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-10-07 13:03:24 +02:00
15 lines
562 B
Markdown
15 lines
562 B
Markdown
|
# Get Dependents Graph
|
||
|
|
||
|
[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/get-dependents-graph)
|
||
|
|
||
|
Small helper utility extracted from bolt to get a graph of relationships between packages.
|
||
|
|
||
|
```ts
|
||
|
import { getDependentsGraph } from "@changesets/get-dependents-graph";
|
||
|
import { getPackages } from "@manypkg/get-packages";
|
||
|
|
||
|
let { graph, valid } = getDependentsGraph(await getPackages(cwd));
|
||
|
```
|
||
|
|
||
|
Mostly published for use in [changesets](https://www.npmjs.com/package/@changesets/cli)
|