From c9b3aedd006bd9bffbf24f7f68010f65cc09c7c5 Mon Sep 17 00:00:00 2001
From: Alex Hunt <hello@alexhunt.io>
Date: Fri, 11 Aug 2023 18:23:59 +0100
Subject: [PATCH] breaking: Delete source for cli-plugin-metro, remove from
 builtin commands

---
 CONTRIBUTING.md                               |   2 +-
 docs/commands.md                              |   6 +-
 packages/cli-doctor/tsconfig.json             |   1 -
 packages/cli-platform-android/tsconfig.json   |   1 -
 packages/cli-plugin-metro/CHANGELOG.md        |  24 --
 packages/cli-plugin-metro/README.md           | 207 +---------------
 packages/cli-plugin-metro/package.json        |  23 +-
 .../src/commands/bundle/__mocks__/sign.js     |  14 --
 .../filterPlatformAssetScales-test.ts         |  40 ----
 .../__tests__/getAssetDestPathAndroid-test.ts |  85 -------
 .../__tests__/getAssetDestPathIOS-test.ts     |  56 -----
 .../src/commands/bundle/assetCatalogIOS.ts    |  73 ------
 .../src/commands/bundle/assetPathUtils.ts     |  89 -------
 .../src/commands/bundle/buildBundle.ts        | 120 ----------
 .../src/commands/bundle/bundle.ts             |  35 ---
 .../commands/bundle/bundleCommandLineArgs.ts  | 126 ----------
 .../bundle/filterPlatformAssetScales.ts       |  42 ----
 .../bundle/getAssetDestPathAndroid.ts         |  21 --
 .../commands/bundle/getAssetDestPathIOS.ts    |  24 --
 .../src/commands/bundle/index.ts              |   4 -
 .../src/commands/bundle/ramBundle.ts          |  34 ---
 .../src/commands/bundle/saveAssets.ts         | 135 -----------
 .../cli-plugin-metro/src/commands/index.ts    |   6 -
 .../src/commands/start/index.ts               |  92 --------
 .../src/commands/start/runServer.ts           | 180 --------------
 .../src/commands/start/watchMode.ts           |  83 -------
 packages/cli-plugin-metro/src/index.ts        |  11 -
 .../src/tools/KeyPressHandler.ts              |  71 ------
 .../src/tools/loadMetroConfig.ts              | 116 ---------
 .../src/tools/metroPlatformResolver.ts        |  34 ---
 packages/cli-plugin-metro/tsconfig.json       |  12 -
 .../@react-native/metro-config/index.d.ts     |   5 -
 packages/cli/src/commands/index.ts            |   2 -
 packages/cli/tsconfig.json                    |   1 -
 scripts/helpers.js                            |   7 +-
 yarn.lock                                     | 223 ++++++++++++------
 36 files changed, 172 insertions(+), 1833 deletions(-)
 delete mode 100644 packages/cli-plugin-metro/CHANGELOG.md
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/__mocks__/sign.js
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/__tests__/filterPlatformAssetScales-test.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathAndroid-test.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathIOS-test.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/assetCatalogIOS.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/assetPathUtils.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/buildBundle.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/bundle.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/bundleCommandLineArgs.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/filterPlatformAssetScales.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathAndroid.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathIOS.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/index.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/ramBundle.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/index.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/start/index.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/start/runServer.ts
 delete mode 100644 packages/cli-plugin-metro/src/commands/start/watchMode.ts
 delete mode 100644 packages/cli-plugin-metro/src/index.ts
 delete mode 100644 packages/cli-plugin-metro/src/tools/KeyPressHandler.ts
 delete mode 100644 packages/cli-plugin-metro/src/tools/loadMetroConfig.ts
 delete mode 100644 packages/cli-plugin-metro/src/tools/metroPlatformResolver.ts
 delete mode 100644 packages/cli-plugin-metro/tsconfig.json
 delete mode 100644 packages/cli-plugin-metro/types/@react-native/metro-config/index.d.ts

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 80c9821aea..bc2874299a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -31,7 +31,7 @@ And then:
 
 ```sh
 cd /my/new/react-native/project/
-yarn link "@react-native-community/cli-platform-ios" "@react-native-community/cli-platform-android" "@react-native-community/cli" "@react-native-community/cli-server-api" "@react-native-community/cli-types" "@react-native-community/cli-tools" "@react-native-community/cli-debugger-ui" "@react-native-community/cli-hermes" "@react-native-community/cli-plugin-metro" "@react-native-community/cli-clean" "@react-native-community/cli-doctor" "@react-native-community/cli-config"
+yarn link "@react-native-community/cli-platform-ios" "@react-native-community/cli-platform-android" "@react-native-community/cli" "@react-native-community/cli-server-api" "@react-native-community/cli-types" "@react-native-community/cli-tools" "@react-native-community/cli-debugger-ui" "@react-native-community/cli-hermes" "@react-native-community/cli-clean" "@react-native-community/cli-doctor" "@react-native-community/cli-config"
 ```
 
 Once you're done with testing and you'd like to get back to regular setup, run `yarn unlink` instead of `yarn link` from above command. Then `yarn install --force`.
diff --git a/docs/commands.md b/docs/commands.md
index 4c96cc5bdd..e1b3b7dd2a 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -2,7 +2,7 @@
 
 React Native CLI comes with following commands:
 
-- [`bundle`](/packages/cli-plugin-metro/README.md#bundle)
+- [`bundle`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#bundle)
 - [`clean`](/packages/cli-clean/README.md#clean)
 - [`config`](/packages/cli-config/README.md#config)
 - [`doctor`](/packages/cli-doctor/README.md#doctor)
@@ -10,12 +10,12 @@ React Native CLI comes with following commands:
 - [`info`](/packages/cli-doctor/README.md#info)
 - [`log-android`](/packages/cli-platform-android/README.md#log-android)
 - [`log-ios`](/packages/cli-platform-ios/README.md#log-ios)
-- [`ram-bundle`](/packages/cli-plugin-metro/README.md#ram-bundle)
+- [`ram-bundle`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#ram-bundle)
 - [`run-android`](/packages/cli-platform-android/README.md#run-android)
 - [`build-android`](/packages/cli-platform-android/README.md#build-android)
 - [`run-ios`](/packages/cli-platform-ios/README.md#run-ios)
 - [`build-ios`](/packages/cli-platform-ios/README.md#build-ios)
-- [`start`](/packages/cli-plugin-metro/README.md#start)
+- [`start`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#start)
 - [`upgrade`](#upgrade)
 - [`profile-hermes`](/packages/cli-hermes/README.md#profile-hermes)
 
diff --git a/packages/cli-doctor/tsconfig.json b/packages/cli-doctor/tsconfig.json
index af61926b1d..89c5c48c20 100644
--- a/packages/cli-doctor/tsconfig.json
+++ b/packages/cli-doctor/tsconfig.json
@@ -10,6 +10,5 @@
     {"path": "../cli-config"},
     {"path": "../cli-platform-android"},
     {"path": "../cli-platform-ios"},
-    {"path": "../cli-plugin-metro"},
   ]
 }
diff --git a/packages/cli-platform-android/tsconfig.json b/packages/cli-platform-android/tsconfig.json
index 3a2107b009..3552922dbe 100644
--- a/packages/cli-platform-android/tsconfig.json
+++ b/packages/cli-platform-android/tsconfig.json
@@ -7,6 +7,5 @@
   "references": [
     {"path": "../cli-tools"},
     {"path": "../cli-types"},
-    {"path": "../cli-plugin-metro"}
   ]
 }
diff --git a/packages/cli-plugin-metro/CHANGELOG.md b/packages/cli-plugin-metro/CHANGELOG.md
deleted file mode 100644
index e70a3ea3bc..0000000000
--- a/packages/cli-plugin-metro/CHANGELOG.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-# 8.0.0-alpha.3 (2022-04-22)
-
-**Note:** Version bump only for package @react-native-community/cli-plugin-metro
-
-
-
-
-
-# 8.0.0-alpha.2 (2022-04-22)
-
-**Note:** Version bump only for package @react-native-community/cli-plugin-metro
-
-
-
-
-
-# 8.0.0-alpha.1 (2022-04-22)
-
-**Note:** Version bump only for package @react-native-community/cli-plugin-metro
diff --git a/packages/cli-plugin-metro/README.md b/packages/cli-plugin-metro/README.md
index 437c83749f..2110c037a1 100644
--- a/packages/cli-plugin-metro/README.md
+++ b/packages/cli-plugin-metro/README.md
@@ -1,206 +1,5 @@
 # @react-native-community/cli-plugin-metro
 
-This package is part of the [React Native CLI](../../README.md).
-It contains commands for managing the Metro bundler.
-
-## Installation
-
-```sh
-yarn add @react-native-community/cli-plugin-metro
-```
-
-## Commands
-
-### `start`
-
-Usage:
-
-```sh
-react-native start [option]
-```
-
-Starts the server that communicates with connected devices
-
-#### Options
-
-#### `--port <number>`
-
-Specify port to listen on
-
-#### `--projectRoot <path>`
-
-Path to a custom project root
-
-#### `--watchFolders <list>`
-
-Specify any additional folders to be added to the watch list
-
-#### `--assetPlugins <list>`
-
-Specify any additional asset plugins to be used by the packager by full filepath
-
-#### `--sourceExts <list>`
-
-Specify any additional source extensions to be used by the packager
-
-#### `--max-workers <number>`
-
-Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine
-
-#### `--transformer <string>`
-
-Specify a custom transformer to be used
-
-#### `--reset-cache, --resetCache`
-
-Removes cached files
-
-#### `--custom-log-reporter-path, --customLogReporterPath <string>`
-
-Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter
-
-#### `--https`
-
-Enables https connections to the server
-
-#### `--key <path>`
-
-Path to custom SSL key
-
-#### `--cert <path>`
-
-Path to custom SSL cert
-
-#### `--config <string>`
-
-Path to the CLI configuration file
-
-#### `--no-interactive`
-
-Disables interactive mode
-
-### `bundle`
-
-Usage:
-
-```sh
-react-native bundle <flag>
-```
-
-Builds the JavaScript bundle for offline use.
-
-#### `--entry-file <path>`
-
-Path to the root JS file, either absolute or relative to JS root.
-
-#### `--platform <string>`
-
-> default: ios
-
-Either "ios" or "android".
-
-#### `--transformer <string>`
-
-Specify a custom transformer to be used.
-
-#### `--dev [boolean]`
-
-> default: true
-
-If false, warnings are disabled and the bundle is minified.
-
-#### `--minify [boolean]`
-
-Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.
-
-#### `--bundle-output <string>`
-
-File name where to store the resulting bundle, ex. `/tmp/groups.bundle`.
-
-If you are planning on building a debug APK, that will run without the packager, by invoking `./gradlew assembleDebug` you can simply set `bundleInDebug: true` in your app/build.gradle file, inside the `project.ext.react` map.
-
-<details>
-Alternatively if you want to run <code>react-native bundle</code> manually and then create the APK with <code>./gradlew assembleDebug</code> you have to make sure to put the bundle into the right directory and give it the right name, so that gradle can find it.
-
-For react-native versions 0.57 and above the bundle output path should be:
-<code>android/app/build/generated/assets/react/debug/index.android.js</code>
-
-To find out the correct path for previous react-native versions, take a look at the <code>react.gradle</code> file here: <https://github.com/facebook/react-native/blob/0.57-stable/react.gradle> or inside your <code>node_modules/react-native</code> directory.
-
-The expected path for the js bundle can be found on the line that starts with <code>jsBundleDir = </code>.
-
-</details>
-
-#### `--bundle-encoding <string>`
-
-> default: utf8
-
-Encoding the bundle should be written in (<https://nodejs.org/api/buffer.html#buffer_buffer>).
-
-#### `--max-workers <number>`
-
-Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine.
-
-#### `--sourcemap-output <string>`
-
-File name where to store the sourcemap file for resulting bundle, ex. `/tmp/groups.map`.
-
-#### `--sourcemap-sources-root <string>`
-
-Path to make sourcemap sources entries relative to, ex. `/root/dir`.
-
-#### `--sourcemap-use-absolute-path`
-
-> default: false
-
-Report SourceMapURL using its full path.
-
-#### `--assets-dest <string>`
-
-Directory name where to store assets referenced in the bundle.
-
-If you are planning on building a debug APK that will run without the packager, see ([--bundle-output](https://github.com/react-native-community/cli/blob/main/packages/cli-plugin-metro/README.md#--bundle-output-string))
-
-<details>
-  Alternatively if you want to run <code>react-native bundle</code> manually and then create the APK with <code>./gradlew assembleDebug</code> you have to make sure to put the assets into the right directory, so that gradle can find them.
-
-For react-native versions 0.57 and above the <code>--assets-dest</code> path should be:
-<code>android/app/build/generated/res/react/debug</code>
-
-The expected path for the assets can be found in the react.gradle file on the line that starts with <code>resourcesDir =</code>
-
-</details>
-
-#### `--reset-cache`
-
-> default: false
-
-Removes cached files.
-
-#### `--read-global-cache`
-
-> default: false
-
-Try to fetch transformed JS code from the global cache, if configured.
-
-#### `--config <string>`
-
-Path to the CLI configuration file.
-
-### `ram-bundle`
-
-Usage:
-
-```sh
-react-native ram-bundle [options]
-```
-
-Builds JavaScript as a "Random Access Module" bundle for offline use.
-
-#### Options
-
-Accepts all of [bundle commands](#bundle) and following:
-
-#### `--indexed-ram-bundle`
-
-Force the "Indexed RAM" bundle file format, even when building for Android.
+> **[Removed]**
+> 
+> This package is now relocated as [`@react-native/community-cli-plugin`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin).
diff --git a/packages/cli-plugin-metro/package.json b/packages/cli-plugin-metro/package.json
index 95b8569e6e..cd3b354d63 100644
--- a/packages/cli-plugin-metro/package.json
+++ b/packages/cli-plugin-metro/package.json
@@ -1,29 +1,12 @@
 {
   "name": "@react-native-community/cli-plugin-metro",
-  "version": "12.0.0-alpha.10",
+  "description": "[Removed since 12.0.0-alpha.12]",
+  "version": "12.0.0-alpha.9",
   "license": "MIT",
-  "main": "build/index.js",
   "publishConfig": {
     "access": "public"
   },
-  "dependencies": {
-    "@react-native-community/cli-server-api": "12.0.0-alpha.10",
-    "@react-native-community/cli-tools": "12.0.0-alpha.10",
-    "chalk": "^4.1.2",
-    "execa": "^5.0.0",
-    "metro": "0.78.0",
-    "metro-config": "0.78.0",
-    "metro-core": "0.78.0",
-    "readline": "^1.3.0"
-  },
-  "devDependencies": {
-    "@react-native-community/cli-types": "12.0.0-alpha.10",
-    "metro-resolver": "0.78.0"
-  },
-  "files": [
-    "build",
-    "!*.map"
-  ],
+  "dependencies": {},
   "homepage": "https://github.com/react-native-community/cli/tree/main/packages/cli-plugin-metro",
   "repository": {
     "type": "git",
diff --git a/packages/cli-plugin-metro/src/commands/bundle/__mocks__/sign.js b/packages/cli-plugin-metro/src/commands/bundle/__mocks__/sign.js
deleted file mode 100644
index 0b8c3a132a..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/__mocks__/sign.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- * @format
- */
-
-function sign(source) {
-  return source;
-}
-
-module.exports = sign;
diff --git a/packages/cli-plugin-metro/src/commands/bundle/__tests__/filterPlatformAssetScales-test.ts b/packages/cli-plugin-metro/src/commands/bundle/__tests__/filterPlatformAssetScales-test.ts
deleted file mode 100644
index 94364e6dcf..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/__tests__/filterPlatformAssetScales-test.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- * @format
- * @emails oncall+javascript_foundation
- */
-
-import filterPlatformAssetScales from '../filterPlatformAssetScales';
-
-jest.dontMock('../filterPlatformAssetScales').dontMock('../assetPathUtils');
-
-describe('filterPlatformAssetScales', () => {
-  it('removes everything but 2x and 3x for iOS', () => {
-    expect(filterPlatformAssetScales('ios', [1, 1.5, 2, 3, 4])).toEqual([
-      1,
-      2,
-      3,
-    ]);
-    expect(filterPlatformAssetScales('ios', [3, 4])).toEqual([3]);
-  });
-
-  it('keeps closest largest one if nothing matches', () => {
-    expect(filterPlatformAssetScales('ios', [0.5, 4, 100])).toEqual([4]);
-    expect(filterPlatformAssetScales('ios', [0.5, 100])).toEqual([100]);
-    expect(filterPlatformAssetScales('ios', [0.5])).toEqual([0.5]);
-    expect(filterPlatformAssetScales('ios', [])).toEqual([]);
-  });
-
-  it('keeps all scales for unknown platform', () => {
-    expect(filterPlatformAssetScales('freebsd', [1, 1.5, 2, 3.7])).toEqual([
-      1,
-      1.5,
-      2,
-      3.7,
-    ]);
-  });
-});
diff --git a/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathAndroid-test.ts b/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathAndroid-test.ts
deleted file mode 100644
index 1fbe2329e2..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathAndroid-test.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- * @format
- * @emails oncall+javascript_foundation
- */
-
-import getAssetDestPathAndroid from '../getAssetDestPathAndroid';
-
-jest.dontMock('../getAssetDestPathAndroid').dontMock('../assetPathUtils');
-
-const path = require('path');
-
-describe('getAssetDestPathAndroid', () => {
-  it('should use the right destination folder', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/test',
-    };
-
-    const expectDestPathForScaleToStartWith = (scale, location) => {
-      if (!getAssetDestPathAndroid(asset, scale).startsWith(location)) {
-        throw new Error(
-          `asset for scale ${scale} should start with path '${location}'`,
-        );
-      }
-    };
-
-    expectDestPathForScaleToStartWith(1, 'drawable-mdpi');
-    expectDestPathForScaleToStartWith(1.5, 'drawable-hdpi');
-    expectDestPathForScaleToStartWith(2, 'drawable-xhdpi');
-    expectDestPathForScaleToStartWith(3, 'drawable-xxhdpi');
-    expectDestPathForScaleToStartWith(4, 'drawable-xxxhdpi');
-  });
-
-  it('should lowercase path', () => {
-    const asset = {
-      name: 'Icon',
-      type: 'png',
-      httpServerLocation: '/assets/App/Test',
-    };
-
-    expect(getAssetDestPathAndroid(asset, 1)).toBe(
-      path.normalize('drawable-mdpi/app_test_icon.png'),
-    );
-  });
-
-  it('should remove `assets/` prefix', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/RKJSModules/Apps/AndroidSample/Assets',
-    };
-
-    expect(getAssetDestPathAndroid(asset, 1).startsWith('assets_')).toBeFalsy();
-  });
-
-  it('should put non-drawable resources to `raw/`', () => {
-    const asset = {
-      name: 'video',
-      type: 'mp4',
-      httpServerLocation: '/assets/app/test',
-    };
-
-    expect(getAssetDestPathAndroid(asset, 1)).toBe(
-      path.normalize('raw/app_test_video.mp4'),
-    );
-  });
-
-  it('should handle assets with a relative path outside of root', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/../../test',
-    };
-
-    expect(getAssetDestPathAndroid(asset, 1)).toBe(
-      path.normalize('drawable-mdpi/__test_icon.png'),
-    );
-  });
-});
diff --git a/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathIOS-test.ts b/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathIOS-test.ts
deleted file mode 100644
index 502db89064..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/__tests__/getAssetDestPathIOS-test.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- * @format
- * @emails oncall+javascript_foundation
- */
-
-import getAssetDestPathIOS from '../getAssetDestPathIOS';
-
-jest.dontMock('../getAssetDestPathIOS');
-
-const path = require('path');
-
-describe('getAssetDestPathIOS', () => {
-  it('should build correct path', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/test',
-    };
-
-    expect(getAssetDestPathIOS(asset, 1)).toBe(
-      path.normalize('assets/test/icon.png'),
-    );
-  });
-
-  it('should consider scale', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/test',
-    };
-
-    expect(getAssetDestPathIOS(asset, 2)).toBe(
-      path.normalize('assets/test/icon@2x.png'),
-    );
-    expect(getAssetDestPathIOS(asset, 3)).toBe(
-      path.normalize('assets/test/icon@3x.png'),
-    );
-  });
-
-  it('should handle assets with a relative path outside of root', () => {
-    const asset = {
-      name: 'icon',
-      type: 'png',
-      httpServerLocation: '/assets/../../test',
-    };
-
-    expect(getAssetDestPathIOS(asset, 1)).toBe(
-      path.normalize('assets/__test/icon.png'),
-    );
-  });
-});
diff --git a/packages/cli-plugin-metro/src/commands/bundle/assetCatalogIOS.ts b/packages/cli-plugin-metro/src/commands/bundle/assetCatalogIOS.ts
deleted file mode 100644
index e686ac59d1..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/assetCatalogIOS.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import path from 'path';
-import fs from 'fs';
-import type {AssetData} from 'metro';
-import assetPathUtils from './assetPathUtils';
-
-export function cleanAssetCatalog(catalogDir: string): void {
-  const files = fs
-    .readdirSync(catalogDir)
-    .filter((file) => file.endsWith('.imageset'));
-  for (const file of files) {
-    fs.rmSync(path.join(catalogDir, file));
-  }
-}
-
-type ImageSet = {
-  basePath: string;
-  files: {name: string; src: string; scale: number}[];
-};
-
-export function getImageSet(
-  catalogDir: string,
-  asset: AssetData,
-  scales: readonly number[],
-): ImageSet {
-  const fileName = assetPathUtils.getResourceIdentifier(asset);
-  return {
-    basePath: path.join(catalogDir, `${fileName}.imageset`),
-    files: scales.map((scale, idx) => {
-      const suffix = scale === 1 ? '' : `@${scale}x`;
-      return {
-        name: `${fileName + suffix}.${asset.type}`,
-        scale,
-        src: asset.files[idx],
-      };
-    }),
-  };
-}
-
-export function isCatalogAsset(asset: AssetData): boolean {
-  return asset.type === 'png' || asset.type === 'jpg' || asset.type === 'jpeg';
-}
-
-export function writeImageSet(imageSet: ImageSet): void {
-  fs.mkdirSync(imageSet.basePath, {recursive: true});
-
-  for (const file of imageSet.files) {
-    const dest = path.join(imageSet.basePath, file.name);
-    fs.copyFileSync(file.src, dest);
-  }
-
-  fs.writeFileSync(
-    path.join(imageSet.basePath, 'Contents.json'),
-    JSON.stringify({
-      images: imageSet.files.map((file) => ({
-        filename: file.name,
-        idiom: 'universal',
-        scale: `${file.scale}x`,
-      })),
-      info: {
-        author: 'xcode',
-        version: 1,
-      },
-    }),
-  );
-}
diff --git a/packages/cli-plugin-metro/src/commands/bundle/assetPathUtils.ts b/packages/cli-plugin-metro/src/commands/bundle/assetPathUtils.ts
deleted file mode 100644
index c26ddd1da5..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/assetPathUtils.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-export interface PackagerAsset {
-  httpServerLocation: string;
-  name: string;
-  type: string;
-}
-
-/**
- * FIXME: using number to represent discrete scale numbers is fragile in essence because of
- * floating point numbers imprecision.
- */
-function getAndroidAssetSuffix(scale: number): string {
-  switch (scale) {
-    case 0.75:
-      return 'ldpi';
-    case 1:
-      return 'mdpi';
-    case 1.5:
-      return 'hdpi';
-    case 2:
-      return 'xhdpi';
-    case 3:
-      return 'xxhdpi';
-    case 4:
-      return 'xxxhdpi';
-    default:
-      return '';
-  }
-}
-
-// See https://developer.android.com/guide/topics/resources/drawable-resource.html
-const drawableFileTypes = new Set<string>([
-  'gif',
-  'jpeg',
-  'jpg',
-  'png',
-  'webp',
-  'xml',
-]);
-
-function getAndroidResourceFolderName(
-  asset: PackagerAsset,
-  scale: number,
-): string {
-  if (!drawableFileTypes.has(asset.type)) {
-    return 'raw';
-  }
-  const suffix = getAndroidAssetSuffix(scale);
-  if (!suffix) {
-    throw new Error(
-      `Don't know which android drawable suffix to use for asset: ${JSON.stringify(
-        asset,
-      )}`,
-    );
-  }
-  const androidFolder = `drawable-${suffix}`;
-  return androidFolder;
-}
-
-function getResourceIdentifier(asset: PackagerAsset): string {
-  const folderPath = getBasePath(asset);
-  return `${folderPath}/${asset.name}`
-    .toLowerCase()
-    .replace(/\//g, '_') // Encode folder structure in file name
-    .replace(/([^a-z0-9_])/g, '') // Remove illegal chars
-    .replace(/^assets_/, ''); // Remove "assets_" prefix
-}
-
-function getBasePath(asset: PackagerAsset): string {
-  let basePath = asset.httpServerLocation;
-  if (basePath[0] === '/') {
-    basePath = basePath.substr(1);
-  }
-  return basePath;
-}
-
-export default {
-  getAndroidAssetSuffix,
-  getAndroidResourceFolderName,
-  getResourceIdentifier,
-  getBasePath,
-};
diff --git a/packages/cli-plugin-metro/src/commands/bundle/buildBundle.ts b/packages/cli-plugin-metro/src/commands/bundle/buildBundle.ts
deleted file mode 100644
index 5e45447443..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/buildBundle.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import {logger} from '@react-native-community/cli-tools';
-import type {Config} from '@react-native-community/cli-types';
-import chalk from 'chalk';
-import fs from 'fs';
-import type {ConfigT} from 'metro-config';
-import Server from 'metro/src/Server';
-import outputBundle from 'metro/src/shared/output/bundle';
-import type {BundleOptions} from 'metro/src/shared/types';
-import path from 'path';
-import {default as loadMetroConfig} from '../../tools/loadMetroConfig';
-import {CommandLineArgs} from './bundleCommandLineArgs';
-import saveAssets from './saveAssets';
-
-interface RequestOptions {
-  entryFile: string;
-  sourceMapUrl: string | undefined;
-  dev: boolean;
-  minify: boolean;
-  platform: string;
-  unstable_transformProfile: BundleOptions['unstable_transformProfile'];
-}
-
-async function buildBundle(
-  args: CommandLineArgs,
-  ctx: Config,
-  output: typeof outputBundle = outputBundle,
-) {
-  const config = await loadMetroConfig(ctx, {
-    maxWorkers: args.maxWorkers,
-    resetCache: args.resetCache,
-    config: args.config,
-  });
-
-  return buildBundleWithConfig(args, config, output);
-}
-
-/**
- * Create a bundle using a pre-loaded Metro config. The config can be
- * re-used for several bundling calls if multiple platforms are being
- * bundled.
- */
-export async function buildBundleWithConfig(
-  args: CommandLineArgs,
-  config: ConfigT,
-  output: typeof outputBundle = outputBundle,
-) {
-  if (config.resolver.platforms.indexOf(args.platform) === -1) {
-    logger.error(
-      `Invalid platform ${
-        args.platform ? `"${chalk.bold(args.platform)}" ` : ''
-      }selected.`,
-    );
-
-    logger.info(
-      `Available platforms are: ${config.resolver.platforms
-        .map((x) => `"${chalk.bold(x)}"`)
-        .join(
-          ', ',
-        )}. If you are trying to bundle for an out-of-tree platform, it may not be installed.`,
-    );
-
-    throw new Error('Bundling failed');
-  }
-
-  // This is used by a bazillion of npm modules we don't control so we don't
-  // have other choice than defining it as an env variable here.
-  process.env.NODE_ENV = args.dev ? 'development' : 'production';
-
-  let sourceMapUrl = args.sourcemapOutput;
-  if (sourceMapUrl && !args.sourcemapUseAbsolutePath) {
-    sourceMapUrl = path.basename(sourceMapUrl);
-  }
-
-  const requestOpts: RequestOptions = {
-    entryFile: args.entryFile,
-    sourceMapUrl,
-    dev: args.dev,
-    minify: args.minify !== undefined ? args.minify : !args.dev,
-    platform: args.platform,
-    unstable_transformProfile: args.unstableTransformProfile as BundleOptions['unstable_transformProfile'],
-  };
-  const server = new Server(config);
-
-  try {
-    const bundle = await output.build(server, requestOpts);
-
-    // Ensure destination directory exists before saving the bundle
-    const mkdirOptions = {recursive: true, mode: 0o755} as const;
-    fs.mkdirSync(path.dirname(args.bundleOutput), mkdirOptions);
-
-    await output.save(bundle, args, logger.info);
-
-    // Save the assets of the bundle
-    const outputAssets = await server.getAssets({
-      ...Server.DEFAULT_BUNDLE_OPTIONS,
-      ...requestOpts,
-      bundleType: 'todo',
-    });
-
-    // When we're done saving bundle output and the assets, we're done.
-    return await saveAssets(
-      outputAssets,
-      args.platform,
-      args.assetsDest,
-      args.assetCatalogDest,
-    );
-  } finally {
-    server.end();
-  }
-}
-
-export default buildBundle;
diff --git a/packages/cli-plugin-metro/src/commands/bundle/bundle.ts b/packages/cli-plugin-metro/src/commands/bundle/bundle.ts
deleted file mode 100644
index fff01b95b1..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/bundle.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-import type {Config} from '@react-native-community/cli-types';
-import buildBundle from './buildBundle';
-import bundleCommandLineArgs, {CommandLineArgs} from './bundleCommandLineArgs';
-
-/**
- * Builds the bundle starting to look for dependencies at the given entry path.
- */
-function bundleWithOutput(
-  _: Array<string>,
-  config: Config,
-  args: CommandLineArgs,
-  output: any, // untyped metro/src/shared/output/bundle or metro/src/shared/output/RamBundle
-) {
-  return buildBundle(args, config, output);
-}
-
-export default {
-  name: 'bundle',
-  description: 'builds the javascript bundle for offline use',
-  func: bundleWithOutput,
-  options: bundleCommandLineArgs,
-  // Used by `ramBundle.js`
-  withOutput: bundleWithOutput,
-};
-
-const withOutput = bundleWithOutput;
-
-export {withOutput};
diff --git a/packages/cli-plugin-metro/src/commands/bundle/bundleCommandLineArgs.ts b/packages/cli-plugin-metro/src/commands/bundle/bundleCommandLineArgs.ts
deleted file mode 100644
index 7bad012e2d..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/bundleCommandLineArgs.ts
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import path from 'path';
-
-export interface CommandLineArgs {
-  assetsDest?: string;
-  assetCatalogDest?: string;
-  entryFile: string;
-  resetCache: boolean;
-  resetGlobalCache: boolean;
-  transformer?: string;
-  minify?: boolean;
-  config?: string;
-  platform: string;
-  dev: boolean;
-  bundleOutput: string;
-  bundleEncoding?: 'utf8' | 'utf16le' | 'ascii';
-  maxWorkers?: number;
-  sourcemapOutput?: string;
-  sourcemapSourcesRoot?: string;
-  sourcemapUseAbsolutePath: boolean;
-  verbose: boolean;
-  unstableTransformProfile: string;
-}
-
-export default [
-  {
-    name: '--entry-file <path>',
-    description:
-      'Path to the root JS file, either absolute or relative to JS root',
-  },
-  {
-    name: '--platform <string>',
-    description: 'Either "ios" or "android"',
-    default: 'ios',
-  },
-  {
-    name: '--transformer <string>',
-    description: 'Specify a custom transformer to be used',
-  },
-  {
-    name: '--dev [boolean]',
-    description: 'If false, warnings are disabled and the bundle is minified',
-    parse: (val: string) => val !== 'false',
-    default: true,
-  },
-  {
-    name: '--minify [boolean]',
-    description:
-      'Allows overriding whether bundle is minified. This defaults to ' +
-      'false if dev is true, and true if dev is false. Disabling minification ' +
-      'can be useful for speeding up production builds for testing purposes.',
-    parse: (val: string) => val !== 'false',
-  },
-  {
-    name: '--bundle-output <string>',
-    description:
-      'File name where to store the resulting bundle, ex. /tmp/groups.bundle',
-  },
-  {
-    name: '--bundle-encoding <string>',
-    description:
-      'Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer).',
-    default: 'utf8',
-  },
-  {
-    name: '--max-workers <number>',
-    description:
-      'Specifies the maximum number of workers the worker-pool ' +
-      'will spawn for transforming files. This defaults to the number of the ' +
-      'cores available on your machine.',
-    parse: (workers: string) => Number(workers),
-  },
-  {
-    name: '--sourcemap-output <string>',
-    description:
-      'File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map',
-  },
-  {
-    name: '--sourcemap-sources-root <string>',
-    description:
-      "Path to make sourcemap's sources entries relative to, ex. /root/dir",
-  },
-  {
-    name: '--sourcemap-use-absolute-path',
-    description: 'Report SourceMapURL using its full path',
-    default: false,
-  },
-  {
-    name: '--assets-dest <string>',
-    description:
-      'Directory name where to store assets referenced in the bundle',
-  },
-  {
-    name: '--unstable-transform-profile <string>',
-    description:
-      'Experimental, transform JS for a specific JS engine. Currently supported: hermes, hermes-canary, default',
-    default: 'default',
-  },
-  {
-    name: '--asset-catalog-dest [string]',
-    description: 'Path where to create an iOS Asset Catalog for images',
-  },
-  {
-    name: '--reset-cache',
-    description: 'Removes cached files',
-    default: false,
-  },
-  {
-    name: '--read-global-cache',
-    description:
-      'Try to fetch transformed JS code from the global cache, if configured.',
-    default: false,
-  },
-  {
-    name: '--config <string>',
-    description: 'Path to the CLI configuration file',
-    parse: (val: string) => path.resolve(val),
-  },
-];
diff --git a/packages/cli-plugin-metro/src/commands/bundle/filterPlatformAssetScales.ts b/packages/cli-plugin-metro/src/commands/bundle/filterPlatformAssetScales.ts
deleted file mode 100644
index a8c48b0a1e..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/filterPlatformAssetScales.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-const ALLOWED_SCALES: {[key: string]: number[]} = {
-  ios: [1, 2, 3],
-};
-
-function filterPlatformAssetScales(
-  platform: string,
-  scales: ReadonlyArray<number>,
-): ReadonlyArray<number> {
-  const whitelist: number[] = ALLOWED_SCALES[platform];
-  if (!whitelist) {
-    return scales;
-  }
-  const result = scales.filter((scale) => whitelist.indexOf(scale) > -1);
-  if (result.length === 0 && scales.length > 0) {
-    // No matching scale found, but there are some available. Ideally we don't
-    // want to be in this situation and should throw, but for now as a fallback
-    // let's just use the closest larger image
-    const maxScale = whitelist[whitelist.length - 1];
-    for (const scale of scales) {
-      if (scale > maxScale) {
-        result.push(scale);
-        break;
-      }
-    }
-
-    // There is no larger scales available, use the largest we have
-    if (result.length === 0) {
-      result.push(scales[scales.length - 1]);
-    }
-  }
-  return result;
-}
-
-export default filterPlatformAssetScales;
diff --git a/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathAndroid.ts b/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathAndroid.ts
deleted file mode 100644
index 54ce337da9..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathAndroid.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import path from 'path';
-import assetPathUtils, {PackagerAsset} from './assetPathUtils';
-
-function getAssetDestPathAndroid(asset: PackagerAsset, scale: number): string {
-  const androidFolder = assetPathUtils.getAndroidResourceFolderName(
-    asset,
-    scale,
-  );
-  const fileName = assetPathUtils.getResourceIdentifier(asset);
-  return path.join(androidFolder, `${fileName}.${asset.type}`);
-}
-
-export default getAssetDestPathAndroid;
diff --git a/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathIOS.ts b/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathIOS.ts
deleted file mode 100644
index 6544a8ca3c..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/getAssetDestPathIOS.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import path from 'path';
-import {PackagerAsset} from './assetPathUtils';
-
-function getAssetDestPathIOS(asset: PackagerAsset, scale: number): string {
-  const suffix = scale === 1 ? '' : `@${scale}x`;
-  const fileName = `${asset.name + suffix}.${asset.type}`;
-  return path.join(
-    // Assets can have relative paths outside of the project root.
-    // Replace `../` with `_` to make sure they don't end up outside of
-    // the expected assets directory.
-    asset.httpServerLocation.substr(1).replace(/\.\.\//g, '_'),
-    fileName,
-  );
-}
-
-export default getAssetDestPathIOS;
diff --git a/packages/cli-plugin-metro/src/commands/bundle/index.ts b/packages/cli-plugin-metro/src/commands/bundle/index.ts
deleted file mode 100644
index 21b8261bd7..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export {default as bundleCommand} from './bundle';
-export {buildBundleWithConfig} from './buildBundle';
-export type {CommandLineArgs} from './bundleCommandLineArgs';
-export {default as ramBundleCommand} from './ramBundle';
diff --git a/packages/cli-plugin-metro/src/commands/bundle/ramBundle.ts b/packages/cli-plugin-metro/src/commands/bundle/ramBundle.ts
deleted file mode 100644
index 6eb8d74eae..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/ramBundle.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-// @ts-ignore - no typed definition for the package
-import outputUnbundle from 'metro/src/shared/output/RamBundle';
-import {withOutput as bundleWithOutput} from './bundle';
-import bundleCommandLineArgs, {CommandLineArgs} from './bundleCommandLineArgs';
-import type {Config} from '@react-native-community/cli-types';
-
-/**
- * Builds the bundle starting to look for dependencies at the given entry path.
- */
-function ramBundle(argv: Array<string>, config: Config, args: CommandLineArgs) {
-  return bundleWithOutput(argv, config, args, outputUnbundle);
-}
-
-export default {
-  name: 'ram-bundle',
-  description:
-    'builds javascript as a "Random Access Module" bundle for offline use',
-  func: ramBundle,
-  options: bundleCommandLineArgs.concat({
-    name: '--indexed-ram-bundle',
-    description:
-      'Force the "Indexed RAM" bundle file format, even when building for android',
-    default: false,
-  }),
-};
-
-export {ramBundle};
diff --git a/packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts b/packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts
deleted file mode 100644
index 28ed6330cb..0000000000
--- a/packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts
+++ /dev/null
@@ -1,135 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import {logger} from '@react-native-community/cli-tools';
-import fs from 'fs';
-import type {AssetData} from 'metro';
-import path from 'path';
-import {
-  cleanAssetCatalog,
-  getImageSet,
-  isCatalogAsset,
-  writeImageSet,
-} from './assetCatalogIOS';
-import filterPlatformAssetScales from './filterPlatformAssetScales';
-import getAssetDestPathAndroid from './getAssetDestPathAndroid';
-import getAssetDestPathIOS from './getAssetDestPathIOS';
-
-interface CopiedFiles {
-  [src: string]: string;
-}
-
-function saveAssets(
-  assets: ReadonlyArray<AssetData>,
-  platform: string,
-  assetsDest: string | undefined,
-  assetCatalogDest: string | undefined,
-) {
-  if (!assetsDest) {
-    logger.warn('Assets destination folder is not set, skipping...');
-    return;
-  }
-
-  const filesToCopy: CopiedFiles = Object.create(null); // Map src -> dest
-
-  const getAssetDestPath =
-    platform === 'android' ? getAssetDestPathAndroid : getAssetDestPathIOS;
-
-  const addAssetToCopy = (asset: AssetData) => {
-    const validScales = new Set(
-      filterPlatformAssetScales(platform, asset.scales),
-    );
-
-    asset.scales.forEach((scale, idx) => {
-      if (!validScales.has(scale)) {
-        return;
-      }
-      const src = asset.files[idx];
-      const dest = path.join(assetsDest, getAssetDestPath(asset, scale));
-      filesToCopy[src] = dest;
-    });
-  };
-
-  if (platform === 'ios' && assetCatalogDest != null) {
-    // Use iOS Asset Catalog for images. This will allow Apple app thinning to
-    // remove unused scales from the optimized bundle.
-    const catalogDir = path.join(assetCatalogDest, 'RNAssets.xcassets');
-    if (!fs.existsSync(catalogDir)) {
-      logger.error(
-        `Could not find asset catalog 'RNAssets.xcassets' in ${assetCatalogDest}. Make sure to create it if it does not exist.`,
-      );
-      return;
-    }
-
-    logger.info('Adding images to asset catalog', catalogDir);
-    cleanAssetCatalog(catalogDir);
-    for (const asset of assets) {
-      if (isCatalogAsset(asset)) {
-        const imageSet = getImageSet(
-          catalogDir,
-          asset,
-          filterPlatformAssetScales(platform, asset.scales),
-        );
-        writeImageSet(imageSet);
-      } else {
-        addAssetToCopy(asset);
-      }
-    }
-    logger.info('Done adding images to asset catalog');
-  } else {
-    assets.forEach(addAssetToCopy);
-  }
-
-  return copyAll(filesToCopy);
-}
-
-function copyAll(filesToCopy: CopiedFiles) {
-  const queue = Object.keys(filesToCopy);
-  if (queue.length === 0) {
-    return Promise.resolve();
-  }
-
-  logger.info(`Copying ${queue.length} asset files`);
-  return new Promise<void>((resolve, reject) => {
-    const copyNext = (error?: NodeJS.ErrnoException) => {
-      if (error) {
-        reject(error);
-        return;
-      }
-      if (queue.length === 0) {
-        logger.info('Done copying assets');
-        resolve();
-      } else {
-        // queue.length === 0 is checked in previous branch, so this is string
-        const src = queue.shift() as string;
-        const dest = filesToCopy[src];
-        copy(src, dest, copyNext);
-      }
-    };
-    copyNext();
-  });
-}
-
-function copy(
-  src: string,
-  dest: string,
-  callback: (error: NodeJS.ErrnoException) => void,
-): void {
-  const destDir = path.dirname(dest);
-  fs.mkdir(destDir, {recursive: true}, (err?) => {
-    if (err) {
-      callback(err);
-      return;
-    }
-    fs.createReadStream(src)
-      .pipe(fs.createWriteStream(dest))
-      .on('finish', callback);
-  });
-}
-
-export default saveAssets;
diff --git a/packages/cli-plugin-metro/src/commands/index.ts b/packages/cli-plugin-metro/src/commands/index.ts
deleted file mode 100644
index 0b9ffd88ff..0000000000
--- a/packages/cli-plugin-metro/src/commands/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import {bundleCommand, ramBundleCommand} from './bundle';
-import startCommand from './start';
-
-export default [bundleCommand, ramBundleCommand, startCommand];
-export {buildBundleWithConfig} from './bundle';
-export type {CommandLineArgs} from './bundle';
diff --git a/packages/cli-plugin-metro/src/commands/start/index.ts b/packages/cli-plugin-metro/src/commands/start/index.ts
deleted file mode 100644
index accfa96eba..0000000000
--- a/packages/cli-plugin-metro/src/commands/start/index.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-import path from 'path';
-import runServer from './runServer';
-
-export default {
-  name: 'start',
-  func: runServer,
-  description: 'starts the webserver',
-  options: [
-    {
-      name: '--port <number>',
-      parse: Number,
-    },
-    {
-      name: '--host <string>',
-      default: '',
-    },
-    {
-      name: '--projectRoot <path>',
-      description: 'Path to a custom project root',
-      parse: (val: string) => path.resolve(val),
-    },
-    {
-      name: '--watchFolders <list>',
-      description:
-        'Specify any additional folders to be added to the watch list',
-      parse: (val: string) =>
-        val.split(',').map<string>((folder: string) => path.resolve(folder)),
-    },
-    {
-      name: '--assetPlugins <list>',
-      description:
-        'Specify any additional asset plugins to be used by the packager by full filepath',
-      parse: (val: string) => val.split(','),
-    },
-    {
-      name: '--sourceExts <list>',
-      description:
-        'Specify any additional source extensions to be used by the packager',
-      parse: (val: string) => val.split(','),
-    },
-    {
-      name: '--max-workers <number>',
-      description:
-        'Specifies the maximum number of workers the worker-pool ' +
-        'will spawn for transforming files. This defaults to the number of the ' +
-        'cores available on your machine.',
-      parse: (workers: string) => Number(workers),
-    },
-    {
-      name: '--transformer <string>',
-      description: 'Specify a custom transformer to be used',
-    },
-    {
-      name: '--reset-cache, --resetCache',
-      description: 'Removes cached files',
-    },
-    {
-      name: '--custom-log-reporter-path, --customLogReporterPath <string>',
-      description:
-        'Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter',
-    },
-    {
-      name: '--https',
-      description: 'Enables https connections to the server',
-    },
-    {
-      name: '--key <path>',
-      description: 'Path to custom SSL key',
-    },
-    {
-      name: '--cert <path>',
-      description: 'Path to custom SSL cert',
-    },
-    {
-      name: '--config <string>',
-      description: 'Path to the CLI configuration file',
-      parse: (val: string) => path.resolve(val),
-    },
-    {
-      name: '--no-interactive',
-      description: 'Disables interactive mode',
-    },
-  ],
-};
diff --git a/packages/cli-plugin-metro/src/commands/start/runServer.ts b/packages/cli-plugin-metro/src/commands/start/runServer.ts
deleted file mode 100644
index bc93adc48f..0000000000
--- a/packages/cli-plugin-metro/src/commands/start/runServer.ts
+++ /dev/null
@@ -1,180 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-import Metro from 'metro';
-import type {Reporter, ReportableEvent} from 'metro';
-import type Server from 'metro/src/Server';
-import type {Middleware} from 'metro-config';
-import {Terminal} from 'metro-core';
-import path from 'path';
-import {
-  createDevServerMiddleware,
-  indexPageMiddleware,
-} from '@react-native-community/cli-server-api';
-import {Config} from '@react-native-community/cli-types';
-
-import loadMetroConfig from '../../tools/loadMetroConfig';
-import {
-  isPackagerRunning,
-  logger,
-  version,
-  logAlreadyRunningBundler,
-  handlePortUnavailable,
-} from '@react-native-community/cli-tools';
-import enableWatchMode from './watchMode';
-import chalk from 'chalk';
-
-export type Args = {
-  assetPlugins?: string[];
-  cert?: string;
-  customLogReporterPath?: string;
-  host?: string;
-  https?: boolean;
-  maxWorkers?: number;
-  key?: string;
-  platforms?: string[];
-  port?: number;
-  resetCache?: boolean;
-  sourceExts?: string[];
-  transformer?: string;
-  watchFolders?: string[];
-  config?: string;
-  projectRoot?: string;
-  interactive: boolean;
-};
-
-async function runServer(_argv: Array<string>, ctx: Config, args: Args) {
-  let port = args.port ?? 8081;
-  let packager = true;
-
-  const packagerStatus = await isPackagerRunning(port);
-
-  if (
-    typeof packagerStatus === 'object' &&
-    packagerStatus.status === 'running'
-  ) {
-    if (packagerStatus.root === ctx.root) {
-      packager = false;
-      logAlreadyRunningBundler(port);
-    } else {
-      const result = await handlePortUnavailable(port, ctx.root, packager);
-      [port, packager] = [result.port, result.packager];
-    }
-  } else if (packagerStatus === 'unrecognized') {
-    const result = await handlePortUnavailable(port, ctx.root, packager);
-    [port, packager] = [result.port, result.packager];
-  }
-
-  if (packager === false) {
-    process.exit();
-  }
-
-  const metroConfig = await loadMetroConfig(ctx, {
-    config: args.config,
-    maxWorkers: args.maxWorkers,
-    port,
-    resetCache: args.resetCache,
-    watchFolders: args.watchFolders,
-    projectRoot: args.projectRoot,
-    sourceExts: args.sourceExts,
-  });
-  // if customLogReporterPath is provided, use the custom reporter, otherwise use the default one
-  let reporter: Reporter = metroConfig.reporter;
-  if (args.customLogReporterPath) {
-    const terminal = new Terminal(process.stdout);
-    const ReporterImpl = getReporterImpl(args.customLogReporterPath);
-    reporter = new ReporterImpl(terminal);
-  }
-
-  if (args.assetPlugins) {
-    // @ts-ignore - assigning to readonly property
-    metroConfig.transformer.assetPlugins = args.assetPlugins.map((plugin) =>
-      require.resolve(plugin),
-    );
-  }
-
-  const {
-    middleware,
-    websocketEndpoints,
-    messageSocketEndpoint,
-    eventsSocketEndpoint,
-  } = createDevServerMiddleware({
-    host: args.host,
-    port: metroConfig.server.port,
-    watchFolders: metroConfig.watchFolders,
-  });
-  middleware.use(indexPageMiddleware);
-
-  const customEnhanceMiddleware = metroConfig.server.enhanceMiddleware;
-  // @ts-ignore - assigning to readonly property
-  metroConfig.server.enhanceMiddleware = (
-    metroMiddleware: Middleware,
-    server: Server,
-  ) => {
-    if (customEnhanceMiddleware) {
-      metroMiddleware = customEnhanceMiddleware(metroMiddleware, server);
-    }
-    return middleware.use(metroMiddleware);
-  };
-
-  const serverInstance = await Metro.runServer(
-    {
-      ...metroConfig,
-      reporter: {
-        update(event: ReportableEvent) {
-          reporter.update(event);
-          // Add reportEvent to the reporter update method.
-          eventsSocketEndpoint.reportEvent(event);
-        },
-      },
-    },
-    {
-      host: args.host,
-      secure: args.https,
-      secureCert: args.cert,
-      secureKey: args.key,
-      // @ts-ignore - ws.Server types are incompatible
-      websocketEndpoints,
-    },
-  );
-
-  if (args.interactive) {
-    enableWatchMode(messageSocketEndpoint, ctx);
-  }
-
-  // In Node 8, the default keep-alive for an HTTP connection is 5 seconds. In
-  // early versions of Node 8, this was implemented in a buggy way which caused
-  // some HTTP responses (like those containing large JS bundles) to be
-  // terminated early.
-  //
-  // As a workaround, arbitrarily increase the keep-alive from 5 to 30 seconds,
-  // which should be enough to send even the largest of JS bundles.
-  //
-  // For more info: https://github.com/nodejs/node/issues/13391
-  //
-  serverInstance.keepAliveTimeout = 30000;
-
-  await version.logIfUpdateAvailable(ctx.root);
-  logger.info(`Started dev server at ${chalk.bold(port)}`);
-}
-
-function getReporterImpl(customLogReporterPath: string) {
-  try {
-    // First we let require resolve it, so we can require packages in node_modules
-    // as expected. eg: require('my-package/reporter');
-    return require(customLogReporterPath);
-  } catch (e) {
-    if ((<any>e).code !== 'MODULE_NOT_FOUND') {
-      throw e;
-    }
-    // If that doesn't work, then we next try relative to the cwd, eg:
-    // require('./reporter');
-    return require(path.resolve(customLogReporterPath));
-  }
-}
-
-export default runServer;
diff --git a/packages/cli-plugin-metro/src/commands/start/watchMode.ts b/packages/cli-plugin-metro/src/commands/start/watchMode.ts
deleted file mode 100644
index e0f2e6e1bc..0000000000
--- a/packages/cli-plugin-metro/src/commands/start/watchMode.ts
+++ /dev/null
@@ -1,83 +0,0 @@
-import readline from 'readline';
-import {logger, hookStdout} from '@react-native-community/cli-tools';
-import execa from 'execa';
-import chalk from 'chalk';
-import {Config} from '@react-native-community/cli-types';
-import {KeyPressHandler} from '../../tools/KeyPressHandler';
-
-const CTRL_C = '\u0003';
-const CTRL_Z = '\u0026';
-
-function printWatchModeInstructions() {
-  logger.log(
-    `${chalk.bold('r')} - reload the app\n${chalk.bold(
-      'd',
-    )} - open developer menu\n${chalk.bold('i')} - run on iOS\n${chalk.bold(
-      'a',
-    )} - run on Android`,
-  );
-}
-
-function enableWatchMode(messageSocket: any, ctx: Config) {
-  // We need to set this to true to catch key presses individually.
-  // As a result we have to implement our own method for exiting
-  // and other commands (e.g. ctrl+c & ctrl+z)
-  if (!process.stdin.setRawMode) {
-    logger.debug('Watch mode is not supported in this environment');
-    return;
-  }
-
-  readline.emitKeypressEvents(process.stdin);
-
-  process.stdin.setRawMode(true);
-
-  // We have no way of knowing when the dependency graph is done loading
-  // except by hooking into stdout itself. We want to print instructions
-  // right after its done loading.
-  const restore = hookStdout((output: string) => {
-    if (output.includes('Fast - Scalable - Integrated')) {
-      printWatchModeInstructions();
-      restore();
-    }
-  });
-
-  const onPress = (key: string) => {
-    switch (key) {
-      case 'r':
-        messageSocket.broadcast('reload', null);
-        logger.info('Reloading app...');
-        break;
-      case 'd':
-        messageSocket.broadcast('devMenu', null);
-        logger.info('Opening Dev Menu...');
-        break;
-      case 'i':
-        logger.info('Opening app on iOS...');
-        execa('npx', [
-          'react-native',
-          'run-ios',
-          ...(ctx.project.ios?.watchModeCommandParams ?? []),
-        ]).stdout?.pipe(process.stdout);
-        break;
-      case 'a':
-        logger.info('Opening app on Android...');
-        execa('npx', [
-          'react-native',
-          'run-android',
-          ...(ctx.project.android?.watchModeCommandParams ?? []),
-        ]).stdout?.pipe(process.stdout);
-        break;
-      case CTRL_Z:
-        process.emit('SIGTSTP', 'SIGTSTP');
-        break;
-      case CTRL_C:
-        process.exit();
-    }
-  };
-
-  const keyPressHandler = new KeyPressHandler(onPress);
-  keyPressHandler.createInteractionListener();
-  keyPressHandler.startInterceptingKeyStrokes();
-}
-
-export default enableWatchMode;
diff --git a/packages/cli-plugin-metro/src/index.ts b/packages/cli-plugin-metro/src/index.ts
deleted file mode 100644
index 790f67dfa5..0000000000
--- a/packages/cli-plugin-metro/src/index.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export type {MetroConfig} from 'metro-config';
-export {
-  Config,
-  ConfigLoadingContext,
-  default as loadMetroConfig,
-} from './tools/loadMetroConfig';
-export {
-  default as commands,
-  buildBundleWithConfig,
-  CommandLineArgs,
-} from './commands';
diff --git a/packages/cli-plugin-metro/src/tools/KeyPressHandler.ts b/packages/cli-plugin-metro/src/tools/KeyPressHandler.ts
deleted file mode 100644
index d9397eb87b..0000000000
--- a/packages/cli-plugin-metro/src/tools/KeyPressHandler.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import {
-  CLIError,
-  addInteractionListener,
-  logger,
-} from '@react-native-community/cli-tools';
-
-/** An abstract key stroke interceptor. */
-export class KeyPressHandler {
-  private isInterceptingKeyStrokes = false;
-
-  constructor(public onPress: (key: string) => void) {}
-
-  /** Start observing interaction pause listeners. */
-  createInteractionListener() {
-    // Support observing prompts.
-    let wasIntercepting = false;
-
-    const listener = ({pause}: {pause: boolean}) => {
-      if (pause) {
-        // Track if we were already intercepting key strokes before pausing, so we can
-        // resume after pausing.
-        wasIntercepting = this.isInterceptingKeyStrokes;
-        this.stopInterceptingKeyStrokes();
-      } else if (wasIntercepting) {
-        // Only start if we were previously intercepting.
-        this.startInterceptingKeyStrokes();
-      }
-    };
-
-    addInteractionListener(listener);
-  }
-
-  private handleKeypress = async (key: string) => {
-    try {
-      logger.debug(`Key pressed: ${key}`);
-      this.onPress(key);
-    } catch (error) {
-      return new CLIError(
-        'There was an error with the key press handler.',
-        (error as Error).message,
-      );
-    } finally {
-      return;
-    }
-  };
-
-  /** Start intercepting all key strokes and passing them to the input `onPress` method. */
-  startInterceptingKeyStrokes() {
-    if (this.isInterceptingKeyStrokes) {
-      return;
-    }
-    this.isInterceptingKeyStrokes = true;
-    const {stdin} = process;
-    stdin.setRawMode(true);
-    stdin.resume();
-    stdin.setEncoding('utf8');
-    stdin.on('data', this.handleKeypress);
-  }
-
-  /** Stop intercepting all key strokes. */
-  stopInterceptingKeyStrokes() {
-    if (!this.isInterceptingKeyStrokes) {
-      return;
-    }
-    this.isInterceptingKeyStrokes = false;
-    const {stdin} = process;
-    stdin.removeListener('data', this.handleKeypress);
-    stdin.setRawMode(false);
-    stdin.resume();
-  }
-}
diff --git a/packages/cli-plugin-metro/src/tools/loadMetroConfig.ts b/packages/cli-plugin-metro/src/tools/loadMetroConfig.ts
deleted file mode 100644
index d5f09495db..0000000000
--- a/packages/cli-plugin-metro/src/tools/loadMetroConfig.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import path from 'path';
-import {
-  ConfigT,
-  InputConfigT,
-  loadConfig,
-  mergeConfig,
-  resolveConfig,
-  ResolverConfigT,
-  YargArguments,
-} from 'metro-config';
-import {CLIError, logger} from '@react-native-community/cli-tools';
-import type {Config} from '@react-native-community/cli-types';
-import {reactNativePlatformResolver} from './metroPlatformResolver';
-
-export type {Config};
-
-export type ConfigLoadingContext = Pick<
-  Config,
-  'root' | 'reactNativePath' | 'platforms'
->;
-
-declare global {
-  var __REACT_NATIVE_METRO_CONFIG_LOADED: boolean;
-}
-
-/**
- * Get the config options to override based on RN CLI inputs.
- */
-function getOverrideConfig(ctx: ConfigLoadingContext): InputConfigT {
-  const outOfTreePlatforms = Object.keys(ctx.platforms).filter(
-    (platform) => ctx.platforms[platform].npmPackageName,
-  );
-  const resolver: Partial<ResolverConfigT> = {
-    platforms: [...Object.keys(ctx.platforms), 'native'],
-  };
-
-  if (outOfTreePlatforms.length) {
-    resolver.resolveRequest = reactNativePlatformResolver(
-      outOfTreePlatforms.reduce<{[platform: string]: string}>(
-        (result, platform) => {
-          result[platform] = ctx.platforms[platform].npmPackageName!;
-          return result;
-        },
-        {},
-      ),
-    );
-  }
-
-  return {
-    resolver,
-    serializer: {
-      // We can include multiple copies of InitializeCore here because metro will
-      // only add ones that are already part of the bundle
-      getModulesRunBeforeMainModule: () => [
-        require.resolve(
-          path.join(ctx.reactNativePath, 'Libraries/Core/InitializeCore'),
-        ),
-        ...outOfTreePlatforms.map((platform) =>
-          require.resolve(
-            `${ctx.platforms[platform]
-              .npmPackageName!}/Libraries/Core/InitializeCore`,
-            {paths: [ctx.root]},
-          ),
-        ),
-      ],
-    },
-  };
-}
-
-/**
- * Load Metro config.
- *
- * Allows the CLI to override select values in `metro.config.js` based on
- * dynamic user options in `ctx`.
- */
-export default async function loadMetroConfig(
-  ctx: ConfigLoadingContext,
-  options: YargArguments = {},
-): Promise<ConfigT> {
-  const overrideConfig = getOverrideConfig(ctx);
-
-  const cwd = ctx.root;
-  const projectConfig = await resolveConfig(options.config, cwd);
-
-  if (projectConfig.isEmpty) {
-    throw new CLIError(`No Metro config found in ${cwd}`);
-  }
-
-  logger.debug(`Reading Metro config from ${projectConfig.filepath}`);
-
-  if (!global.__REACT_NATIVE_METRO_CONFIG_LOADED) {
-    const warning = `
-=================================================================================================
-
-From React Native 0.73, your project's Metro config should extend '@react-native/metro-config'
-or it will fail to build. Please copy the template at:
-https://github.com/facebook/react-native/blob/main/packages/react-native/template/metro.config.js
-
-This warning will be removed in future (https://github.com/facebook/metro/issues/1018).
-
-=================================================================================================
-    `;
-
-    for (const line of warning.trim().split('\n')) {
-      logger.warn(line);
-    }
-  }
-
-  return mergeConfig(
-    await loadConfig({
-      cwd,
-      ...options,
-    }),
-    overrideConfig,
-  );
-}
diff --git a/packages/cli-plugin-metro/src/tools/metroPlatformResolver.ts b/packages/cli-plugin-metro/src/tools/metroPlatformResolver.ts
deleted file mode 100644
index 39845f3842..0000000000
--- a/packages/cli-plugin-metro/src/tools/metroPlatformResolver.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * This is an implementation of a metro resolveRequest option which will remap react-native imports
- * to different npm packages based on the platform requested.  This allows a single metro instance/config
- * to produce bundles for multiple out of tree platforms at a time.
- *
- * @param platformImplementations
- * A map of platform to npm package that implements that platform
- *
- * Ex:
- * {
- *    windows: 'react-native-windows'
- *    macos: 'react-native-macos'
- * }
- */
-
-import type {CustomResolver} from 'metro-resolver';
-
-export function reactNativePlatformResolver(platformImplementations: {
-  [platform: string]: string;
-}): CustomResolver {
-  return (context, moduleName, platform) => {
-    let modifiedModuleName = moduleName;
-    if (platform != null && platformImplementations[platform]) {
-      if (moduleName === 'react-native') {
-        modifiedModuleName = platformImplementations[platform];
-      } else if (moduleName.startsWith('react-native/')) {
-        modifiedModuleName = `${
-          platformImplementations[platform]
-        }/${modifiedModuleName.slice('react-native/'.length)}`;
-      }
-    }
-    return context.resolveRequest(context, modifiedModuleName, platform);
-  };
-}
diff --git a/packages/cli-plugin-metro/tsconfig.json b/packages/cli-plugin-metro/tsconfig.json
deleted file mode 100644
index bc964d301d..0000000000
--- a/packages/cli-plugin-metro/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  "extends": "../../tsconfig.json",
-  "compilerOptions": {
-    "rootDir": "src",
-    "outDir": "build"
-  },
-  "references": [
-    {"path": "../cli-types"},
-    {"path": "../cli-server-api"},
-    {"path": "../cli-tools"},
-  ]
-}
diff --git a/packages/cli-plugin-metro/types/@react-native/metro-config/index.d.ts b/packages/cli-plugin-metro/types/@react-native/metro-config/index.d.ts
deleted file mode 100644
index eaf8bba350..0000000000
--- a/packages/cli-plugin-metro/types/@react-native/metro-config/index.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-declare module '@react-native/metro-config' {
-  import type {ConfigT} from 'metro-config';
-
-  export function getDefaultConfig(projectRoot: string): ConfigT;
-}
diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts
index b2c897a8ce..c9c15cee3f 100644
--- a/packages/cli/src/commands/index.ts
+++ b/packages/cli/src/commands/index.ts
@@ -2,13 +2,11 @@ import {Command, DetachedCommand} from '@react-native-community/cli-types';
 import {commands as cleanCommands} from '@react-native-community/cli-clean';
 import {commands as doctorCommands} from '@react-native-community/cli-doctor';
 import {commands as configCommands} from '@react-native-community/cli-config';
-import {commands as metroCommands} from '@react-native-community/cli-plugin-metro';
 import profileHermes from '@react-native-community/cli-hermes';
 import upgrade from './upgrade/upgrade';
 import init from './init';
 
 export const projectCommands = [
-  ...metroCommands,
   ...configCommands,
   cleanCommands.clean,
   doctorCommands.info,
diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json
index c11f08bbe3..2607dd0853 100644
--- a/packages/cli/tsconfig.json
+++ b/packages/cli/tsconfig.json
@@ -9,7 +9,6 @@
     {"path": "../cli-config"},
     {"path": "../cli-doctor"},
     {"path": "../cli-hermes"},
-    {"path": "../cli-plugin-metro"},
     {"path": "../cli-server-api"},
     {"path": "../cli-types"},
     {"path": "../cli-debugger-ui"},
diff --git a/scripts/helpers.js b/scripts/helpers.js
index 21ce121998..c18b0546f2 100644
--- a/scripts/helpers.js
+++ b/scripts/helpers.js
@@ -11,6 +11,7 @@ const chalk = require('chalk');
 const stringLength = require('string-length');
 
 const PACKAGES_DIR = path.resolve(__dirname, '../packages');
+const REMOVED_PACKAGES = new Set(['cli-plugin-metro']);
 
 const OK = chalk.reset.inverse.bold.green(' DONE ');
 
@@ -18,7 +19,11 @@ function getPackages() {
   return fs
     .readdirSync(PACKAGES_DIR)
     .map((file) => path.resolve(PACKAGES_DIR, file))
-    .filter((f) => fs.lstatSync(path.resolve(f)).isDirectory());
+    .filter(
+      (f) =>
+        fs.lstatSync(path.resolve(f)).isDirectory() &&
+        !REMOVED_PACKAGES.has(path.basename(f)),
+    );
 }
 
 function adjustToTerminalWidth(str) {
diff --git a/yarn.lock b/yarn.lock
index 0c80992dba..4199e587c9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -31,16 +31,29 @@
   dependencies:
     "@babel/highlight" "^7.18.6"
 
+"@babel/code-frame@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.10.tgz#1c20e612b768fefa75f6e90d6ecb86329247f0a3"
+  integrity sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==
+  dependencies:
+    "@babel/highlight" "^7.22.10"
+    chalk "^2.4.2"
+
 "@babel/compat-data@^7.14.5":
   version "7.20.5"
   resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.5.tgz#86f172690b093373a933223b4745deeb6049e733"
   integrity sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==
 
-"@babel/compat-data@^7.20.0", "@babel/compat-data@^7.22.6":
+"@babel/compat-data@^7.20.0":
   version "7.22.6"
   resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.6.tgz#15606a20341de59ba02cd2fcc5086fcbe73bf544"
   integrity sha512-29tfsWTq2Ftu7MXmimyC0C5FDZv5DYxOZkh3XD3+QW4V/BYuv/LyEsjj3c0hqedEaDt6DBfDvexMKU8YevdqFg==
 
+"@babel/compat-data@^7.22.9":
+  version "7.22.9"
+  resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730"
+  integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==
+
 "@babel/compat-data@^7.9.0":
   version "7.14.7"
   resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.7.tgz#7b047d7a3a89a67d2258dc61f604f098f1bc7e08"
@@ -68,25 +81,25 @@
     source-map "^0.5.0"
 
 "@babel/core@^7.20.0":
-  version "7.22.8"
-  resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.8.tgz#386470abe884302db9c82e8e5e87be9e46c86785"
-  integrity sha512-75+KxFB4CZqYRXjx4NlR4J7yGvKumBuZTmV4NV6v09dVXXkuYVYLT68N6HCzLvfJ+fWCxQsntNzKwwIXL4bHnw==
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.10.tgz#aad442c7bcd1582252cb4576747ace35bc122f35"
+  integrity sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw==
   dependencies:
     "@ampproject/remapping" "^2.2.0"
-    "@babel/code-frame" "^7.22.5"
-    "@babel/generator" "^7.22.7"
-    "@babel/helper-compilation-targets" "^7.22.6"
-    "@babel/helper-module-transforms" "^7.22.5"
-    "@babel/helpers" "^7.22.6"
-    "@babel/parser" "^7.22.7"
+    "@babel/code-frame" "^7.22.10"
+    "@babel/generator" "^7.22.10"
+    "@babel/helper-compilation-targets" "^7.22.10"
+    "@babel/helper-module-transforms" "^7.22.9"
+    "@babel/helpers" "^7.22.10"
+    "@babel/parser" "^7.22.10"
     "@babel/template" "^7.22.5"
-    "@babel/traverse" "^7.22.8"
-    "@babel/types" "^7.22.5"
-    "@nicolo-ribaudo/semver-v6" "^6.3.3"
+    "@babel/traverse" "^7.22.10"
+    "@babel/types" "^7.22.10"
     convert-source-map "^1.7.0"
     debug "^4.1.0"
     gensync "^1.0.0-beta.2"
     json5 "^2.2.2"
+    semver "^6.3.1"
 
 "@babel/generator@^7.14.5":
   version "7.20.5"
@@ -97,7 +110,17 @@
     "@jridgewell/gen-mapping" "^0.3.2"
     jsesc "^2.5.1"
 
-"@babel/generator@^7.20.0", "@babel/generator@^7.20.5", "@babel/generator@^7.22.7":
+"@babel/generator@^7.20.0", "@babel/generator@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.10.tgz#c92254361f398e160645ac58831069707382b722"
+  integrity sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==
+  dependencies:
+    "@babel/types" "^7.22.10"
+    "@jridgewell/gen-mapping" "^0.3.2"
+    "@jridgewell/trace-mapping" "^0.3.17"
+    jsesc "^2.5.1"
+
+"@babel/generator@^7.20.5", "@babel/generator@^7.22.7":
   version "7.22.7"
   resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.7.tgz#a6b8152d5a621893f2c9dacf9a4e286d520633d5"
   integrity sha512-p+jPjMG+SI8yvIaxGgeW24u7q9+5+TGpZh8/CuB7RhBKd7RCy8FayNEFNNKrNK/eUcY/4ExQqLmyrvBXKsIcwQ==
@@ -148,16 +171,16 @@
     browserslist "^4.21.3"
     semver "^6.3.0"
 
-"@babel/helper-compilation-targets@^7.22.6":
-  version "7.22.6"
-  resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.6.tgz#e30d61abe9480aa5a83232eb31c111be922d2e52"
-  integrity sha512-534sYEqWD9VfUm3IPn2SLcH4Q3P86XL+QvqdC7ZsFrzyyPF3T4XGiVghF6PTYNdWg6pXuoqXxNQAhbYeEInTzA==
+"@babel/helper-compilation-targets@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz#01d648bbc25dd88f513d862ee0df27b7d4e67024"
+  integrity sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==
   dependencies:
-    "@babel/compat-data" "^7.22.6"
+    "@babel/compat-data" "^7.22.9"
     "@babel/helper-validator-option" "^7.22.5"
-    "@nicolo-ribaudo/semver-v6" "^6.3.3"
     browserslist "^4.21.9"
     lru-cache "^5.1.1"
+    semver "^6.3.1"
 
 "@babel/helper-compilation-targets@^7.8.7":
   version "7.14.5"
@@ -299,19 +322,16 @@
     "@babel/traverse" "^7.20.1"
     "@babel/types" "^7.20.2"
 
-"@babel/helper-module-transforms@^7.22.5":
-  version "7.22.5"
-  resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz#0f65daa0716961b6e96b164034e737f60a80d2ef"
-  integrity sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==
+"@babel/helper-module-transforms@^7.22.9":
+  version "7.22.9"
+  resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz#92dfcb1fbbb2bc62529024f72d942a8c97142129"
+  integrity sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==
   dependencies:
     "@babel/helper-environment-visitor" "^7.22.5"
     "@babel/helper-module-imports" "^7.22.5"
     "@babel/helper-simple-access" "^7.22.5"
-    "@babel/helper-split-export-declaration" "^7.22.5"
+    "@babel/helper-split-export-declaration" "^7.22.6"
     "@babel/helper-validator-identifier" "^7.22.5"
-    "@babel/template" "^7.22.5"
-    "@babel/traverse" "^7.22.5"
-    "@babel/types" "^7.22.5"
 
 "@babel/helper-optimise-call-expression@^7.18.6", "@babel/helper-optimise-call-expression@^7.22.5":
   version "7.22.5"
@@ -412,7 +432,7 @@
   dependencies:
     "@babel/types" "^7.18.6"
 
-"@babel/helper-split-export-declaration@^7.18.6", "@babel/helper-split-export-declaration@^7.22.5", "@babel/helper-split-export-declaration@^7.22.6":
+"@babel/helper-split-export-declaration@^7.18.6", "@babel/helper-split-export-declaration@^7.22.6":
   version "7.22.6"
   resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c"
   integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==
@@ -473,14 +493,14 @@
     "@babel/traverse" "^7.20.5"
     "@babel/types" "^7.20.5"
 
-"@babel/helpers@^7.22.6":
-  version "7.22.6"
-  resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.6.tgz#8e61d3395a4f0c5a8060f309fb008200969b5ecd"
-  integrity sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==
+"@babel/helpers@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.10.tgz#ae6005c539dfbcb5cd71fb51bfc8a52ba63bc37a"
+  integrity sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==
   dependencies:
     "@babel/template" "^7.22.5"
-    "@babel/traverse" "^7.22.6"
-    "@babel/types" "^7.22.5"
+    "@babel/traverse" "^7.22.10"
+    "@babel/types" "^7.22.10"
 
 "@babel/highlight@^7.10.4":
   version "7.16.10"
@@ -500,6 +520,15 @@
     chalk "^2.0.0"
     js-tokens "^4.0.0"
 
+"@babel/highlight@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.10.tgz#02a3f6d8c1cb4521b2fd0ab0da8f4739936137d7"
+  integrity sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==
+  dependencies:
+    "@babel/helper-validator-identifier" "^7.22.5"
+    chalk "^2.4.2"
+    js-tokens "^4.0.0"
+
 "@babel/parser@^7.1.0", "@babel/parser@^7.4.4", "@babel/parser@^7.7.0":
   version "7.14.7"
   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.7.tgz#6099720c8839ca865a2637e6c85852ead0bdb595"
@@ -510,11 +539,16 @@
   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.5.tgz#7f3c7335fe417665d929f34ae5dceae4c04015e8"
   integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==
 
-"@babel/parser@^7.18.10", "@babel/parser@^7.20.0", "@babel/parser@^7.20.5", "@babel/parser@^7.22.5", "@babel/parser@^7.22.7":
+"@babel/parser@^7.18.10", "@babel/parser@^7.20.5", "@babel/parser@^7.22.5", "@babel/parser@^7.22.7":
   version "7.22.7"
   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.7.tgz#df8cf085ce92ddbdbf668a7f186ce848c9036cae"
   integrity sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==
 
+"@babel/parser@^7.20.0", "@babel/parser@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.10.tgz#e37634f9a12a1716136c44624ef54283cabd3f55"
+  integrity sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==
+
 "@babel/plugin-proposal-async-generator-functions@^7.8.3":
   version "7.8.3"
   resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz#bad329c670b382589721b27540c7d288601c6e6f"
@@ -1088,11 +1122,11 @@
   integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
 
 "@babel/runtime@^7.0.0":
-  version "7.22.6"
-  resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438"
-  integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.10.tgz#ae3e9631fd947cb7e3610d3e9d8fef5f76696682"
+  integrity sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==
   dependencies:
-    regenerator-runtime "^0.13.11"
+    regenerator-runtime "^0.14.0"
 
 "@babel/runtime@^7.4.4", "@babel/runtime@^7.8.4":
   version "7.9.2"
@@ -1159,7 +1193,7 @@
     debug "^4.1.0"
     globals "^11.1.0"
 
-"@babel/traverse@^7.19.1", "@babel/traverse@^7.20.0", "@babel/traverse@^7.20.1", "@babel/traverse@^7.20.5", "@babel/traverse@^7.22.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8":
+"@babel/traverse@^7.19.1", "@babel/traverse@^7.20.1", "@babel/traverse@^7.20.5", "@babel/traverse@^7.22.5":
   version "7.22.8"
   resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.8.tgz#4d4451d31bc34efeae01eac222b514a77aa4000e"
   integrity sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==
@@ -1175,6 +1209,22 @@
     debug "^4.1.0"
     globals "^11.1.0"
 
+"@babel/traverse@^7.20.0", "@babel/traverse@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.10.tgz#20252acb240e746d27c2e82b4484f199cf8141aa"
+  integrity sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==
+  dependencies:
+    "@babel/code-frame" "^7.22.10"
+    "@babel/generator" "^7.22.10"
+    "@babel/helper-environment-visitor" "^7.22.5"
+    "@babel/helper-function-name" "^7.22.5"
+    "@babel/helper-hoist-variables" "^7.22.5"
+    "@babel/helper-split-export-declaration" "^7.22.6"
+    "@babel/parser" "^7.22.10"
+    "@babel/types" "^7.22.10"
+    debug "^4.1.0"
+    globals "^11.1.0"
+
 "@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
   version "7.14.5"
   resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.5.tgz#3bb997ba829a2104cedb20689c4a5b8121d383ff"
@@ -1192,7 +1242,7 @@
     "@babel/helper-validator-identifier" "^7.19.1"
     to-fast-properties "^2.0.0"
 
-"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.22.5":
+"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.22.5":
   version "7.22.5"
   resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.5.tgz#cd93eeaab025880a3a47ec881f4b096a5b786fbe"
   integrity sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==
@@ -1201,6 +1251,15 @@
     "@babel/helper-validator-identifier" "^7.22.5"
     to-fast-properties "^2.0.0"
 
+"@babel/types@^7.20.0", "@babel/types@^7.22.10":
+  version "7.22.10"
+  resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.10.tgz#4a9e76446048f2c66982d1a989dd12b8a2d2dc03"
+  integrity sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==
+  dependencies:
+    "@babel/helper-string-parser" "^7.22.5"
+    "@babel/helper-validator-identifier" "^7.22.5"
+    to-fast-properties "^2.0.0"
+
 "@bcoe/v8-coverage@^0.2.3":
   version "0.2.3"
   resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
@@ -1704,11 +1763,6 @@
     call-me-maybe "^1.0.1"
     glob-to-regexp "^0.3.0"
 
-"@nicolo-ribaudo/semver-v6@^6.3.3":
-  version "6.3.3"
-  resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/semver-v6/-/semver-v6-6.3.3.tgz#ea6d23ade78a325f7a52750aab1526b02b628c29"
-  integrity sha512-3Yc1fUTs69MG/uZbJlLSI3JISMn2UV2rg+1D/vROUqZyh3l6iYHCs7GMp+M40ZD7yOdDbYjJcU1oTJhrc+dGKg==
-
 "@nodelib/fs.scandir@2.1.5":
   version "2.1.5"
   resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -2034,6 +2088,20 @@
   resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
   integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
 
+"@react-native-community/cli-plugin-metro@12.0.0-alpha.10":
+  version "12.0.0-alpha.10"
+  resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-12.0.0-alpha.10.tgz#59e4039d6da037db553bd80fbc628b33054d0107"
+  integrity sha512-fCGQsN50j8Sk7m6qmtoKQFQnPguqucYcsngrJMLhS8e33gaX6y4x7Lt/8o3Qfsh7AMte6yYMiNaxPCYGkqR6/A==
+  dependencies:
+    "@react-native-community/cli-server-api" "12.0.0-alpha.10"
+    "@react-native-community/cli-tools" "12.0.0-alpha.10"
+    chalk "^4.1.2"
+    execa "^5.0.0"
+    metro "0.78.0"
+    metro-config "0.78.0"
+    metro-core "0.78.0"
+    readline "^1.3.0"
+
 "@react-native-community/eslint-config@^2.0.0":
   version "2.0.0"
   resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-2.0.0.tgz#35dcc529a274803fc4e0a6b3d6c274551fb91774"
@@ -3334,7 +3402,7 @@ browserslist@^4.16.6:
     node-releases "^2.0.6"
     update-browserslist-db "^1.0.9"
 
-browserslist@^4.21.3, browserslist@^4.21.9:
+browserslist@^4.21.3:
   version "4.21.9"
   resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.9.tgz#e11bdd3c313d7e2a9e87e8b4b0c7872b13897635"
   integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==
@@ -3344,6 +3412,16 @@ browserslist@^4.21.3, browserslist@^4.21.9:
     node-releases "^2.0.12"
     update-browserslist-db "^1.0.11"
 
+browserslist@^4.21.9:
+  version "4.21.10"
+  resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0"
+  integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==
+  dependencies:
+    caniuse-lite "^1.0.30001517"
+    electron-to-chromium "^1.4.477"
+    node-releases "^2.0.13"
+    update-browserslist-db "^1.0.11"
+
 bser@2.1.1:
   version "2.1.1"
   resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"
@@ -3524,6 +3602,11 @@ caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001503:
   resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001513.tgz#382fe5fbfb0f7abbaf8c55ca3ac71a0307a752e9"
   integrity sha512-pnjGJo7SOOjAGytZZ203Em95MRM8Cr6jhCXNF/FAXTpCTRTECnqQWLpiTRqrFtdYcth8hf4WECUpkezuYsMVww==
 
+caniuse-lite@^1.0.30001517:
+  version "1.0.30001521"
+  resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001521.tgz#e9930cf499f7c1e80334b6c1fbca52e00d889e56"
+  integrity sha512-fnx1grfpEOvDGH+V17eccmNjucGUnCbP6KL+l5KqBIerp26WK/+RQ7CIDE37KGJjaPyqWXXlFUyKiWmvdNNKmQ==
+
 capture-exit@^2.0.0:
   version "2.0.0"
   resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4"
@@ -4714,6 +4797,11 @@ electron-to-chromium@^1.4.251, electron-to-chromium@^1.4.431:
   resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.453.tgz#0a81fdc1943db202e8724d9f61369a71f0dd51e8"
   integrity sha512-BU8UtQz6CB3T7RIGhId4BjmjJVXQDujb0+amGL8jpcluFJr6lwspBOvkUbnttfpZCm4zFMHmjrX1QrdPWBBMjQ==
 
+electron-to-chromium@^1.4.477:
+  version "1.4.495"
+  resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.495.tgz#d72d2eddc05d07c538275a00f2619b113848bff6"
+  integrity sha512-mwknuemBZnoOCths4GtpU/SDuVMp3uQHKa2UNJT9/aVD6WVRjGpXOxRGX7lm6ILIenTdGXPSTCTDaWos5tEU8Q==
+
 elliptic@^6.0.0:
   version "6.5.4"
   resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
@@ -7523,16 +7611,16 @@ jest-validate@^26.6.2:
     pretty-format "^26.6.2"
 
 jest-validate@^29.2.1:
-  version "29.6.1"
-  resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.6.1.tgz#765e684af6e2c86dce950aebefbbcd4546d69f7b"
-  integrity sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==
+  version "29.6.2"
+  resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.6.2.tgz#25d972af35b2415b83b1373baf1a47bb266c1082"
+  integrity sha512-vGz0yMN5fUFRRbpJDPwxMpgSXW1LDKROHfBopAvDcmD6s+B/s8WJrwi+4bfH4SdInBA5C3P3BI19dBtKzx1Arg==
   dependencies:
     "@jest/types" "^29.6.1"
     camelcase "^6.2.0"
     chalk "^4.0.0"
     jest-get-type "^29.4.3"
     leven "^3.1.0"
-    pretty-format "^29.6.1"
+    pretty-format "^29.6.2"
 
 jest-watcher@^26.6.2:
   version "26.6.2"
@@ -8951,7 +9039,7 @@ node-notifier@^8.0.0:
     uuid "^8.3.0"
     which "^2.0.2"
 
-node-releases@^2.0.12, node-releases@^2.0.6:
+node-releases@^2.0.12, node-releases@^2.0.13, node-releases@^2.0.6:
   version "2.0.13"
   resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d"
   integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==
@@ -10291,15 +10379,6 @@ pretty-format@^26.0.0, pretty-format@^26.6.2:
     ansi-styles "^4.0.0"
     react-is "^17.0.1"
 
-pretty-format@^29.6.1:
-  version "29.6.1"
-  resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.1.tgz#ec838c288850b7c4f9090b867c2d4f4edbfb0f3e"
-  integrity sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==
-  dependencies:
-    "@jest/schemas" "^29.6.0"
-    ansi-styles "^5.0.0"
-    react-is "^18.0.0"
-
 pretty-format@^29.6.2:
   version "29.6.2"
   resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.2.tgz#3d5829261a8a4d89d8b9769064b29c50ed486a47"
@@ -10654,7 +10733,7 @@ readdirp@~3.3.0:
 readline@^1.3.0:
   version "1.3.0"
   resolved "https://registry.yarnpkg.com/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c"
-  integrity sha1-xYDXfvLPyHUrEySYBg3JeTp6wBw=
+  integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==
 
 realpath-native@^2.0.0:
   version "2.0.0"
@@ -10698,11 +10777,16 @@ regenerator-runtime@^0.11.0:
   resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
   integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
 
-regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.4:
+regenerator-runtime@^0.13.4:
   version "0.13.11"
   resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
   integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
 
+regenerator-runtime@^0.14.0:
+  version "0.14.0"
+  resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45"
+  integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==
+
 regenerator-transform@^0.14.2:
   version "0.14.4"
   resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.4.tgz#5266857896518d1616a78a0479337a30ea974cc7"
@@ -11107,6 +11191,11 @@ semver@^6.0.0, semver@^6.3.0:
   resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
   integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
 
+semver@^6.3.1:
+  version "6.3.1"
+  resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
+  integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
+
 semver@^7.0.0, semver@^7.3.7, semver@^7.3.8:
   version "7.5.4"
   resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
@@ -11960,9 +12049,9 @@ terser@^4.3.9:
     source-map-support "~0.5.12"
 
 terser@^5.15.0:
-  version "5.18.2"
-  resolved "https://registry.yarnpkg.com/terser/-/terser-5.18.2.tgz#ff3072a0faf21ffd38f99acc9a0ddf7b5f07b948"
-  integrity sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==
+  version "5.19.2"
+  resolved "https://registry.yarnpkg.com/terser/-/terser-5.19.2.tgz#bdb8017a9a4a8de4663a7983f45c506534f9234e"
+  integrity sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==
   dependencies:
     "@jridgewell/source-map" "^0.3.3"
     acorn "^8.8.2"