Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@changesets/get-dependents-graph

changesets6.3mMIT2.1.3TypeScript support: included

Get the graph of dependents in a monorepo

readme

Get Dependents Graph

npm package View changelog

Small helper utility extracted from bolt to get a graph of relationships between packages.

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

changelog

@changesets/get-dependents-graph

2.1.3

Patch Changes

2.1.2

Patch Changes

2.1.1

Patch Changes

  • #1400 dd6e5bb Thanks @Andarist! - Fixed a crash in getDependentsGraph in a scenario when a workspace depends on the root workspace

2.1.0

Minor Changes

2.0.0

Major Changes

  • #1185 a971652 Thanks @Andarist! - package.json#exports have been added to limit what (and how) code might be imported from the package.

Patch Changes

1.3.6

Patch Changes

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • #704 6f9c9d6 Thanks @Andarist! - Dependencies specified using a tag will no longer mark the graph as invalid. With such dependencies the user's intent is to fetch those from the registry even if otherwise they could be linked locally.

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

  • 12f9a43 #507 Thanks @zkochan! - New setting added: bumpVersionsWithWorkspaceProtocolOnly. When it is set to true, versions are bumped in dependencies, only if those versions are prefixed by the workspace protocol. For instance, "foo": "workspace:^1.0.0".

Patch Changes

1.1.3

Patch Changes

1.1.2

Patch Changes

  • d678da5 #324 Thanks @zkochan! - Dev dependencies that are installed via the link or file protocol are ignored.

1.1.1

Patch Changes

1.1.0

Minor Changes

  • c3cc232 #311 Thanks @zkochan! - Added support for workspace ranges. Package graph validation understands them now and allows them to satisfy dependents' required ranges.

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • cc8c921 #290 Thanks @mitchellhamilton! - Initial release of @changesets/get-dependents-graph. If you're migrating from get-dependents-graph, you will need to pass the Packages object(which is returned from @manypkg/get-packages) to getDependentsGraph and also import getDependentsGraph as a named export instead of a default export.

Patch Changes