Skip to content

Commit 7eb742a

Browse files
kassensAndyPengc12
authored andcommitted
Add header to ReactAllWarnings Meta-only file (facebook#27819)
Adds missing headers to the generated file.
1 parent c021f79 commit 7eb742a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

scripts/print-warnings/print-warnings.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,19 @@ gs([
7979
const warningsArray = Array.from(warnings);
8080
warningsArray.sort();
8181
process.stdout.write(
82-
`export default ${JSON.stringify(warningsArray, null, 2)};\n`
82+
`/**
83+
* Copyright (c) Meta Platforms, Inc. and affiliates.
84+
*
85+
* This source code is licensed under the MIT license found in the
86+
* LICENSE file in the root directory of this source tree.
87+
*
88+
* @flow strict
89+
* @noformat
90+
* @oncall react_core
91+
*/
92+
93+
export default ${JSON.stringify(warningsArray, null, 2)};
94+
`
8395
);
8496
} else {
8597
process.stdout.write(

0 commit comments

Comments
 (0)