From 783c9d6958fd20a6a9a199aeecad605a59686992 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Sun, 10 Mar 2024 12:27:22 -0400 Subject: [PATCH] Build: make compare size cache readable for manual edits Ref gh-5440 --- build/tasks/compare_size.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5