From 50f87c21eadfd12116a14af0d0020b42461b195c Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 13 Apr 2025 09:04:13 -0400 Subject: [PATCH] [mv3] Provide console feedback that work is ongoing when building --- platform/mv3/make-rulesets.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/mv3/make-rulesets.js b/platform/mv3/make-rulesets.js index 37739c582..93b1f0ede 100644 --- a/platform/mv3/make-rulesets.js +++ b/platform/mv3/make-rulesets.js @@ -114,6 +114,9 @@ const urlToFileName = url => { const fetchText = (url, cacheDir) => { return new Promise((resolve, reject) => { + process.stdout.clearLine(); + process.stdout.cursorTo(0); + process.stdout.write(`Fetching ${url}`); const fname = urlToFileName(url); fs.readFile(`${cacheDir}/${fname}`, { encoding: 'utf8' }).then(content => { log(`\tFetched local ${url}`); @@ -1570,6 +1573,9 @@ async function main() { homeURL: 'https://github.com/sander85/uBOL-et', }); + process.stdout.clearLine(); + process.stdout.cursorTo(0); + writeFile( `${rulesetDir}/ruleset-details.json`, `${JSON.stringify(rulesetDetails, null, 1)}\n`