Skip to content

Commit 88adf86

Browse files
committed
sadas
1 parent f4a46e8 commit 88adf86

File tree

1 file changed

+62
-66
lines changed

1 file changed

+62
-66
lines changed

renovate-preset/default.json5

Lines changed: 62 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["group:monorepos"],
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['group:monorepos'],
44
dependencyDashboard: true,
5-
rangeStrategy: "replace",
5+
rangeStrategy: 'replace',
66
automerge: false,
77

88
// Temporary workaround for https://github.com/renovatebot/renovate/discussions/30812
99
ignoreScripts: false,
1010

1111
// Schedule Renovate to run during off-peak hours
12-
schedule: [
13-
"after 10:00pm every weekday",
14-
"before 5:00am every weekday",
15-
"every weekend",
16-
],
12+
schedule: ['after 10:00pm every weekday', 'before 5:00am every weekday', 'every weekend'],
1713
prConcurrentLimit: 8,
1814
prHourlyLimit: 4,
19-
timezone: "America/Tijuana",
15+
timezone: 'America/Tijuana',
2016

2117
// Commit and PR customization
22-
commitBody: "See associated pull request for more information.",
23-
semanticCommits: "enabled",
24-
semanticCommitScope: "",
25-
semanticCommitType: "build",
26-
labels: ["area: build & ci", "action: merge"],
18+
commitBody: 'See associated pull request for more information.',
19+
semanticCommits: 'enabled',
20+
semanticCommitScope: '',
21+
semanticCommitType: 'build',
22+
labels: ['area: build & ci', 'action: merge'],
2723

2824
lockFileMaintenance: {
2925
enabled: true,
@@ -36,41 +32,47 @@
3632

3733
// Ignored dependencies in all repositories
3834
ignoreDeps: [
39-
"rules_pkg",
40-
"yarn", // Yarn is copied locally in all repositories where needed.
35+
'rules_pkg',
36+
'yarn', // Yarn is copied locally in all repositories where needed.
4137
],
4238

4339
// Renovate does not update Bazel lockfile for the time being.
4440
// Workaround for https://github.com/renovatebot/renovate/issues/25557
4541
postUpgradeTasks: {
4642
commands: [
47-
"git restore .npmrc || true",
48-
"pnpm install --frozen-lockfile",
49-
"pnpm bazel mod deps --lockfile_mode=update",
43+
'git restore .npmrc || true', // In case `.npmrc` avoid a hard error.
44+
'pnpm install --frozen-lockfile',
45+
'pnpm bazel mod deps --lockfile_mode=update',
5046
],
51-
fileFilters: ["MODULE.bazel.lock"],
52-
executionMode: "branch",
47+
executionMode: 'branch',
5348
},
5449

5550
packageRules: [
5651
// ============================================================================
5752
// GENERAL GROUPING & UPDATE BEHAVIOR
5853
// ============================================================================
54+
55+
// Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files.
56+
{
57+
postUpgradeTasks: {commands: []},
58+
matchManagers: ['!npm', '!bazel', '!bazel-module', '!bazelisk'],
59+
},
60+
5961
// Rule to disable NPM updates on branches other than 'main'.
6062
// But allow updating engines and packageManagers.
6163
{
6264
enabled: false,
63-
matchBaseBranches: ["!main"],
64-
matchDepNames: ["!node", "!pnpm", "!npm", "!yarn"],
65-
matchManagers: ["npm"],
65+
matchBaseBranches: ['!main'],
66+
matchDepNames: ['!node', '!pnpm', '!npm', '!yarn'],
67+
matchManagers: ['npm'],
6668
},
6769

6870
// Group all non-major dependencies together for updates.
6971
{
70-
groupName: "all non-major dependencies",
71-
matchDepNames: ["*", "!node", "!pnpm", "!npm", "!yarn"],
72-
matchUpdateTypes: ["digest", "patch", "minor"],
73-
matchManagers: ["npm"],
72+
groupName: 'all non-major dependencies',
73+
matchDepNames: ['*', '!node', '!pnpm', '!npm', '!yarn'],
74+
matchUpdateTypes: ['digest', 'patch', 'minor'],
75+
matchManagers: ['npm'],
7476
},
7577

7678
// ============================================================================
@@ -79,14 +81,14 @@
7981

8082
// Group Bazel updates
8183
{
82-
groupName: "bazel dependencies",
83-
matchManagers: ["bazel", "bazel-module"],
84+
groupName: 'bazel dependencies',
85+
matchManagers: ['bazel', 'bazel-module'],
8486
},
8587

8688
// Group GitHub Actions workflow
8789
{
88-
groupName: "all github actions",
89-
matchManagers: ["github-actions"],
90+
groupName: 'all github actions',
91+
matchManagers: ['github-actions'],
9092
},
9193

9294
// ============================================================================
@@ -96,47 +98,47 @@
9698
// Group updates related to Angular ecosystem across repositories
9799
{
98100
enabled: true, // Enable NPM updates of cross-repo dependencies on all branches.
99-
groupName: "cross-repo angular dependencies",
100-
followTag: "next",
101+
groupName: 'cross-repo angular dependencies',
102+
followTag: 'next',
101103
separateMajorMinor: false,
102-
schedule: ["at any time"],
104+
schedule: ['at any time'],
103105
matchPackageNames: [
104-
"@angular-devkit/**",
105-
"@angular/**",
106-
"@schematics/**",
107-
"angular/**",
108-
"ng-packagr",
106+
'@angular-devkit/**',
107+
'@angular/**',
108+
'@schematics/**',
109+
'angular/**',
110+
'ng-packagr',
109111
],
110112
},
111113

112114
// @angular/benchpress is not released as 'next'
113115
{
114116
followTag: null,
115-
matchDepNames: ["@angular/benchpress"],
117+
matchDepNames: ['@angular/benchpress'],
116118
},
117119

118120
// Disable 'next' tag tracking on non-main branches
119121
{
120-
matchBaseBranches: ["!main"],
122+
matchBaseBranches: ['!main'],
121123
followTag: null,
122124
},
123125

124126
// Keep minor and patch updates separate for TypeScript
125127
{
126-
matchDepNames: ["typescript"],
128+
matchDepNames: ['typescript'],
127129
separateMinorPatch: true,
128130
},
129131

130132
// Group TypeScript-related packages
131133
{
132-
groupName: "typescript dependencies",
133-
matchDepNames: ["typescript", "tslib"],
134+
groupName: 'typescript dependencies',
135+
matchDepNames: ['typescript', 'tslib'],
134136
},
135137

136138
// Limit how many times these packages get updated (They deploy each merged PR)
137139
{
138-
matchDepNames: ["renovate", "quicktype-core", "google-closure-compiler"],
139-
schedule: ["on sunday and wednesday"],
140+
matchDepNames: ['renovate', 'quicktype-core', 'google-closure-compiler'],
141+
schedule: ['on sunday and wednesday'],
140142
},
141143

142144
// ============================================================================
@@ -146,42 +148,36 @@
146148
// Disable updates for placeholder or 0.0.0-style versions
147149
{
148150
enabled: false,
149-
matchCurrentVersion: "/^[~^]?0\\.0\\.0-/",
151+
matchCurrentVersion: '/^[~^]?0\\.0\\.0-/',
150152
},
151153

152154
// Disable major updates for specified dependencies
153155
{
154156
enabled: false,
155157
matchDepNames: [
156-
"@types/node",
157-
"node",
158-
"bazel", // bazelisk bazel version
159-
"npm",
160-
"rxjs",
161-
"tslib",
162-
"yarn",
158+
'@types/node',
159+
'node',
160+
'bazel', // bazelisk bazel version
161+
'npm',
162+
'rxjs',
163+
'tslib',
164+
'yarn',
163165
],
164-
matchUpdateTypes: ["major"],
166+
matchUpdateTypes: ['major'],
165167
},
166168

167169
// Disable TypeScript major and minor updates
168170
{
169171
enabled: false,
170-
matchDepNames: ["typescript"],
171-
matchUpdateTypes: ["major", "minor"],
172+
matchDepNames: ['typescript'],
173+
matchUpdateTypes: ['major', 'minor'],
172174
},
173175

174176
// Rule to disable major updates on branches other than 'main'.
175177
{
176178
enabled: false,
177-
matchBaseBranches: ["!main"],
178-
matchUpdateTypes: ["major"],
179-
},
180-
181-
// Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files.
182-
{
183-
postUpgradeTasks: { commands: [] },
184-
matchManagers: ["!npm", "!bazel", "!bazel-module", "!bazelisk"],
179+
matchBaseBranches: ['!main'],
180+
matchUpdateTypes: ['major'],
185181
},
186182
],
187183
}

0 commit comments

Comments
 (0)