diff --git a/packages/community-cli-plugin/index.js.flow b/packages/community-cli-plugin/index.js.flow deleted file mode 100644 index 17ae7ce0503..00000000000 --- a/packages/community-cli-plugin/index.js.flow +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 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 - * @format - * @oncall react_native - */ - -export * from './src'; diff --git a/packages/dev-middleware/index.js.flow b/packages/dev-middleware/index.js.flow deleted file mode 100644 index 17ae7ce0503..00000000000 --- a/packages/dev-middleware/index.js.flow +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 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 - * @format - * @oncall react_native - */ - -export * from './src'; diff --git a/packages/react-native-compatibility-check/index.js.flow b/packages/react-native-compatibility-check/index.js.flow deleted file mode 100644 index 17ae7ce0503..00000000000 --- a/packages/react-native-compatibility-check/index.js.flow +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 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 - * @format - * @oncall react_native - */ - -export * from './src'; diff --git a/scripts/build/README.md b/scripts/build/README.md index fffc6cb9210..03938167d61 100644 --- a/scripts/build/README.md +++ b/scripts/build/README.md @@ -72,13 +72,11 @@ packages/ index.js # Entry point wrapper file (calls babel-register.js) (compiled away) index.flow.js # Entry point implementation in Flow [other files] - index.js.flow # Shim for the Flow typechecker package.json # Includes "exports" field, ideally only src/index.js ``` Notes: -- The additional root `index.js.flow` shim is needed due to Flow itself not supporting Package Exports. - To minimize complexity, prefer only a single entry of `{".": "src/index.js"}` in `"exports"` for new packages. ## Build behavior