Skip to content

Commit ae657b6

Browse files
authored
fix: reduce size of serialized JSON output (#1570)
1 parent b6a9484 commit ae657b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/merge.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ exports.handler = cliWrapper(async argv => {
4141
}
4242
await makeDir(path.dirname(argv.outputFile))
4343
const map = await nyc.getCoverageMapFromAllCoverageFiles(argv.inputDirectory)
44-
await fs.writeFile(argv.outputFile, JSON.stringify(map, null, 2), 'utf8')
44+
await fs.writeFile(argv.outputFile, JSON.stringify(map), 'utf8')
4545
console.info(`coverage files in ${argv.inputDirectory} merged into ${argv.outputFile}`)
4646
})

0 commit comments

Comments
 (0)