Skip to content

Commit a4cb568

Browse files
committed
refactor: remove unnecessary verbose utils
1 parent 21a1f25 commit a4cb568

File tree

4 files changed

+3
-71
lines changed

4 files changed

+3
-71
lines changed

packages/core/src/lib/collect-and-persist.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ import {
33
type PersistConfig,
44
pluginReportSchema,
55
} from '@code-pushup/models';
6-
import {
7-
logStdoutSummary,
8-
scoreReport,
9-
sortReport,
10-
verboseUtils,
11-
} from '@code-pushup/utils';
6+
import { logStdoutSummary, scoreReport, sortReport } from '@code-pushup/utils';
127
import { collect } from './implementation/collect.js';
138
import {
149
logPersistedResults,
@@ -24,8 +19,6 @@ export type CollectAndPersistReportsOptions = Pick<
2419
export async function collectAndPersistReports(
2520
options: CollectAndPersistReportsOptions,
2621
): Promise<void> {
27-
const { exec } = verboseUtils(options.verbose);
28-
2922
const report = await collect(options);
3023
const sortedScoredReport = sortReport(scoreReport(report));
3124

@@ -38,9 +31,9 @@ export async function collectAndPersistReports(
3831
// terminal output
3932
logStdoutSummary(sortedScoredReport, options.verbose);
4033

41-
exec(() => {
34+
if (options.verbose) {
4235
logPersistedResults(persistResults);
43-
});
36+
}
4437

4538
// validate report and throw if invalid
4639
report.plugins.forEach(plugin => {

packages/utils/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,5 @@ export type {
129129
WithRequired,
130130
CamelCaseToKebabCase,
131131
} from './lib/types.js';
132-
export { verboseUtils } from './lib/verbose-utils.js';
133132
export { parseSchema, SchemaValidationError } from './lib/zod-validation.js';
134133
export { createRunnerFiles } from './lib/create-runner-files.js';

packages/utils/src/lib/verbose-utils.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/utils/src/lib/verbose-utils.unit.test.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)