Add header to ReactAllWarnings Meta-only file (#27819)
Adds missing headers to the generated file.
Jan Kassens committed
Dec 8, 2023 at 13:44 UTC
8ff2c236a233a78c18d6f524dd74baec9153fd37
1 file changed
+13
-1
scripts/print-warnings/print-warnings.js
+13
-1
@@ -79,7 +79,19 @@ gs([
79
const warningsArray = Array.from(warnings);
80
warningsArray.sort();
81
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
+`
95
);
96
} else {
97
process.stdout.write(