@react-native/community-cli-plugin 0.87.0-rc.0 → 0.87.0-rc.1
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.
|
@@ -7,10 +7,6 @@ exports.default = loadMetroConfig;
|
|
|
7
7
|
var _errors = require("./errors");
|
|
8
8
|
var _metroPlatformResolver = require("./metroPlatformResolver");
|
|
9
9
|
var _metro = require("metro");
|
|
10
|
-
var _path = _interopRequireDefault(require("path"));
|
|
11
|
-
function _interopRequireDefault(e) {
|
|
12
|
-
return e && e.__esModule ? e : { default: e };
|
|
13
|
-
}
|
|
14
10
|
const debug = require("debug")("ReactNative:CommunityCliPlugin");
|
|
15
11
|
function getCommunityCliDefaultConfig(ctx, config) {
|
|
16
12
|
const outOfTreePlatforms = Object.keys(ctx.platforms).filter(
|
|
@@ -33,15 +29,9 @@ function getCommunityCliDefaultConfig(ctx, config) {
|
|
|
33
29
|
resolver,
|
|
34
30
|
serializer: {
|
|
35
31
|
getModulesRunBeforeMainModule: () => [
|
|
36
|
-
require.resolve(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"Libraries/Core/InitializeCore",
|
|
40
|
-
),
|
|
41
|
-
{
|
|
42
|
-
paths: [ctx.root],
|
|
43
|
-
},
|
|
44
|
-
),
|
|
32
|
+
require.resolve("react-native/Libraries/Core/InitializeCore", {
|
|
33
|
+
paths: [ctx.root],
|
|
34
|
+
}),
|
|
45
35
|
...outOfTreePlatforms.map((platform) =>
|
|
46
36
|
require.resolve(
|
|
47
37
|
`${ctx.platforms[platform].npmPackageName}/Libraries/Core/InitializeCore`,
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import type { Config } from "@react-native-community/cli-types";
|
|
12
12
|
import { loadConfig } from "metro";
|
|
13
|
+
|
|
13
14
|
type HydratedMetroConfig = Awaited<ReturnType<typeof loadConfig>>;
|
|
14
15
|
type ArgvInput = Parameters<typeof loadConfig>[0];
|
|
15
16
|
|
|
@@ -17,7 +18,6 @@ export type { Config };
|
|
|
17
18
|
|
|
18
19
|
export type ConfigLoadingContext = Readonly<{
|
|
19
20
|
root: Config["root"],
|
|
20
|
-
reactNativePath: Config["reactNativePath"],
|
|
21
21
|
platforms: Config["platforms"],
|
|
22
22
|
...
|
|
23
23
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/community-cli-plugin",
|
|
3
|
-
"version": "0.87.0-rc.
|
|
3
|
+
"version": "0.87.0-rc.1",
|
|
4
4
|
"description": "Core CLI commands for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"prepack": "node ../../scripts/build/prepack.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@react-native/asset-utils": "0.87.0-rc.
|
|
29
|
-
"@react-native/dev-middleware": "0.87.0-rc.
|
|
28
|
+
"@react-native/asset-utils": "0.87.0-rc.1",
|
|
29
|
+
"@react-native/dev-middleware": "0.87.0-rc.1",
|
|
30
30
|
"debug": "^4.4.0",
|
|
31
31
|
"invariant": "^2.2.4",
|
|
32
|
-
"metro": "^0.
|
|
32
|
+
"metro": "^0.87.0",
|
|
33
33
|
"semver": "^7.1.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"metro-resolver": "^0.
|
|
36
|
+
"metro-resolver": "^0.87.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@react-native-community/cli": "*",
|
|
40
|
-
"@react-native/metro-config": "0.87.0-rc.
|
|
40
|
+
"@react-native/metro-config": "0.87.0-rc.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"@react-native-community/cli": {
|