@react-native/community-cli-plugin 0.74.0-nightly-20231003-5dedf277c → 0.74.0-nightly-20231004-2000acc6c
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/dist/commands/bundle/buildBundle.js.flow +2 -2
- package/dist/commands/bundle/filterPlatformAssetScales.js.flow +1 -1
- package/dist/commands/bundle/getAssetDestPathAndroid.js.flow +1 -1
- package/dist/commands/bundle/getAssetDestPathIOS.js.flow +1 -1
- package/dist/commands/bundle/index.js.flow +1 -1
- package/dist/commands/bundle/saveAssets.js.flow +1 -1
- package/dist/commands/ram-bundle/index.js.flow +1 -1
- package/dist/commands/start/attachKeyHandlers.js +5 -18
- package/dist/commands/start/attachKeyHandlers.js.flow +0 -1
- package/dist/commands/start/index.js.flow +1 -1
- package/dist/commands/start/runServer.js +0 -1
- package/dist/commands/start/runServer.js.flow +1 -1
- package/package.json +3 -3
|
@@ -59,6 +59,6 @@ declare function buildBundleWithConfig(
|
|
|
59
59
|
* re-used for several bundling calls if multiple platforms are being
|
|
60
60
|
* bundled.
|
|
61
61
|
*/
|
|
62
|
-
declare export const unstable_buildBundleWithConfig: buildBundleWithConfig;
|
|
62
|
+
declare export const unstable_buildBundleWithConfig: typeof buildBundleWithConfig;
|
|
63
63
|
|
|
64
|
-
declare export default buildBundle;
|
|
64
|
+
declare export default typeof buildBundle;
|
|
@@ -8,7 +8,6 @@ var _cliTools = require("@react-native-community/cli-tools");
|
|
|
8
8
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
9
9
|
var _execa = _interopRequireDefault(require("execa"));
|
|
10
10
|
var _nodeFetch = _interopRequireDefault(require("node-fetch"));
|
|
11
|
-
var _readline = _interopRequireDefault(require("readline"));
|
|
12
11
|
var _KeyPressHandler = require("../../utils/KeyPressHandler");
|
|
13
12
|
function _interopRequireDefault(obj) {
|
|
14
13
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -26,21 +25,13 @@ function _interopRequireDefault(obj) {
|
|
|
26
25
|
|
|
27
26
|
const CTRL_C = "\u0003";
|
|
28
27
|
const CTRL_D = "\u0004";
|
|
29
|
-
function attachKeyHandlers({
|
|
30
|
-
cliConfig,
|
|
31
|
-
serverInstance,
|
|
32
|
-
devServerUrl,
|
|
33
|
-
messageSocket,
|
|
34
|
-
}) {
|
|
28
|
+
function attachKeyHandlers({ cliConfig, devServerUrl, messageSocket }) {
|
|
35
29
|
if (process.stdin.isTTY !== true) {
|
|
36
30
|
_cliTools.logger.debug(
|
|
37
31
|
"Interactive mode is not supported in this environment"
|
|
38
32
|
);
|
|
39
33
|
return;
|
|
40
34
|
}
|
|
41
|
-
_readline.default.emitKeypressEvents(process.stdin);
|
|
42
|
-
// $FlowIgnore[prop-missing]
|
|
43
|
-
process.stdin.setRawMode(true);
|
|
44
35
|
const execaOptions = {
|
|
45
36
|
env: {
|
|
46
37
|
FORCE_COLOR: _chalk.default.supportsColor ? "true" : "false",
|
|
@@ -88,16 +79,12 @@ function attachKeyHandlers({
|
|
|
88
79
|
case CTRL_C:
|
|
89
80
|
case CTRL_D:
|
|
90
81
|
_cliTools.logger.info("Stopping server");
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
serverInstance.close(() => {
|
|
95
|
-
process.emit("SIGINT");
|
|
96
|
-
process.exit();
|
|
97
|
-
});
|
|
82
|
+
keyPressHandler.stopInterceptingKeyStrokes();
|
|
83
|
+
process.emit("SIGINT");
|
|
84
|
+
process.exit();
|
|
98
85
|
}
|
|
99
86
|
});
|
|
100
|
-
|
|
87
|
+
keyPressHandler.createInteractionListener();
|
|
101
88
|
keyPressHandler.startInterceptingKeyStrokes();
|
|
102
89
|
_cliTools.logger.log(`
|
|
103
90
|
${_chalk.default.bold("i")} - run on iOS
|
|
@@ -14,7 +14,6 @@ import type { Config } from "@react-native-community/cli-types";
|
|
|
14
14
|
declare export default function attachKeyHandlers({
|
|
15
15
|
cliConfig: Config,
|
|
16
16
|
devServerUrl: string,
|
|
17
|
-
serverInstance: http$Server | https$Server,
|
|
18
17
|
messageSocket: $ReadOnly<{
|
|
19
18
|
broadcast: (type: string, params?: Record<string, mixed> | null) => void,
|
|
20
19
|
...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/community-cli-plugin",
|
|
3
|
-
"version": "0.74.0-nightly-
|
|
3
|
+
"version": "0.74.0-nightly-20231004-2000acc6c",
|
|
4
4
|
"description": "Core CLI commands for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-native/dev-middleware": "0.74.0-nightly-
|
|
25
|
+
"@react-native/dev-middleware": "0.74.0-nightly-20231004-2000acc6c",
|
|
26
26
|
"@react-native-community/cli-server-api": "12.0.0-alpha.15",
|
|
27
27
|
"@react-native-community/cli-tools": "12.0.0-alpha.15",
|
|
28
|
-
"@react-native/metro-babel-transformer": "0.74.0-nightly-
|
|
28
|
+
"@react-native/metro-babel-transformer": "0.74.0-nightly-20231004-2000acc6c",
|
|
29
29
|
"chalk": "^4.0.0",
|
|
30
30
|
"execa": "^5.1.1",
|
|
31
31
|
"metro": "0.79.1",
|