Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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