Skip to content

Commit

Permalink
fix(Renovate): Correct some dependency types
Browse files Browse the repository at this point in the history
The npm manager considers Yarn v2+ to be of type `packageManager` rather
than `engines`, so follow that convention for asdf and Yarn v1.

Introduce the new `depType` `config` for the centralized MegaLinter and
Renovate configs as well as Yarn plugins. Use the commit scope `config`
when bumping these dependencies. The centralized MegaLinter and Renovate
configs are both governed by the same dependency, namely this repository
itself, so using different types resulted in a duplicate row in the pull
request descriptions generated by Renovate.
  • Loading branch information
Kurt-von-Laven committed Dec 5, 2023
1 parent 40a1dea commit acc9da4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"schedule": ["on the 29th day of February in 1970"]
},
"packageRules": [
{
"matchDepTypes": ["config"],
"semanticCommitScope": "config"
},
{
"matchDepTypes": ["dev-dependencies", "devDependencies"],
"semanticCommitScope": "deps-dev"
Expand Down Expand Up @@ -93,7 +97,7 @@
"github>(?<depName>ScribeMD/\\.github)#(?<currentValue>(\\d+\\.){2}\\d+)"
],
"datasourceTemplate": "github-tags",
"depTypeTemplate": "engines"
"depTypeTemplate": "config"
},
{
"customType": "regex",
Expand Down Expand Up @@ -125,7 +129,7 @@
],
"packageNameTemplate": "asdf-vm/asdf",
"datasourceTemplate": "github-tags",
"depTypeTemplate": "engines",
"depTypeTemplate": "packageManager",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
Expand All @@ -145,7 +149,7 @@
"matchStrings": ["(?<depName>yarn)\\s+(?<currentValue>(\\d+\\.){2}\\d+)"],
"packageNameTemplate": "yarnpkg/yarn",
"datasourceTemplate": "github-tags",
"depTypeTemplate": "engines",
"depTypeTemplate": "packageManager",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
Expand Down Expand Up @@ -195,7 +199,7 @@
"https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/v?(?<currentValue>(\\d+\\.){2}\\d+)"
],
"datasourceTemplate": "github-tags",
"depTypeTemplate": "devDependencies",
"depTypeTemplate": "config",
"extractVersionTemplate": "^v?(?<version>.*)$"
},
{
Expand Down

0 comments on commit acc9da4

Please sign in to comment.