Skip to content

Commit 275fdef

Browse files
Alan Agiusalexeagle
authored andcommitted
ci: disable TypeScript patch updates for different major and minor versions.
At the moment, we get patch updates for different major and minor versions than the current version of TypeScript installed. ```json { "packageRules": [ { "packageNames": [ "typescript" ], "separateMinorPatch": true }, { "packageNames": [ "typescript" ], "updateTypes": [ "minor", "major" ], "enabled": false } ] } ``` What the first rule does is override Renovate's results so that if TypeScript has both a minor update as well as a patch update then you get both PRs. Renovate's default otherwise is to just give you the latest minor or squash. So for example if the current TypeScript is `3.4.4` then the default behaviour is just to PR you for `3.5.1`. With this rule, we get both `3.4.5` and `3.5.1`. The second rule then disables major and minor updates for TypeScript, which has the effect of them suppressing the minor `3.5.1` update. For more context see: renovatebot/config-help#260
1 parent 2d27cb4 commit 275fdef

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

renovate.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@
5353
"packageNames": [
5454
"typescript"
5555
],
56-
"updateTypes": "patch"
56+
"separateMinorPatch": true
57+
},
58+
{
59+
"packageNames": [
60+
"typescript"
61+
],
62+
"updateTypes": [
63+
"minor",
64+
"major"
65+
],
66+
"enabled": false
5767
}
5868
]
5969
}

0 commit comments

Comments
 (0)