From 68e4ad4e9bee5ee486693b6df3755fcdddfeba9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= <jeremie@astori.fr> Date: Tue, 21 Feb 2023 08:42:44 -0500 Subject: [PATCH] feat(presets): group `@types/react` and `@types/react-dom` together, along with other React packages (#20462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Astori <jeremie@astori.fr> Co-authored-by: Rhys Arkins <rhys@arkins.net> --- lib/config/presets/internal/group.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/config/presets/internal/group.ts b/lib/config/presets/internal/group.ts index 6cba5a2e76..18a9bf8d2f 100644 --- a/lib/config/presets/internal/group.ts +++ b/lib/config/presets/internal/group.ts @@ -336,6 +336,15 @@ const staticGroups = { }, ], }, + react: { + description: 'Group React and corresponding `@types` packages together.', + packageRules: [ + { + groupName: 'react monorepo', + matchPackageNames: ['@types/react', '@types/react-dom'], + }, + ], + }, recommended: { description: 'Use curated list of recommended non-monorepo package groupings.', @@ -359,6 +368,7 @@ const staticGroups = { 'group:kubernetes', 'group:phpstan', 'group:polymer', + 'group:react', 'group:resilience4j', 'group:rubyOnRails', 'group:rubyOmniauth', -- GitLab