Skip to content

Commit

Permalink
refactor(cli): adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Mar 7, 2024
1 parent da71535 commit de4f5e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/lib/history/history-command.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('history-command', () => {
beforeEach(() => {
vol.fromJSON(
{
'code-pushup.config.ts': '', // only needs to exist for stat inside readCodePushupConfig
'code-pushup.config.ts': '', // only needs to exist for stat call inside readRcPath
},
'/test',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/history/history.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { HistoryOnlyOptions } from '@code-pushup/core';

export type HistoryCliOptions = {
targetBranch?: string;
} & LogOptions &
} & Pick<LogOptions, 'maxCount' | 'from' | 'to'> &
Required<HistoryOnlyOptions>;
2 changes: 1 addition & 1 deletion packages/cli/src/lib/history/history.options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function yargsHistoryOptionsDefinition(): Record<
describe: 'Folder to restore using "git restore [folder]"',
type: 'boolean',
},
skipUpload: {
skipUploads: {
describe: 'Upload created reports',
type: 'boolean',
default: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/implementation/persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function persistReport(
const { outputDir, filename, format } = options;

const sortedScoredReport = sortReport(scoreReport(report));
console.warn(generateStdoutSummary(sortedScoredReport));
console.info(generateStdoutSummary(sortedScoredReport));

// collect physical format outputs
const results = format.map(reportType => {
Expand Down

0 comments on commit de4f5e4

Please sign in to comment.