You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/07/29 11:04:23 UTC
[echarts-www] branch master updated: fix log
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-www.git
The following commit(s) were added to refs/heads/master by this push:
new 976f91d fix log
976f91d is described below
commit 976f91d5a029d18b4449214c0f5fbb3854f947af
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Jul 29 19:04:12 2021 +0800
fix log
---
bin/build.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/bin/build.js b/bin/build.js
index 9af406f..a9a3953 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -528,8 +528,13 @@ async function buildSpreadsheet(config) {
}
function replaceLog(log) {
- readline.cursorTo(process.stdout, 0);
- process.stdout.write(log);
+ if (process.stdout.clearLine) {
+ readline.cursorTo(process.stdout, 0);
+ process.stdout.write(log);
+ }
+ else {
+ console.log(log);
+ }
}
async function run() {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org