-
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
Problem
Bun recently added support for catalogs, a feature analogous to pnpm catalogs. However, ni does not currently support this feature for bun workspaces.
This is analogous to #274, which requests pnpm catalog support.
Solution
Add a --catalog flag for bun workspaces that:
- Updates the
bunfig.tomlfile to add the dependency under a catalog - References the cataloged version in
package.json
Example - Named Catalog:
ni lodash --catalog prodShould update the catalogs in package.json.
And reference in package.json:
{
"dependencies": {
"lodash": "catalog:prod"
}
}Example - Default Catalog:
ni lodash --catalogShould use the default catalog in bunfig.toml.
Note
This feature was introduced in Bun v1.2.9.
nup
It would be helpful if the feature also worked for nup (updating packages) not just ni.
Metadata
Metadata
Assignees
Labels
No labels