From acc9da454c327ba89022feca62bea3bcd6a589a1 Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Sun, 3 Dec 2023 14:10:37 -0800 Subject: [PATCH] fix(Renovate): Correct some dependency types 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. --- default.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/default.json b/default.json index 6190a22..5d1085d 100644 --- a/default.json +++ b/default.json @@ -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" @@ -93,7 +97,7 @@ "github>(?ScribeMD/\\.github)#(?(\\d+\\.){2}\\d+)" ], "datasourceTemplate": "github-tags", - "depTypeTemplate": "engines" + "depTypeTemplate": "config" }, { "customType": "regex", @@ -125,7 +129,7 @@ ], "packageNameTemplate": "asdf-vm/asdf", "datasourceTemplate": "github-tags", - "depTypeTemplate": "engines", + "depTypeTemplate": "packageManager", "extractVersionTemplate": "^v(?.*)$" }, { @@ -145,7 +149,7 @@ "matchStrings": ["(?yarn)\\s+(?(\\d+\\.){2}\\d+)"], "packageNameTemplate": "yarnpkg/yarn", "datasourceTemplate": "github-tags", - "depTypeTemplate": "engines", + "depTypeTemplate": "packageManager", "extractVersionTemplate": "^v(?.*)$" }, { @@ -195,7 +199,7 @@ "https://raw\\.githubusercontent\\.com/(?[^/]+/[^/]+)/v?(?(\\d+\\.){2}\\d+)" ], "datasourceTemplate": "github-tags", - "depTypeTemplate": "devDependencies", + "depTypeTemplate": "config", "extractVersionTemplate": "^v?(?.*)$" }, {