Skip to content

Commit 4319a6d

Browse files
GatsbyJS Botwardpeet
andauthored
chore: renovate - don't include monorepo packages in preMinors (#32201) (#32313)
(cherry picked from commit db7dab0) Co-authored-by: Ward Peeters <ward@coding-tech.com>
1 parent 808f32f commit 4319a6d

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ aliases:
3636
validate_renovate: &validate_renovate
3737
run:
3838
name: Validate renovate-config
39-
command: (node scripts/renovate-config-generator.js && (git status --porcelain renovate.json5 | grep "M renovate.json5")) && exit 1 || npx -p renovate renovate-config-validator .
39+
command: (node scripts/renovate-config-generator.js && (git status --porcelain renovate.json5 | grep "M renovate.json5")) && (echo "Please run \"node scripts/renovate-config-generator.js\" to update renovate.json5" && exit 1) || npx -p renovate renovate-config-validator .
4040

4141
persist_cache: &persist_cache
4242
save_cache:

renovate.json5

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,6 @@
14961496
"groupName": "minor and patch dependencies for gatsby-cli",
14971497
"groupSlug": "gatsby-cli-prod-minor",
14981498
"matchPackageNames": [
1499-
"gatsby-recipes",
15001499
"is-valid-path",
15011500
"opentracing",
15021501
"stack-trace"
@@ -1534,7 +1533,6 @@
15341533
"groupName": "major dependencies for gatsby-cli",
15351534
"groupSlug": "gatsby-cli-prod-major",
15361535
"matchPackageNames": [
1537-
"gatsby-recipes",
15381536
"is-valid-path",
15391537
"opentracing",
15401538
"stack-trace"

scripts/renovate-config-generator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ monorepoPackages.forEach(pkg => {
189189

190190
for (const dep in pkgJson.dependencies) {
191191
if (
192+
!monorepoPackages.includes(dep) &&
192193
pkgJson.dependencies[dep] &&
193194
(pkgJson.dependencies[dep].startsWith(`~0.`) ||
194195
pkgJson.dependencies[dep].startsWith(`^0.`))

0 commit comments

Comments
 (0)