Skip to content

Commit 0baacf7

Browse files
authored
👷 chore: improve renovate config to support grouping in the same way of npm does (#10176)
chore(ci): improve renovate config to support grouping in the same way of npm does
1 parent 0c11d5f commit 0baacf7

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

‎renovate.json‎

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,39 @@
1717
"ignoreDeps": [],
1818
"labels": ["dependencies"],
1919
"packageRules": [
20-
// 1) Pinned deps: isolate (OK to use separate* here because there's no matchUpdateTypes)
2120
{
22-
"description": "Isolate PRs for pinned deps (exact x.y.z)",
21+
"description": "Un-group tilde ranges",
2322
"matchManagers": ["npm", "pnpm", "yarn", "bun"],
24-
"matchCurrentValue": "^\\d+\\.\\d+\\.\\d+([+-][0-9A-Za-z.-]+)?$",
23+
"matchCurrentValue": "^~.*$",
2524
"groupName": null,
26-
"separateMinorPatch": true,
27-
"separateMajorMinor": true
25+
"groupSlug": null,
26+
"separateMajorMinor": true,
27+
"separateMinorPatch": true
2828
},
29-
// 2) Non-pinned deps: Patch versions, grouped together
3029
{
31-
"description": "Group patch versions together for non-pinned deps",
30+
"description": "Un-group pinned deps (exact x.y.z)",
3231
"matchManagers": ["npm", "pnpm", "yarn", "bun"],
33-
"matchCurrentValue": "/(^[~^]|[<>=| -])/", // anything that looks like a range
34-
"groupName": "patch dependencies",
35-
"matchUpdateTypes": ["patch"]
32+
"matchCurrentValue": "/^\\d+\\.\\d+\\.\\d+([+-][0-9A-Za-z.-]+)?$/",
33+
"groupName": null,
34+
"groupSlug": null,
35+
"separateMajorMinor": true,
36+
"separateMinorPatch": true
37+
},
38+
{
39+
"description": "Un-group experimental caret ranges (^0.x)",
40+
"matchManagers": ["npm", "pnpm", "yarn", "bun"],
41+
"matchCurrentValue": "^\\^0\\.\\d+(\\.\\d+)?([+-][0-9A-Za-z.-]+)?$",
42+
"groupName": null,
43+
"separateMajorMinor": true,
44+
"separateMinorPatch": true
45+
},
46+
{
47+
"description": "Group ^>=1 ranges for patch/minor",
48+
"matchManagers": ["npm", "pnpm", "yarn", "bun"],
49+
"matchCurrentValue": "/^\\^[1-9]+[0-9]*(\\.\\d+){0,2}([+-][0-9A-Za-z.-]+)?$/",
50+
"matchUpdateTypes": ["minor", "patch"],
51+
"groupName": "all non-major dependencies",
52+
"groupSlug": "all-non-major-dependencies"
3653
}
3754
],
3855
"postUpdateOptions": ["yarnDedupeHighest"],
@@ -41,7 +58,7 @@
4158
"rangeStrategy": "bump",
4259
"rebaseWhen": "conflicted",
4360
"schedule": "on sunday before 6:00am",
61+
"separateMinorPatch": false,
4462
"separateMajorMinor": true,
45-
"separateMultipleMajor": true,
4663
"timezone": "UTC"
4764
}

0 commit comments

Comments
 (0)