From 0593ef5e2f156079894d7c3c97966ee7f16d5382 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 28 Sep 2026 10:03:10 -0700 Subject: [PATCH] Add missing copyright headers to Metro Flow libdefs (#1991) Summary: Pull Request resolved: https://github.com/react/metro/pull/1991 X-link: https://github.com/react/react-native/pull/58722 Add Metro's standard open-source MIT copyright header to three Flow library definitions flagged by the copyright-header check. Replace the internal-only header in strip-ansi with the open-source variant, and keep overlapping React Native Flow definitions synchronized. ## Changelog: [Internal] - Reviewed By: cortinico Differential Revision: D122172879 --- flow-typed/npm/react-test-renderer_v16.x.x.js | 7 +++++++ flow-typed/npm/strip-ansi_v3.x.x.js | 5 ++++- flow-typed/npm/yargs_v17.x.x.js | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js index 067a36f547..e5af4f1c2d 100644 --- a/flow-typed/npm/react-test-renderer_v16.x.x.js +++ b/flow-typed/npm/react-test-renderer_v16.x.x.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + // Type definitions for react-test-renderer 16.x.x // Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer diff --git a/flow-typed/npm/strip-ansi_v3.x.x.js b/flow-typed/npm/strip-ansi_v3.x.x.js index 8ee8aeba56..253bc32599 100644 --- a/flow-typed/npm/strip-ansi_v3.x.x.js +++ b/flow-typed/npm/strip-ansi_v3.x.x.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * 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-local * @format diff --git a/flow-typed/npm/yargs_v17.x.x.js b/flow-typed/npm/yargs_v17.x.x.js index cf04fbf5f3..07077c11f2 100644 --- a/flow-typed/npm/yargs_v17.x.x.js +++ b/flow-typed/npm/yargs_v17.x.x.js @@ -1,3 +1,10 @@ +/** + * 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-typed version: f7c859e705/yargs_v17.x.x/flow_>=v0.104.x declare module 'yargs' {