From f6c1276231b27faa4849927f19548b8479e25bb7 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 8 Dec 2023 13:23:29 -0500 Subject: [PATCH] Add header to ReactAllWarnings Meta-only 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(