From: Timmy Willison Date: Sun, 10 Mar 2024 16:27:22 +0000 (-0400) Subject: Build: make compare size cache readable for manual edits X-Git-Tag: 4.0.0-beta.2~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=783c9d6958fd20a6a9a199aeecad605a59686992;p=jquery.git Build: make compare size cache readable for manual edits Ref gh-5440 --- 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 ) {