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
Copy file name to clipboardExpand all lines: docs/configuration/rules.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,22 @@ weight:
25
25
26
26
Define package-specific configuration rules that override the default settings.
27
27
28
+
> This option is currently in **beta**. This means its options are considered stable (no backwards incompatible changes will be added), but that there are some stability and usability improvements expected.
29
+
28
30
## Explanation
29
31
30
32
The `rules` option allows you to apply different configuration settings to different groups of packages. This is useful when you want to handle certain packages differently from your default configuration. For example, you might want to apply security-only updates to development tools while allowing all updates for production dependencies.
31
33
32
34
Rules are evaluated in order, and when a package matches a rule, the configuration from that rule is merged with your default configuration.
33
35
36
+
### Comparison with bundled_packages
37
+
38
+
If you want to group packages together in a more flexible pattern than using [bundled_packages](/configuration/bundled_packages), then `rules` is for you. The main differences are:
39
+
40
+
-[bundled_packages](/configuration/bundled_packages) will only update its bundled packages if the "parent" package has an update, while rules can update the group if any of the packages has an update.
41
+
- Rules make it possible to have different configurations per group. For example, you can automerge one group but not others.
42
+
- Rules support pattern matching with wildcards and negation, making them much more flexible.
43
+
34
44
## Structure
35
45
36
46
Rules is an array of rule objects. Each rule object has the following structure:
0 commit comments