Build: make compare size cache readable for manual edits

Ref gh-5440
This commit is contained in:
Timmy Willison 2024-03-10 12:27:22 -04:00
parent 8a3a74c475
commit 783c9d6958

View File

@ -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 ) {