Allow "catalog" and "catalogs" in top-level package.json if it wasn't provided in "workspaces" object (#21009)

This commit is contained in:
Jarred Sumner
2025-07-15 22:14:27 -07:00
committed by GitHub
parent 20db4b636e
commit b0a5728b37
4 changed files with 63 additions and 31 deletions

View File

@@ -52,6 +52,8 @@ In your root-level `package.json`, add a `catalog` or `catalogs` field within th
}
```
If you put `catalog` or `catalogs` at the top level of the `package.json` file, that will work too.
### 2. Reference Catalog Versions in Workspace Packages
In your workspace packages, use the `catalog:` protocol to reference versions: