Skip to content

Commit

Permalink
chore(renovate): audit renovate.json (#8856)
Browse files Browse the repository at this point in the history
I'm in the process of improving our renovate config. I decided to start
by auditing the `renovate.json` file:

- instead of manually listing every redwoodjs package, use a pattern.
this'll save us from having to manually add new ones
- some dependencies don't need to be ignored anymore; I removed them
from the ignore list and upgraded them
- some ignored dependencies aren't even in the framework anymore
- some ignored dependencies had a patch we could upgrade to so I did so
  • Loading branch information
jtoar authored Jul 8, 2023
1 parent 4642046 commit 2d1a982
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 264 deletions.
76 changes: 32 additions & 44 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,43 @@
{
"extends": ["config:base"],
"postUpdateOptions": ["yarnDedupeHighest"],
"assignees": ["@jtoar"],
"labels": ["release:chore"],
"$schema": "https://docs.renovatebot.com/renovate-schema.json",

"extends": [
"config:base"
],

"postUpdateOptions": [
"yarnDedupeHighest"
],

"packageRules": [
{
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true
},

{
"matchPackageNames": [
"boxen",
"chalk",
"camelcase",
"configstore",
"decamelize",
"execa",
"humanize-string",
"latest-version",
"pascalcase",
"pretty-bytes",
"pretty-ms",
"tempy",
"terminal-link"
],
"matchPackagePatterns": [
"^@redwoodjs/"
],
"enabled": false
}
],
"ignoreDeps": [
"boxen",
"configstore",
"decamelize",
"execa",
"humanize-string",
"latest-version",
"ora",
"tempy",
"terminal-link",
"chalk",
"pascalcase",
"@redwoodjs/api",
"@redwoodjs/api-server",
"@redwoodjs/auth",
"@redwoodjs/cli",
"@redwoodjs/codemods",
"@redwoodjs/core",
"@redwoodjs/create-redwood-app",
"@redwoodjs/eslint-config",
"@redwoodjs/forms",
"@redwoodjs/graphql-server",
"@redwoodjs/internal",
"@redwoodjs/prerender",
"@redwoodjs/project-config",
"@redwoodjs/record",
"@redwoodjs/router",
"@redwoodjs/structure",
"@redwoodjs/telemetry",
"@redwoodjs/testing",
"@redwoodjs/web",
"lru-cache",
"@types/lru-cache",
"pretty-bytes",
"is-port-reachable",
"pretty-ms",
"camelcase",
"sort-package-json",
"@redwoodjs/vite"
]
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"eslint": "8.43.0",
"fast-glob": "3.2.12",
"fs-extra": "11.1.1",
"is-port-reachable": "3.1.0",
"jest": "29.5.0",
"jest-runner-tsd": "5.0.0",
"jscodeshift": "0.15.0",
Expand All @@ -92,7 +91,7 @@
"nx": "16.4.1",
"nx-cloud": "16.0.5",
"octokit": "2.1.0",
"ora": "5.4.1",
"ora": "6.3.1",
"prompts": "2.4.2",
"rimraf": "5.0.1",
"typescript": "5.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"core-js": "3.31.1",
"cross-env": "7.0.3",
"crypto-js": "4.1.1",
"decamelize": "5.0.0",
"decamelize": "5.0.1",
"dotenv-defaults": "5.0.2",
"enquirer": "2.3.6",
"envinfo": "7.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@babel/core": "7.22.8",
"@types/fs-extra": "11.0.1",
"@types/lodash": "4.14.195",
"@types/lru-cache": "5.1.1",
"@types/lru-cache": "7.10.10",
"@types/node": "18.16.18",
"@types/vscode": "1.79.1",
"jest": "29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"graphql": "16.7.1",
"graphql-scalars": "1.22.2",
"json-bigint-patch": "0.0.8",
"pretty-ms": "7.0.0",
"pretty-ms": "7.0.1",
"react": "18.3.0-canary-035a41c4e-20230704",
"react-dom": "18.3.0-canary-035a41c4e-20230704",
"react-error-boundary": "4.0.10",
Expand Down
10 changes: 5 additions & 5 deletions packages/studio/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,7 @@ __metadata:
graphql-scalars: 1.22.2
json-bigint-patch: 0.0.8
postcss: 8.4.24
pretty-ms: 7.0.0
pretty-ms: 7.0.1
react: 18.3.0-canary-035a41c4e-20230704
react-dom: 18.3.0-canary-035a41c4e-20230704
react-error-boundary: 4.0.10
Expand Down Expand Up @@ -3446,12 +3446,12 @@ __metadata:
languageName: node
linkType: hard

"pretty-ms@npm:7.0.0":
version: 7.0.0
resolution: "pretty-ms@npm:7.0.0"
"pretty-ms@npm:7.0.1":
version: 7.0.1
resolution: "pretty-ms@npm:7.0.1"
dependencies:
parse-ms: ^2.1.0
checksum: c5159f67d0e329d77a567fef6cc6574582eebd825afb161e214992c7264eb2cb3caa5b34a080487e823f5f01a5294e4bdf9ccf50b67641211b44c9de54e35905
checksum: 069aec9d939e7903846b3db53b020bed92e3dc5909e0fef09ec8ab104a0b7f9a846605a1633c60af900d288582fb333f6f30469e59d6487a2330301fad35a89c
languageName: node
linkType: hard

Expand Down
2 changes: 1 addition & 1 deletion tasks/check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"dependencies": {
"@actions/core": "1.10.0",
"@actions/exec": "1.1.1",
"sort-package-json": "1.57.0"
"sort-package-json": "2.5.0"
}
}
Loading

0 comments on commit 2d1a982

Please sign in to comment.