Skip to content

Commit

Permalink
polish: only clear output when writing to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
kazushisan committed Sep 15, 2024
1 parent d8ccc4d commit c2b86ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/CliEditTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export class CliEditTracker implements EditTracker {
status: 'done',
});

this.clearProgressOutput();
if (item.removedExports.length > 0) {
this.clearProgressOutput();
}
for (const { position, code } of item.removedExports) {
this.#logger.write(
`${chalk.yellow('export')} ${file}:${chalk.gray(
Expand Down

0 comments on commit c2b86ca

Please sign in to comment.