mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 17:17:28 +02:00
Add newlines at end of generated files (#283)
This commit is contained in:
parent
ad8921950c
commit
d97e2e9d81
6 changed files with 17 additions and 8 deletions
|
@ -125,13 +125,16 @@ if (versionFallback.diffLatestSidebar()) {
|
|||
|
||||
fs.writeFileSync(
|
||||
CWD + '/versioned_sidebars/version-' + version + '-sidebars.json',
|
||||
JSON.stringify(versioned, null, 2),
|
||||
JSON.stringify(versioned, null, 2) + '\n',
|
||||
'utf8'
|
||||
);
|
||||
}
|
||||
|
||||
// update versions.json file
|
||||
versions.unshift(version);
|
||||
fs.writeFileSync(CWD + '/versions.json', JSON.stringify(versions, null, 2));
|
||||
fs.writeFileSync(
|
||||
CWD + '/versions.json',
|
||||
JSON.stringify(versions, null, 2) + '\n'
|
||||
);
|
||||
|
||||
console.log(`${chalk.green('Version ' + version + ' created!\n')}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue