WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bcaa42c

Browse files
fix: rendering to handle CI env
1 parent 6ac6707 commit bcaa42c

File tree

7 files changed

+371
-138
lines changed

7 files changed

+371
-138
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"expect-type": "^1.2.2",
5757
"fs-fixture": "^2.10.1",
5858
"lintroll": "^1.24.0",
59-
"manten": "^1.5.0",
59+
"manten": "^1.9.0",
6060
"nano-spawn": "^2.0.0",
6161
"p-map": "^5.3.0",
6262
"patch-console": "^2.0.0",

pnpm-lock.yaml

Lines changed: 107 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,16 @@ const registerTask = <T>(
100100
taskList.splice(index, 1);
101101
}
102102

103-
// Trigger a render to update the display
104103
if (renderer) {
105-
renderer.triggerRender();
106-
}
107-
108-
if (taskList.isRoot && taskList.length === 0 && renderer) {
109-
renderer.destroy();
110-
renderer = undefined;
104+
if (taskList.isRoot && taskList.length === 0) {
105+
// Final render to clear output before destroying
106+
renderer.renderFinal();
107+
renderer.destroy();
108+
renderer = undefined;
109+
} else {
110+
// Normal render for non-final clear
111+
renderer.triggerRender();
112+
}
111113
}
112114
},
113115
};

0 commit comments

Comments
 (0)