@react-native/community-cli-plugin 0.74.5 → 0.75.0-main

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
@@ -69,24 +69,6 @@ npx react-native bundle --entry-file <path> [options]
69
69
  | `--read-global-cache` | Attempt to fetch transformed JS code from the global cache, if configured. Defaults to `false`. |
70
70
  | `--config <string>` | Path to the CLI configuration file. |
71
71
 
72
- ### `ram-bundle`
73
-
74
- Build the [RAM bundle](https://reactnative.dev/docs/ram-bundles-inline-requires) for the provided JavaScript entry file.
75
-
76
- #### Usage
77
-
78
- ```sh
79
- npx react-native ram-bundle --entry-file <path> [options]
80
- ```
81
-
82
- #### Options
83
-
84
- Accepts all options supported by [`bundle`](#bundle) and the following:
85
-
86
- | Option | Description |
87
- | - | - |
88
- | `--indexed-ram-bundle` | Force the "Indexed RAM" bundle file format, even when building for Android. |
89
-
90
72
  ## Contributing
91
73
 
92
74
  Changes to this package can be made locally and tested against the `rn-tester` app, per the [Contributing guide](https://reactnative.dev/contributing/overview#contributing-code). During development, this package is automatically run from source with no build step.
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "bundleCommand", {
9
9
  return _bundle.default;
10
10
  },
11
11
  });
12
- Object.defineProperty(exports, "ramBundleCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _ramBundle.default;
16
- },
17
- });
18
12
  Object.defineProperty(exports, "startCommand", {
19
13
  enumerable: true,
20
14
  get: function () {
@@ -28,7 +22,6 @@ Object.defineProperty(exports, "unstable_buildBundleWithConfig", {
28
22
  },
29
23
  });
30
24
  var _bundle = _interopRequireDefault(require("./commands/bundle"));
31
- var _ramBundle = _interopRequireDefault(require("./commands/ram-bundle"));
32
25
  var _start = _interopRequireDefault(require("./commands/start"));
33
26
  var _buildBundle = require("./commands/bundle/buildBundle");
34
27
  function _interopRequireDefault(obj) {
@@ -10,7 +10,6 @@
10
10
  */
11
11
 
12
12
  export { default as bundleCommand } from "./commands/bundle";
13
- export { default as ramBundleCommand } from "./commands/ram-bundle";
14
13
  export { default as startCommand } from "./commands/start";
15
14
 
16
15
  export { unstable_buildBundleWithConfig } from "./commands/bundle/buildBundle";
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@react-native/community-cli-plugin",
3
- "version": "0.74.5",
3
+ "version": "0.75.0-main",
4
4
  "description": "Core CLI commands for React Native",
5
- "keywords": ["react-native", "tools"],
5
+ "keywords": [
6
+ "react-native",
7
+ "tools"
8
+ ],
6
9
  "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/community-cli-plugin#readme",
7
10
  "bugs": "https://github.com/facebook/react-native/issues",
8
11
  "repository": {
@@ -11,13 +14,18 @@
11
14
  "directory": "packages/community-cli-plugin"
12
15
  },
13
16
  "license": "MIT",
14
- "exports": { ".": "./dist/index.js", "./package.json": "./package.json" },
15
- "files": ["dist"],
17
+ "exports": {
18
+ ".": "./dist/index.js",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
16
24
  "dependencies": {
17
- "@react-native-community/cli-server-api": "13.6.1",
18
- "@react-native-community/cli-tools": "13.6.1",
19
- "@react-native/dev-middleware": "0.74.3",
20
- "@react-native/metro-babel-transformer": "0.74.2",
25
+ "@react-native-community/cli-server-api": "14.0.0-alpha.0",
26
+ "@react-native-community/cli-tools": "14.0.0-alpha.0",
27
+ "@react-native/dev-middleware": "0.75.0-main",
28
+ "@react-native/metro-babel-transformer": "0.75.0-main",
21
29
  "chalk": "^4.0.0",
22
30
  "execa": "^5.1.1",
23
31
  "metro": "^0.80.3",
@@ -27,6 +35,10 @@
27
35
  "querystring": "^0.2.1",
28
36
  "readline": "^1.3.0"
29
37
  },
30
- "devDependencies": { "metro-resolver": "^0.80.3" },
31
- "engines": { "node": ">=18" }
38
+ "devDependencies": {
39
+ "metro-resolver": "^0.80.3"
40
+ },
41
+ "engines": {
42
+ "node": ">=18"
43
+ }
32
44
  }
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true,
5
- });
6
- exports.default = void 0;
7
- var _bundle = _interopRequireDefault(require("../bundle"));
8
- var _buildBundle = _interopRequireDefault(require("../bundle/buildBundle"));
9
- var _RamBundle = _interopRequireDefault(
10
- require("metro/src/shared/output/RamBundle")
11
- );
12
- function _interopRequireDefault(obj) {
13
- return obj && obj.__esModule ? obj : { default: obj };
14
- }
15
- /**
16
- * Copyright (c) Meta Platforms, Inc. and affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- *
21
- *
22
- * @format
23
- * @oncall react_native
24
- */
25
-
26
- const ramBundleCommand = {
27
- name: "ram-bundle",
28
- description:
29
- "Build the RAM bundle for the provided JavaScript entry file. See https://reactnative.dev/docs/ram-bundles-inline-requires.",
30
- func: (argv, config, args) => {
31
- return (0, _buildBundle.default)(argv, config, args, _RamBundle.default);
32
- },
33
- options: [
34
- // $FlowFixMe[incompatible-type] options is nonnull
35
- ..._bundle.default.options,
36
- {
37
- name: "--indexed-ram-bundle",
38
- description:
39
- 'Force the "Indexed RAM" bundle file format, even when building for android',
40
- default: false,
41
- },
42
- ],
43
- };
44
- var _default = ramBundleCommand;
45
- exports.default = _default;
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- * @oncall react_native
10
- */
11
-
12
- import type { Command } from "@react-native-community/cli-types";
13
-
14
- declare const ramBundleCommand: Command;
15
-
16
- declare export default typeof ramBundleCommand;