Skip to content

Commit 1bcc72b

Browse files
authored
fix: add trailing line feed to formatted JSON (#623)
1 parent e798b77 commit 1bcc72b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function writeFile(file, content) {
2020
};
2121

2222
export function writeJson(file, obj) {
23-
writeFile(file, JSON.stringify(obj, null, 2));
23+
writeFile(file, `${JSON.stringify(obj, null, 2)}\n`);
2424
};
2525

2626
export function readFile(file) {

0 commit comments

Comments
 (0)