diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-10 12:27:22 -0400 |
---|---|---|
committer | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-11 13:36:09 -0400 |
commit | b56c6a415e19e998b7ee34007fb9eaad32d1db2d (patch) | |
tree | 237e7aee562bdd0ca3b1a4e8fc137819188d9037 /build | |
parent | fa3f5603d839be497926f1b62edba442464c4366 (diff) | |
download | jquery-b56c6a415e19e998b7ee34007fb9eaad32d1db2d.tar.gz jquery-b56c6a415e19e998b7ee34007fb9eaad32d1db2d.zip |
Build: make compare size cache readable for manual edits
Ref gh-5441
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/compare_size.mjs | 4 |
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 ) { |