From 7eb742a8e0539e3ba1b6f22c30e2a14ece6c6760 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 8 Dec 2023 13:44:20 -0500 Subject: [PATCH] Add header to ReactAllWarnings Meta-only file (#27819) Adds missing headers to the generated file. --- scripts/print-warnings/print-warnings.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/print-warnings/print-warnings.js b/scripts/print-warnings/print-warnings.js index 95cc882cb7724..a05c0700b89fb 100644 --- a/scripts/print-warnings/print-warnings.js +++ b/scripts/print-warnings/print-warnings.js @@ -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(