Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed Jul 17, 2024
1 parent ababa81 commit da9d7f9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/config/presets/internal/monorepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ import type { Preset } from '../types';

export const presets: Record<string, Preset> = {};

for (const [name, value] of Object.entries(monorepoGroups.repoGroups ?? {})) {
for (const [name, value] of Object.entries(monorepoGroups.repoGroups)) {
presets[name] = {
description: `${name} monorepo`,
matchSourceUrls: toArray(value),
};
}

for (const [name, value] of Object.entries(monorepoGroups.orgGroups ?? {})) {
for (const [name, value] of Object.entries(monorepoGroups.orgGroups)) {
presets[name] = {
description: `${name} monorepo`,
matchSourceUrlPrefixes: toArray(value),
};
}

for (const [name, value] of Object.entries(
monorepoGroups.patternGroups ?? {},
)) {
for (const [name, value] of Object.entries(monorepoGroups.patternGroups)) {
presets[name] = {
description: `${name} monorepo`,
matchPackagePatterns: toArray(value),
Expand Down

0 comments on commit da9d7f9

Please sign in to comment.