aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/compare_size.mjs
diff options
context:
space:
mode:
authorTimmy Willison <timmywil@users.noreply.github.com>2024-03-10 12:27:22 -0400
committerTimmy Willison <timmywil@users.noreply.github.com>2024-03-11 13:29:23 -0400
commit783c9d6958fd20a6a9a199aeecad605a59686992 (patch)
treeb73a3c6edb9b4dcf44049768e340ab454534f393 /build/tasks/compare_size.mjs
parent8a3a74c475f92148675af4ee3f77e3d1746e6e88 (diff)
downloadjquery-783c9d6958fd20a6a9a199aeecad605a59686992.tar.gz
jquery-783c9d6958fd20a6a9a199aeecad605a59686992.zip
Build: make compare size cache readable for manual edits
Ref gh-5440
Diffstat (limited to 'build/tasks/compare_size.mjs')
-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 ) {