Adjust sort rewrite (newline) (#43)

* Adjust sort rewrite (newline)

* Updat js-yaml
This commit is contained in:
Jaco Greeff
2021-01-06 12:18:42 +01:00
committed by GitHub
parent ab30e9c33e
commit 4cf633a0c2
5 changed files with 90 additions and 90 deletions
+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`);