Skip to content

Yarn catalogs are defined in .yarnrc.yml, but catalog loading only reads pnpm-workspace.yaml and package.json #148

Description

@kaisermann

Hey there! We're evaluating replacing changesets with bumpy for a set of Yarn@4 monorepos that use catalogs heavily, and bumpy seems to not be able to see our catalog definitions.

bumpy reads catalog definitions from two places: pnpm-workspace.yaml and the root package.json. Since 4.10, Yarn defines catalog entries in .yarnrc.yml under the catalog/catalogs keys, and package.json only references them via the catalog: protocol. Yarn docs

In other words, in a Yarn workspace, the catalog map always comes back empty.

Repro: https://github.com/kaisermann/bumpy-yarn-catalog-repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions