mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
refactor: print trailing new line when outputting JSON (#6186)
* refactor(core): print trailing new line when writing translation * Print these as well
This commit is contained in:
parent
a17deb6aa2
commit
1460f867d0
3 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ async function updatePkg(pkgPath: string, obj: Record<string, unknown>) {
|
|||
const pkg = JSON.parse(content);
|
||||
const newPkg = Object.assign(pkg, obj);
|
||||
|
||||
await fs.outputFile(pkgPath, JSON.stringify(newPkg, null, 2));
|
||||
await fs.outputFile(pkgPath, `${JSON.stringify(newPkg, null, 2)}\n`);
|
||||
}
|
||||
|
||||
function readTemplates(templatesDir: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue