1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-24 16:02:55 +02:00

Prettier JSON output

This commit is contained in:
Soreine
2016-10-25 11:19:54 +02:00
parent 400d49ccb3
commit c4a9badb73

View File

@@ -210,7 +210,7 @@ function exists(filepath) {
function save(results, path) {
path = resolve(process.cwd(), path)
fs.writeFileSync(path, JSON.stringify(results))
fs.writeFileSync(path, JSON.stringify(results, null, 2))
}
function serializeResult(event) {