-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathrenovate.json
More file actions
200 lines (200 loc) · 6.15 KB
/
renovate.json
File metadata and controls
200 lines (200 loc) · 6.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Renovate configuration for @data-driven-forms library packages - maintains version ranges for library compatibility",
"extends": [
"config:recommended",
"schedule:weekends",
":dependencyDashboard",
":semanticCommits",
"group:monorepos",
"group:recommended",
":maintainLockFilesWeekly"
],
"prConcurrentLimit": 5,
"prHourlyLimit": 3,
"constraints": {
"node": ">=18"
},
"reviewers": [],
"rebaseWhen": "conflicted",
"separateMajorMinor": true,
"separateMinorPatch": false,
"rangeStrategy": "bump",
"respectLatest": true,
"major": {
"enabled": false
},
"minor": {
"enabled": true
},
"patch": {
"enabled": true
},
"npmrc": "package-lock=true",
"lockFileMaintenance": {
"enabled": true,
"schedule": ["before 5am on sunday"]
},
"ignorePaths": ["**/node_modules/**", "**/dist/**", "**/build/**"],
"packageRules": [
{
"description": "Group React ecosystem updates with testing library to avoid conflicts",
"groupName": "React ecosystem",
"matchPackageNames": [
"react",
"react-dom",
"@types/react",
"@types/react-dom",
"react-is",
"@testing-library/react",
"@testing-library/react-hooks"
],
"rangeStrategy": "bump",
"respectLatest": true
},
{
"description": "Group Testing Library packages",
"groupName": "Testing Library",
"matchPackageNames": ["/^@testing-library//"]
},
{
"description": "Group Babel packages",
"groupName": "Babel",
"matchPackageNames": ["/^@babel//", "/^babel-/"]
},
{
"description": "Group TypeScript packages",
"groupName": "TypeScript",
"matchPackageNames": ["/^@types//", "/typescript/", "/ts-/"]
},
{
"description": "Group ESLint packages",
"groupName": "ESLint",
"matchPackageNames": ["/^eslint/", "/^@typescript-eslint//"]
},
{
"description": "Group Jest packages",
"groupName": "Jest",
"matchPackageNames": ["/^jest/", "/@jest//"]
},
{
"description": "Group Nx packages",
"groupName": "Nx",
"matchPackageNames": ["/^@nx//", "/^nx$/"]
},
{
"description": "Group Webpack packages",
"groupName": "Webpack",
"matchPackageNames": ["/^webpack/", "/webpack-/"]
},
{
"description": "Group PatternFly packages",
"groupName": "PatternFly",
"matchPackageNames": ["/^@patternfly//"]
},
{
"description": "Group Material-UI packages",
"groupName": "Material-UI",
"matchPackageNames": ["/^@mui//", "/^@material-ui//"]
},
{
"description": "Group Carbon packages",
"groupName": "IBM Carbon",
"matchPackageNames": ["/^@carbon//"]
},
{
"description": "Group Blueprint packages",
"groupName": "Blueprint",
"matchPackageNames": ["/^@blueprintjs//"]
},
{
"description": "Group Emotion packages",
"groupName": "Emotion",
"matchPackageNames": ["/^@emotion//"]
},
{
"description": "Enable peer dependency updates with ranges for library compatibility",
"matchDepTypes": ["peerDependencies"],
"enabled": true,
"rangeStrategy": "widen"
},
{
"description": "Pin internal workspace dependencies",
"enabled": false,
"matchPackageNames": ["/^@data-driven-forms//"]
},
{
"description": "Maintain ranges for regular dependencies in library packages",
"matchDepTypes": ["dependencies"],
"rangeStrategy": "bump"
},
{
"description": "Maintain ranges for optional dependencies",
"matchDepTypes": ["optionalDependencies"],
"rangeStrategy": "bump"
},
{
"description": "Allow dev dependencies to be more flexible with ranges",
"matchDepTypes": ["devDependencies"],
"rangeStrategy": "bump"
},
{
"description": "Widen peer dependency ranges to avoid conflicts",
"matchDepTypes": ["peerDependencies"],
"rangeStrategy": "widen"
},
{
"description": "Conservative approach for React peer dependencies to avoid conflicts",
"matchPackageNames": ["react", "react-dom"],
"matchDepTypes": ["peerDependencies"],
"rangeStrategy": "bump",
"respectLatest": true
},
{
"description": "Maintain caret ranges for core library dependencies",
"matchPackageNames": [
"final-form",
"react-final-form",
"lodash",
"clsx",
"date-fns"
],
"matchDepTypes": ["dependencies"],
"rangeStrategy": "bump"
},
{
"description": "Maintain ranges for dev dependencies patch updates",
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch"]
},
{
"description": "Prevent conflicting React versions in overrides",
"matchPackageNames": ["react", "react-dom"],
"matchFileNames": ["package.json"],
"rangeStrategy": "bump",
"respectLatest": true,
"minimumReleaseAge": "3 days"
},
{
"description": "Keep React Testing Library compatible with React versions",
"rangeStrategy": "bump",
"respectLatest": true,
"minimumReleaseAge": "3 days",
"matchPackageNames": ["/^@testing-library//"]
},
{
"description": "Handle package overrides carefully to avoid peer dependency conflicts",
"matchManagers": ["npm"],
"matchDepNames": ["react", "react-dom"],
"postUpdateOptions": ["npmDedupe"],
"rangeStrategy": "bump",
"prTitle": "chore(deps): update React ecosystem (check peer dependencies)",
"prBodyTemplate": "This PR updates React ecosystem packages. Please verify that all peer dependencies are compatible before merging.\n\n{{{table}}}\n\n{{{notes}}}\n\n{{{changelogs}}}"
}
],
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"commitBody": "- Updates {{depName}} from {{currentVersion}} to {{newVersion}}\n- Release notes: {{releaseNotes}}\n\n{{#if hasReleaseNotes}}\n### Release Notes\n{{releaseNotes}}\n{{/if}}"
}