Skip to content

Commit

Permalink
fix: reduce size of serialized JSON output (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
skimi authored Jun 26, 2024
1 parent b6a9484 commit ae657b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
})

0 comments on commit ae657b6

Please sign in to comment.