feat(presets): add Vite related packages and group rule (#26511)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
This commit is contained in:
Phil B 2024-02-18 09:01:52 -06:00 committed by GitHub
parent 76a4d17631
commit 077c2db074
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -790,6 +790,15 @@ const staticGroups = {
},
],
},
vite: {
description: 'Group all Vite related packages together.',
packageRules: [
{
extends: 'packages:vite',
groupName: 'Vite packages',
},
],
},
};
const config: any = { ...staticGroups };

View file

@ -144,4 +144,9 @@ export const presets: Record<string, Preset> = {
description: 'All unit test packages.',
extends: ['packages:jsUnitTest', 'packages:phpUnitTest'],
},
vite: {
description: 'All Vite related packages',
matchDatasources: ['npm'],
matchPackagePatterns: ['^vite$', 'vite-plugin', '@vitejs'],
},
};