-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The catalog feature of pnpm is awesome and yarn could have it too.
Describe the user story
"As a monorepo owner, I often want to do install dependencies to a package, but I often face version mismatches between the same dependency being used in any other package in the same monorepo".
Describe the solution you'd like
Installing dependencies in monorepo packages should always use the same version across all packages, pnpm solved this using a catalog feature, which looks very cool. It uses "catalog:"
as version in the package json - similar to the "workspace:
" for local dependencies.
Describe the drawbacks of your solution
The only drawback I can think of, is labor on yarn side.
Describe alternatives you've considered
A plugin would probably be possible. Given the fact, the workspace plugin was integrated, it probably makes sense to have this in core too..
Reference
- https://x.com/sebastienlorber/status/1813530800731938935
- thx @jantimon for the hint
rvetere, jantimon, mwettste, michaelnxt, KrzysztofKarol and 33 morejantimon, kaan-senturk, Mad-Kat, anteloe, samichlaus and 5 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request