Adjust sort rewrite (newline) (#43)

* Adjust sort rewrite (newline)

* Updat js-yaml
This commit is contained in:
Jaco Greeff authored and GitHub committed 2021-01-06 12:18:42 +01:00
1 parent ab30e9c33e
commit 4cf633a0c2
5 files changed
+90 -90

No files matched your search

+1 -1
View File
@@ -11,4 +11,4 @@ const original = JSON.parse(fs.readFileSync('all.json', 'utf-8'));
const allow = sortSection(original.allow);
const deny = sortSection(original.deny);
fs.writeFileSync('all.json', JSON.stringify({ allow, deny }, null, 2));
fs.writeFileSync('all.json', `${JSON.stringify({ allow, deny }, null, 2)}\n`);