From c2b86ca0ae0cfb9b7839dea1404f8a1d47bf46b6 Mon Sep 17 00:00:00 2001 From: Kazushi Konosu Date: Sun, 15 Sep 2024 22:28:50 +0900 Subject: [PATCH] polish: only clear output when writing to stdout --- lib/util/CliEditTracker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/util/CliEditTracker.ts b/lib/util/CliEditTracker.ts index 7b03742..c14af37 100644 --- a/lib/util/CliEditTracker.ts +++ b/lib/util/CliEditTracker.ts @@ -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(