From 1d8d3c8ecc010b59e81ffe436401c9af541d6302 Mon Sep 17 00:00:00 2001 From: jiaojiaodubai <63148861+jiaojiaodubai@users.noreply.github.com> Date: Tue, 11 Jun 2024 00:09:54 +0800 Subject: [PATCH] Using single line JSON --- data/updateJSON.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/updateJSON.js b/data/updateJSON.js index 697a3f1..ccc04e6 100644 --- a/data/updateJSON.js +++ b/data/updateJSON.js @@ -69,9 +69,9 @@ fs.writeFileSync( JSON.stringify( Object.fromEntries(Object.entries(labelMap).sort((a, b) => a[0].localeCompare(b[0]))), null, - 2 + 0 ) ); -fs.writeFileSync(`${repo}/data/translators.json`, JSON.stringify(updateTimeMap, null, 2)); -fs.writeFileSync(`${repo}/data/dashboard.json`, JSON.stringify(translators, null, 2)); +fs.writeFileSync(`${repo}/data/translators.json`, JSON.stringify(updateTimeMap, null, 0)); +fs.writeFileSync(`${repo}/data/dashboard.json`, JSON.stringify(translators, null, 0)); })();