mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
Split out @generated string (#553)
Nuclide treats files with @generated as read-only. This can fix that.
This commit is contained in:
parent
3486e1113f
commit
86edbec1d0
1 changed files with 4 additions and 2 deletions
|
@ -331,7 +331,8 @@ function generateMetadataDocs() {
|
|||
fs.writeFileSync(
|
||||
__dirname + '/../core/metadata.js',
|
||||
'/**\n' +
|
||||
' * @generated\n' +
|
||||
' * @' +
|
||||
'generated\n' + // separate this out for Nuclide treating @generated as readonly
|
||||
' */\n' +
|
||||
'module.exports = ' +
|
||||
JSON.stringify(metadatas, null, 2) +
|
||||
|
@ -397,7 +398,8 @@ function generateMetadataBlog() {
|
|||
fs.writeFileSync(
|
||||
__dirname + '/../core/MetadataBlog.js',
|
||||
'/**\n' +
|
||||
' * @generated\n' +
|
||||
' * @' +
|
||||
'generated\n' + // separate this out for Nuclide treating @generated as readonly
|
||||
' */\n' +
|
||||
'module.exports = ' +
|
||||
JSON.stringify(sortedMetadatas, null, 2) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue