Skip to content

Make bun install install to a catalog automatically / strict catalog mode #25355

@mfairley

Description

@mfairley

What is the problem this feature would solve?

If I'm using catalogs, I want every every package to set its dependencies using the catalog version in a monorepo. But if I run bun install package then it'll add a specific version as a dependency to the package I'm currently working on. I have to manually install to the catalog and update the package.json of the relevant packages.

What is the feature you are proposing to solve the problem?

Detect (or provide an option) to add a package to a catalog on bun install and set the version in the consuming package to "package": "catalog:",. This is the behavior of pnpm with catalogMode: strict https://pnpm.io/catalogs#catalogmode

What alternatives have you considered?

No response

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