Skip to content

Commit aca64b7

Browse files
authored
chore: Add constraints to renovate (#37047)
initial
1 parent f94db78 commit aca64b7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

renovate.json5

+7-3
Original file line numberDiff line numberDiff line change
@@ -29498,7 +29498,6 @@
2949829498
"@pmmmwh/react-refresh-webpack-plugin",
2949929499
"axios",
2950029500
"cookie",
29501-
"express-graphql",
2950229501
"json-loader",
2950329502
"memoizee",
2950429503
"opentracing",
@@ -29557,7 +29556,6 @@
2955729556
"@pmmmwh/react-refresh-webpack-plugin",
2955829557
"axios",
2955929558
"cookie",
29560-
"express-graphql",
2956129559
"json-loader",
2956229560
"memoizee",
2956329561
"opentracing",
@@ -29603,5 +29601,11 @@
2960329601
"commitMessageSuffix": "{{#unless groupName}} for gatsby{{/unless}}",
2960429602
"dependencyDashboardApproval": true
2960529603
}
29606-
]
29604+
],
29605+
"force": {
29606+
"constraints": {
29607+
"node": ">=18.0.0",
29608+
"npm": ">=8.0.0"
29609+
}
29610+
}
2960729611
}

scripts/renovate-config-generator.js

+6
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ const renovateConfig = {
386386
packageRules: defaultPackageRules.concat(
387387
Array.from(packageRules.values()).flat()
388388
),
389+
force: {
390+
constraints: {
391+
node: `>=18.0.0`,
392+
npm: `>=8.0.0`,
393+
},
394+
},
389395
}
390396

391397
fs.writeJSONSync(path.join(ROOT_DIR, `renovate.json5`), renovateConfig, {

0 commit comments

Comments
 (0)