Skip to content

Commit 42acc27

Browse files
authoredJan 23, 2024
chore: remove cli-plugin-metro package (#2272)
* chore: remove deprecated `cli-plugin-metro` package * docs: remove `cli-plugin-metro` from `CONTRIBUTING.md`
1 parent c4ffc06 commit 42acc27

File tree

5 files changed

+1
-32
lines changed

5 files changed

+1
-32
lines changed
 

‎CONTRIBUTING.md

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ _Note: you must use the `--watchFolders` flag with the `start` command when test
2121

2222
Because of a modular design of the CLI, we recommend developing using symbolic links to its packages. This way you can use it seamlessly in the tested project, as you'd use the locally installed CLI. Here's what you need to run in the terminal:
2323

24-
> [!NOTE]
25-
> `@react-native-community/cli-plugin-metro` has been relocated as [`@react-native/community-cli-plugin`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin). To make new contributions to this package, please open a PR in the [React Native repo](https://github.com/facebook/react-native) ([contributing guide](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#contributing)).
26-
2724
#### yarn v1
2825

2926
```sh

‎packages/cli-plugin-metro/README.md

-7
This file was deleted.

‎packages/cli-plugin-metro/package.json

-15
This file was deleted.

‎packages/cli/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@react-native-community/cli-debugger-ui": "13.5.1-alpha.0",
3030
"@react-native-community/cli-doctor": "13.5.1-alpha.0",
3131
"@react-native-community/cli-hermes": "13.5.1-alpha.0",
32-
"@react-native-community/cli-plugin-metro": "13.5.1-alpha.0",
3332
"@react-native-community/cli-server-api": "13.5.1-alpha.0",
3433
"@react-native-community/cli-tools": "13.5.1-alpha.0",
3534
"@react-native-community/cli-types": "13.5.1-alpha.0",

‎scripts/helpers.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,14 @@ const chalk = require('chalk');
1111
const stringLength = require('string-length');
1212

1313
const PACKAGES_DIR = path.resolve(__dirname, '../packages');
14-
const REMOVED_PACKAGES = new Set(['cli-plugin-metro']);
1514

1615
const OK = chalk.reset.inverse.bold.green(' DONE ');
1716

1817
function getPackages() {
1918
return fs
2019
.readdirSync(PACKAGES_DIR)
2120
.map((file) => path.resolve(PACKAGES_DIR, file))
22-
.filter(
23-
(f) =>
24-
fs.lstatSync(path.resolve(f)).isDirectory() &&
25-
!REMOVED_PACKAGES.has(path.basename(f)),
26-
);
21+
.filter((f) => fs.lstatSync(path.resolve(f)).isDirectory());
2722
}
2823

2924
function adjustToTerminalWidth(str) {

0 commit comments

Comments
 (0)