Skip to content

[Feature] Catalog like pnpm #6400

@jaggli

Description

@jaggli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions