You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
includedWorkspaces: [] # Optional: Workspaces to include
38
+
ignoredWorkspaces: [] # Optional: Workspaces to ignore
38
39
39
40
list:
40
41
root: # Special alias for the root catalog (accessed via catalog:)
@@ -243,9 +244,33 @@ list:
243
244
244
245
If your `package.json` has more `catalog:stable` dependencies than `catalog:beta`, running `yarn add next` will automatically use `catalog:stable`.
245
246
246
-
### Ignoring Workspaces
247
+
### Workspace Filtering
247
248
248
-
Disable catalog enforcement for specific workspaces using glob patterns:
249
+
Control which workspaces are included in catalog protocol processing using `includedWorkspaces` and `ignoredWorkspaces` options.
250
+
251
+
#### Including Workspaces
252
+
253
+
Use `includedWorkspaces` to specify which workspaces should be processed for catalogs. Only matching workspaces will receive catalog validation and default catalog auto-application:
254
+
255
+
```yaml
256
+
# In catalogs.yml
257
+
options:
258
+
includedWorkspaces: [apps-*, packages]
259
+
260
+
list:
261
+
stable:
262
+
react: npm:18.0.0
263
+
```
264
+
265
+
When `includedWorkspaces` is specified:
266
+
- Only matching workspaces receive validation warnings/errors
267
+
- Only matching workspaces have default catalogs auto-applied
268
+
269
+
If `includedWorkspaces` is not specified, all workspaces are included by default.
270
+
271
+
#### Ignoring Workspaces
272
+
273
+
Use `ignoredWorkspaces` to exclude specific workspaces from catalog processing:
249
274
250
275
```yaml
251
276
# In catalogs.yml
@@ -260,7 +285,8 @@ list:
260
285
Ignored workspaces:
261
286
- Won't receive validation warnings/errors
262
287
- Won't have default catalogs auto-applied
263
-
- Can still use `catalog:` protocol if needed
288
+
289
+
`ignoredWorkspaces`takes precedence over `includedWorkspaces`.
0 commit comments