Closed mbeckem closed 1 month ago
Latest commit: 41c138a34c655b605ced1892073819a1b0a31263
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Implements a simple CLI to avoid accidental duplicates for central package dependencies, since
peerDependencies
do not scale well.The CLI can be configured to run in normal pnpm workflows via the
prepare
script:By default, all duplicate packages are reported as errors:
A configuration file can be used to specify expected duplicates which are known to not cause any problems:
When any unexpected duplicates are detected, the CLI returns a failure and an error message. Otherwise, it returns exit code 0.