Skip to content

Commit

Permalink
fix(config/presets): ensure groups have packageRules (#33088)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Dec 14, 2024
1 parent 4c40e99 commit d898d7f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
13 changes: 13 additions & 0 deletions lib/config/presets/internal/group.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { presets } from './group';

const exceptions = new Set(['monorepos', 'recommended']);

describe('config/presets/internal/group', () => {
const presetNames = Object.keys(presets).filter(
(name) => !exceptions.has(name),
);

it.each(presetNames)('group:%s contains packageRules', (name: string) => {
expect(presets[name]).toHaveProperty('packageRules');
});
});
21 changes: 13 additions & 8 deletions lib/config/presets/internal/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,19 @@ const staticGroups = {
},
fusionjs: {
description: 'Group Fusion.js packages together.',
matchPackageNames: [
'fusion-cli',
'fusion-core',
'fusion-test-utils',
'fusion-tokens',
'fusion-plugin-**',
'fusion-react**',
'fusion-apollo**',
packageRules: [
{
groupName: 'Fusion.js packages',
matchPackageNames: [
'fusion-cli',
'fusion-core',
'fusion-test-utils',
'fusion-tokens',
'fusion-plugin-**',
'fusion-react**',
'fusion-apollo**',
],
},
],
},
githubArtifactActions: {
Expand Down

0 comments on commit d898d7f

Please sign in to comment.