Skip to content

Commit

Permalink
perf(projects): perf code
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jul 27, 2023
1 parent 731ffe6 commit ee804f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import cliProgress from 'cli-progress';
import type { SingleBar } from 'cli-progress';
import { SingleBar, Presets } from 'cli-progress';
import { createOptions } from './options';
import { getFromToTags, getGitCommits, getGitCommitsAndResolvedAuthors } from './git';
import { isVersionInMarkdown, generateMarkdown, writeMarkdown } from './markdown';
Expand Down Expand Up @@ -30,9 +29,9 @@ export async function getTotalChangelogMarkdown(options?: Partial<ChangelogOptio

let bar: SingleBar | null = null;
if (showProgress) {
bar = new cliProgress.SingleBar(
bar = new SingleBar(
{ format: 'generate total changelog: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}' },
cliProgress.Presets.shades_classic
Presets.shades_classic
);
}

Expand Down

0 comments on commit ee804f9

Please sign in to comment.