@react-native/community-cli-plugin 0.78.0-rc.4 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ Start the React Native development server.
15
15
  #### Usage
16
16
 
17
17
  ```sh
18
- npx react-native start [options]
18
+ npx @react-native-community/cli start [options]
19
19
  ```
20
20
 
21
21
  #### Options
@@ -37,6 +37,7 @@ npx react-native start [options]
37
37
  | `--cert <path>` | Specify path to a custom SSL cert. |
38
38
  | `--config <string>` | Path to the CLI configuration file. |
39
39
  | `--no-interactive` | Disable interactive mode. |
40
+ | `--client-logs` | **[Deprecated]** Enable plain text JavaScript log streaming for all connected apps. |
40
41
 
41
42
  ### `bundle`
42
43
 
@@ -45,7 +46,7 @@ Build the bundle for the provided JavaScript entry file.
45
46
  #### Usage
46
47
 
47
48
  ```sh
48
- npx react-native bundle --entry-file <path> [options]
49
+ npx @react-native-community/cli bundle --entry-file <path> [options]
49
50
  ```
50
51
 
51
52
  #### Options
@@ -88,6 +88,14 @@ const startCommand = {
88
88
  name: "--no-interactive",
89
89
  description: "Disables interactive mode",
90
90
  },
91
+ {
92
+ name: "--client-logs",
93
+ description:
94
+ "[Deprecated] Enable plain text JavaScript log streaming for all " +
95
+ "connected apps. This feature is deprecated and will be removed in " +
96
+ "future.",
97
+ default: false,
98
+ },
91
99
  ],
92
100
  };
93
101
  var _default = (exports.default = startCommand);
@@ -99,6 +99,9 @@ async function runServer(_argv, cliConfig, args) {
99
99
  require.resolve(plugin)
100
100
  );
101
101
  }
102
+ if (!args.clientLogs) {
103
+ metroConfig.server.forwardClientLogs = false;
104
+ }
102
105
  let reportEvent;
103
106
  const terminal = new _metroCore.Terminal(process.stdout);
104
107
  const ReporterImpl = getReporterImpl(args.customLogReporterPath);
@@ -27,6 +27,7 @@ export type StartCommandArgs = {
27
27
  config?: string,
28
28
  projectRoot?: string,
29
29
  interactive: boolean,
30
+ clientLogs: boolean,
30
31
  };
31
32
 
32
33
  declare function runServer(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/community-cli-plugin",
3
- "version": "0.78.0-rc.4",
3
+ "version": "0.78.0",
4
4
  "description": "Core CLI commands for React Native",
5
5
  "keywords": [
6
6
  "react-native",
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@react-native/dev-middleware": "0.78.0-rc.4",
26
- "@react-native/metro-babel-transformer": "0.78.0-rc.4",
25
+ "@react-native/dev-middleware": "0.78.0",
26
+ "@react-native/metro-babel-transformer": "0.78.0",
27
27
  "chalk": "^4.0.0",
28
28
  "debug": "^2.2.0",
29
29
  "invariant": "^2.2.4",