Build: make compare size cache readable for manual edits

Ref gh-5441
This commit is contained in:
Timmy Willison 2024-03-10 12:27:22 -04:00
parent fa3f5603d8
commit b56c6a415e

View File

@ -60,7 +60,9 @@ function cacheResults( results ) {
} }
function saveCache( loc, cache ) { 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 ) { function compareSizes( existing, current, padLength ) {