Skip to content

Commit

Permalink
Add header to ReactAllWarnings Meta-only file (facebook#27819)
Browse files Browse the repository at this point in the history
Adds missing headers to the generated file.
  • Loading branch information
kassens authored and AndyPengc12 committed Apr 15, 2024
1 parent c021f79 commit 7eb742a
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 7eb742a

Please sign in to comment.