Skip to content

Conversation

@ecraig12345
Copy link
Member

pnpm treats catalog: and catalog:default as both pointing to a catalog named "default", which can be defined under either catalog: or catalogs: default:.

yarn treats catalog:default (catalogs: default:) as a separate named catalog from the default one, and the actual default catalog must be defined under catalog:.

Update the utilities to handle this... The approach I went with is that for pnpm and midgard-yarn, if a named catalog "default" exists in the yaml, it's translated to Catalogs.default (pnpm errors on install if both are defined). Regular yarn has no special handling.

Also add a utility catalogsToYaml, mainly for use in tests.

@ecraig12345 ecraig12345 merged commit f261606 into main Dec 18, 2025
6 checks passed
@ecraig12345 ecraig12345 deleted the ecraig/weird-catalogs branch December 18, 2025 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants