aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/tasks/compare_size.mjs4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/tasks/compare_size.mjs b/build/tasks/compare_size.mjs
index 554b1087a..a94cf42f0 100644
--- a/build/tasks/compare_size.mjs
+++ b/build/tasks/compare_size.mjs
@@ -60,7 +60,9 @@ function cacheResults( results ) {
}
function saveCache( loc, cache ) {
- return fs.writeFile( loc, JSON.stringify( cache ) );
+
+ // Keep cache readable for manual edits
+ return fs.writeFile( loc, JSON.stringify( cache, null, " " ) + "\n" );
}
function compareSizes( existing, current, padLength ) {