@rnx-kit/cli 0.18.11 → 0.18.13
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/lib/serve/kit-config.d.ts +1 -4
- package/lib/start.js +2 -1
- package/package.json +8 -7
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { ServerConfig } from "@rnx-kit/config";
|
|
2
|
-
type ServerConfigOverrides = {
|
|
3
|
-
projectRoot?: string;
|
|
4
|
-
assetPlugins?: string[];
|
|
5
|
-
sourceExts?: string[];
|
|
2
|
+
type ServerConfigOverrides = Pick<ServerConfig, "projectRoot" | "assetPlugins" | "sourceExts"> & {
|
|
6
3
|
id?: string;
|
|
7
4
|
};
|
|
8
5
|
type CliServerConfig = ServerConfig & {
|
package/lib/start.js
CHANGED
|
@@ -167,7 +167,7 @@ async function rnxStart(_argv, ctx, args) {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const result = await (0, metro_service_1.startServer)(metroConfig, {
|
|
171
171
|
host: args.host,
|
|
172
172
|
secure: args.https,
|
|
173
173
|
secureCert: args.cert,
|
|
@@ -175,6 +175,7 @@ async function rnxStart(_argv, ctx, args) {
|
|
|
175
175
|
unstable_extraMiddleware,
|
|
176
176
|
websocketEndpoints,
|
|
177
177
|
});
|
|
178
|
+
const serverInstance = "httpServer" in result ? result.httpServer : result;
|
|
178
179
|
if (hasAttachToServerFunction(devServer)) {
|
|
179
180
|
const { messageSocket, eventsSocket } = devServer.attachToServer(serverInstance);
|
|
180
181
|
messageSocketEndpoint = messageSocket;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.13",
|
|
4
4
|
"description": "Command-line interface for working with kit packages in your repo",
|
|
5
5
|
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/cli#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"types": "./lib/index.d.ts",
|
|
25
25
|
"default": "./lib/index.js"
|
|
26
26
|
},
|
|
27
|
+
"./react-native.config": "./react-native.config.js",
|
|
27
28
|
"./react-native.config.js": "./react-native.config.js",
|
|
28
29
|
"./package.json": "./package.json"
|
|
29
30
|
},
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@babel/core": "^7.20.0",
|
|
76
77
|
"@babel/preset-env": "^7.20.0",
|
|
77
|
-
"@react-native-community/cli-types": "^
|
|
78
|
+
"@react-native-community/cli-types": "^20.0.0",
|
|
78
79
|
"@rnx-kit/eslint-config": "*",
|
|
79
80
|
"@rnx-kit/jest-preset": "*",
|
|
80
81
|
"@rnx-kit/scripts": "*",
|
|
@@ -83,11 +84,11 @@
|
|
|
83
84
|
"@types/node": "^22.0.0",
|
|
84
85
|
"@types/qrcode": "^1.4.2",
|
|
85
86
|
"markdown-table": "^3.0.0",
|
|
86
|
-
"metro": "^0.
|
|
87
|
-
"metro-babel-transformer": "^0.
|
|
88
|
-
"metro-config": "^0.
|
|
89
|
-
"react": "19.
|
|
90
|
-
"react-native": "^0.
|
|
87
|
+
"metro": "^0.83.1",
|
|
88
|
+
"metro-babel-transformer": "^0.83.1",
|
|
89
|
+
"metro-config": "^0.83.1",
|
|
90
|
+
"react": "19.1.0",
|
|
91
|
+
"react-native": "^0.81.0",
|
|
91
92
|
"tsx": "^4.15.0",
|
|
92
93
|
"type-fest": "^4.0.0"
|
|
93
94
|
},
|