@react-native/community-cli-plugin 0.75.0-nightly-20240605-TEMP → 0.75.0-nightly-20240606-cf8b25ead
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.
|
@@ -43,6 +43,7 @@ async function runServer(_argv, ctx, args) {
|
|
|
43
43
|
projectRoot: args.projectRoot,
|
|
44
44
|
sourceExts: args.sourceExts,
|
|
45
45
|
});
|
|
46
|
+
const hostname = args.host?.length ? args.host : "localhost";
|
|
46
47
|
const {
|
|
47
48
|
projectRoot,
|
|
48
49
|
server: { port },
|
|
@@ -51,7 +52,7 @@ async function runServer(_argv, ctx, args) {
|
|
|
51
52
|
const protocol = args.https === true ? "https" : "http";
|
|
52
53
|
const devServerUrl = _url.default.format({
|
|
53
54
|
protocol,
|
|
54
|
-
hostname
|
|
55
|
+
hostname,
|
|
55
56
|
port,
|
|
56
57
|
});
|
|
57
58
|
_cliTools.logger.info(`Welcome to React Native v${ctx.reactNativeVersion}`);
|
|
@@ -86,7 +87,7 @@ async function runServer(_argv, ctx, args) {
|
|
|
86
87
|
messageSocketEndpoint,
|
|
87
88
|
eventsSocketEndpoint,
|
|
88
89
|
} = (0, _cliServerApi.createDevServerMiddleware)({
|
|
89
|
-
host:
|
|
90
|
+
host: hostname,
|
|
90
91
|
port,
|
|
91
92
|
watchFolders,
|
|
92
93
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/community-cli-plugin",
|
|
3
|
-
"version": "0.75.0-nightly-
|
|
3
|
+
"version": "0.75.0-nightly-20240606-cf8b25ead",
|
|
4
4
|
"description": "Core CLI commands for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@react-native-community/cli-server-api": "14.0.0-alpha.2",
|
|
26
26
|
"@react-native-community/cli-tools": "14.0.0-alpha.2",
|
|
27
|
-
"@react-native/dev-middleware": "0.75.0-nightly-
|
|
28
|
-
"@react-native/metro-babel-transformer": "0.75.0-nightly-
|
|
27
|
+
"@react-native/dev-middleware": "0.75.0-nightly-20240606-cf8b25ead",
|
|
28
|
+
"@react-native/metro-babel-transformer": "0.75.0-nightly-20240606-cf8b25ead",
|
|
29
29
|
"chalk": "^4.0.0",
|
|
30
30
|
"execa": "^5.1.1",
|
|
31
31
|
"metro": "^0.80.3",
|