Skip to content

Commit

Permalink
Add header to ReactAllWarnings Meta-only file (#27819)
Browse files Browse the repository at this point in the history
Adds missing headers to the generated file.
  • Loading branch information
kassens authored Dec 8, 2023
1 parent d3ed07b commit 8ff2c23
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/print-warnings/print-warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,19 @@ gs([
const warningsArray = Array.from(warnings);
warningsArray.sort();
process.stdout.write(
`export default ${JSON.stringify(warningsArray, null, 2)};\n`
`/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @noformat
* @oncall react_core
*/
export default ${JSON.stringify(warningsArray, null, 2)};
`
);
} else {
process.stdout.write(
Expand Down

0 comments on commit 8ff2c23

Please sign in to comment.