From ae657b66264fe7c19a710271510e41b94a152cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gebski?= Date: Wed, 26 Jun 2024 16:11:10 +0200 Subject: [PATCH] fix: reduce size of serialized JSON output (#1570) --- lib/commands/merge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/merge.js b/lib/commands/merge.js index 0aefd11ec..758c6f536 100644 --- a/lib/commands/merge.js +++ b/lib/commands/merge.js @@ -41,6 +41,6 @@ exports.handler = cliWrapper(async argv => { } await makeDir(path.dirname(argv.outputFile)) const map = await nyc.getCoverageMapFromAllCoverageFiles(argv.inputDirectory) - await fs.writeFile(argv.outputFile, JSON.stringify(map, null, 2), 'utf8') + await fs.writeFile(argv.outputFile, JSON.stringify(map), 'utf8') console.info(`coverage files in ${argv.inputDirectory} merged into ${argv.outputFile}`) })