@rnx-kit/cli 0.16.28 → 0.16.29
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/align-deps.d.ts +1 -1
- package/lib/align-deps.js +3 -4
- package/lib/bundle/defaultPlugins.js +1 -2
- package/lib/bundle/hermes.js +1 -2
- package/lib/bundle/kit-config.js +2 -3
- package/lib/bundle/metro.js +1 -2
- package/lib/bundle/overrides.js +2 -2
- package/lib/bundle.js +2 -2
- package/lib/clean.js +2 -2
- package/lib/copy-assets.js +6 -6
- package/lib/index.d.ts +3 -3
- package/lib/metro-config.js +1 -2
- package/lib/parsers.js +5 -6
- package/lib/ram-bundle.js +2 -2
- package/lib/serve/external.js +1 -2
- package/lib/serve/help.js +1 -2
- package/lib/serve/keyboard.js +1 -2
- package/lib/serve/kit-config.js +1 -2
- package/lib/serve/types.d.ts +0 -2
- package/lib/start.js +2 -2
- package/lib/test.js +3 -3
- package/lib/write-third-party-notices.js +2 -2
- package/package.json +1 -1
- package/src/align-deps.ts +1 -2
package/lib/align-deps.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config as CLIConfig } from "@react-native-community/cli-types";
|
|
2
2
|
type CLIArgs = Record<string, string | number | boolean | undefined>;
|
|
3
|
-
export declare function rnxAlignDeps(
|
|
3
|
+
export declare function rnxAlignDeps(_argv: string[], _config: CLIConfig, args: CLIArgs): void;
|
|
4
4
|
export declare const rnxAlignDepsCommand: {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
package/lib/align-deps.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.rnxAlignDepsCommand =
|
|
4
|
+
exports.rnxAlignDepsCommand = void 0;
|
|
5
|
+
exports.rnxAlignDeps = rnxAlignDeps;
|
|
5
6
|
const align_deps_1 = require("@rnx-kit/align-deps");
|
|
6
7
|
const properties_1 = require("@rnx-kit/tools-language/properties");
|
|
7
8
|
const optionsMap = {
|
|
@@ -11,7 +12,7 @@ const optionsMap = {
|
|
|
11
12
|
requirements: "requirements",
|
|
12
13
|
"set-version": "setVersion",
|
|
13
14
|
};
|
|
14
|
-
function rnxAlignDeps(
|
|
15
|
+
function rnxAlignDeps(_argv, _config, args) {
|
|
15
16
|
var _a;
|
|
16
17
|
(0, align_deps_1.cli)({
|
|
17
18
|
...(0, properties_1.pickValues)(args, Object.values(optionsMap), Object.keys(optionsMap)),
|
|
@@ -21,10 +22,8 @@ function rnxAlignDeps(argv, _config, args) {
|
|
|
21
22
|
"no-unmanaged": Boolean(args.noUnmanaged),
|
|
22
23
|
verbose: Boolean(args.verbose),
|
|
23
24
|
write: Boolean(args.write),
|
|
24
|
-
packages: argv,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
exports.rnxAlignDeps = rnxAlignDeps;
|
|
28
27
|
exports.rnxAlignDepsCommand = {
|
|
29
28
|
name: "rnx-align-deps",
|
|
30
29
|
description: "Manage dependencies within a repository and across many repositories",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultBundlerPlugins =
|
|
3
|
+
exports.getDefaultBundlerPlugins = getDefaultBundlerPlugins;
|
|
4
4
|
const defaultPlugins = {
|
|
5
5
|
plugins: [
|
|
6
6
|
"@rnx-kit/metro-plugin-cyclic-dependencies-detector",
|
|
@@ -12,5 +12,4 @@ const defaultPlugins = {
|
|
|
12
12
|
function getDefaultBundlerPlugins() {
|
|
13
13
|
return defaultPlugins;
|
|
14
14
|
}
|
|
15
|
-
exports.getDefaultBundlerPlugins = getDefaultBundlerPlugins;
|
|
16
15
|
//# sourceMappingURL=defaultPlugins.js.map
|
package/lib/bundle/hermes.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.emitBytecode =
|
|
26
|
+
exports.emitBytecode = emitBytecode;
|
|
27
27
|
const console_1 = require("@rnx-kit/console");
|
|
28
28
|
const package_1 = require("@rnx-kit/tools-node/package");
|
|
29
29
|
const metro_1 = require("@rnx-kit/tools-react-native/metro");
|
|
@@ -121,5 +121,4 @@ function emitBytecode(input, sourcemap, options) {
|
|
|
121
121
|
fs.writeFileSync(outputMap, JSON.stringify(composed));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
exports.emitBytecode = emitBytecode;
|
|
125
124
|
//# sourceMappingURL=hermes.js.map
|
package/lib/bundle/kit-config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getTargetPlatforms = getTargetPlatforms;
|
|
4
|
+
exports.getCliPlatformBundleConfigs = getCliPlatformBundleConfigs;
|
|
4
5
|
const config_1 = require("@rnx-kit/config");
|
|
5
6
|
const defaultPlugins_1 = require("./defaultPlugins");
|
|
6
7
|
/**
|
|
@@ -19,7 +20,6 @@ function getTargetPlatforms(overridePlatform, targetPlatforms) {
|
|
|
19
20
|
}
|
|
20
21
|
throw new Error("No target platforms given. Update the rnx-kit configuration to include a target platform, or provide a target platform on the command-line.");
|
|
21
22
|
}
|
|
22
|
-
exports.getTargetPlatforms = getTargetPlatforms;
|
|
23
23
|
function getDefaultBundleParameters(platform) {
|
|
24
24
|
const extension = platform === "ios" || platform === "macos" ? "jsbundle" : "bundle";
|
|
25
25
|
return {
|
|
@@ -57,5 +57,4 @@ function getCliPlatformBundleConfigs(id, overridePlatform) {
|
|
|
57
57
|
};
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
exports.getCliPlatformBundleConfigs = getCliPlatformBundleConfigs;
|
|
61
60
|
//# sourceMappingURL=kit-config.js.map
|
package/lib/bundle/metro.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.metroBundle =
|
|
26
|
+
exports.metroBundle = metroBundle;
|
|
27
27
|
const console_1 = require("@rnx-kit/console");
|
|
28
28
|
const metro_service_1 = require("@rnx-kit/metro-service");
|
|
29
29
|
const fs = __importStar(require("fs"));
|
|
@@ -76,5 +76,4 @@ async function metroBundle(metroConfig, bundleConfig, dev, minify, output = metr
|
|
|
76
76
|
// create the bundle
|
|
77
77
|
await output(metroBundleArgs, metroConfig);
|
|
78
78
|
}
|
|
79
|
-
exports.metroBundle = metroBundle;
|
|
80
79
|
//# sourceMappingURL=metro.js.map
|
package/lib/bundle/overrides.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.overridableCommonBundleOptions = void 0;
|
|
4
|
+
exports.applyBundleConfigOverrides = applyBundleConfigOverrides;
|
|
4
5
|
const properties_1 = require("@rnx-kit/tools-language/properties");
|
|
5
6
|
exports.overridableCommonBundleOptions = [
|
|
6
7
|
"assetsDest",
|
|
@@ -27,5 +28,4 @@ function applyBundleConfigOverrides(overrides, configs, keys) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
exports.applyBundleConfigOverrides = applyBundleConfigOverrides;
|
|
31
31
|
//# sourceMappingURL=overrides.js.map
|
package/lib/bundle.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxBundleCommand =
|
|
3
|
+
exports.rnxBundleCommand = void 0;
|
|
4
|
+
exports.rnxBundle = rnxBundle;
|
|
4
5
|
const metro_service_1 = require("@rnx-kit/metro-service");
|
|
5
6
|
const cliOptions_1 = require("./bundle/cliOptions");
|
|
6
7
|
const hermes_1 = require("./bundle/hermes");
|
|
@@ -24,7 +25,6 @@ async function rnxBundle(_argv, cliConfig, cliOptions) {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
exports.rnxBundle = rnxBundle;
|
|
28
28
|
exports.rnxBundleCommand = {
|
|
29
29
|
name: "rnx-bundle",
|
|
30
30
|
description: "Bundle your rnx-kit package for offline use. See https://aka.ms/rnx-kit.",
|
package/lib/clean.js
CHANGED
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.rnxCleanCommand =
|
|
29
|
+
exports.rnxCleanCommand = void 0;
|
|
30
|
+
exports.rnxClean = rnxClean;
|
|
30
31
|
const child_process_1 = require("child_process");
|
|
31
32
|
const fs = __importStar(require("fs-extra"));
|
|
32
33
|
const ora_1 = __importDefault(require("ora"));
|
|
@@ -144,7 +145,6 @@ async function rnxClean(_argv, _config, cliOptions) {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
exports.rnxClean = rnxClean;
|
|
148
148
|
function cleanDir(path) {
|
|
149
149
|
if (!fs.existsSync(path)) {
|
|
150
150
|
return Promise.resolve();
|
package/lib/copy-assets.js
CHANGED
|
@@ -23,7 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.rnxCopyAssetsCommand =
|
|
26
|
+
exports.rnxCopyAssetsCommand = void 0;
|
|
27
|
+
exports.versionOf = versionOf;
|
|
28
|
+
exports.assembleAarBundle = assembleAarBundle;
|
|
29
|
+
exports.copyAssets = copyAssets;
|
|
30
|
+
exports.gatherConfigs = gatherConfigs;
|
|
31
|
+
exports.copyProjectAssets = copyProjectAssets;
|
|
27
32
|
const console_1 = require("@rnx-kit/console");
|
|
28
33
|
const properties_1 = require("@rnx-kit/tools-language/properties");
|
|
29
34
|
const package_1 = require("@rnx-kit/tools-node/package");
|
|
@@ -71,7 +76,6 @@ function versionOf(pkgName) {
|
|
|
71
76
|
const { version } = (0, package_1.readPackage)(packageDir);
|
|
72
77
|
return version;
|
|
73
78
|
}
|
|
74
|
-
exports.versionOf = versionOf;
|
|
75
79
|
function getAndroidPaths(context, packageName, { targetName, version, output }) {
|
|
76
80
|
const projectRoot = (0, package_1.findPackageDependencyDir)(packageName);
|
|
77
81
|
if (!projectRoot) {
|
|
@@ -224,7 +228,6 @@ async function assembleAarBundle(context, packageName, { aar }) {
|
|
|
224
228
|
}
|
|
225
229
|
await Promise.all(targetsToCopy.map(([src, dest]) => fs.copy(src, dest)));
|
|
226
230
|
}
|
|
227
|
-
exports.assembleAarBundle = assembleAarBundle;
|
|
228
231
|
function copyFiles(files, destination) {
|
|
229
232
|
if (!Array.isArray(files) || files.length === 0) {
|
|
230
233
|
return [];
|
|
@@ -244,7 +247,6 @@ async function copyAssets({ options: { assetsDest, xcassetsDest } }, packageName
|
|
|
244
247
|
}
|
|
245
248
|
await Promise.all(tasks);
|
|
246
249
|
}
|
|
247
|
-
exports.copyAssets = copyAssets;
|
|
248
250
|
async function gatherConfigs({ projectRoot, manifest, }) {
|
|
249
251
|
const { dependencies, devDependencies } = manifest;
|
|
250
252
|
const packages = [...(0, properties_1.keysOf)(dependencies), ...(0, properties_1.keysOf)(devDependencies)];
|
|
@@ -281,7 +283,6 @@ async function gatherConfigs({ projectRoot, manifest, }) {
|
|
|
281
283
|
}
|
|
282
284
|
return assetsConfigs;
|
|
283
285
|
}
|
|
284
|
-
exports.gatherConfigs = gatherConfigs;
|
|
285
286
|
/**
|
|
286
287
|
* Copies additional assets not picked by bundlers into desired directory.
|
|
287
288
|
*
|
|
@@ -377,7 +378,6 @@ async function copyProjectAssets(options) {
|
|
|
377
378
|
await Promise.all(copyTasks);
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
|
-
exports.copyProjectAssets = copyProjectAssets;
|
|
381
381
|
exports.rnxCopyAssetsCommand = {
|
|
382
382
|
name: "rnx-copy-assets",
|
|
383
383
|
description: "Copies additional assets not picked by bundlers into desired directory.",
|
package/lib/index.d.ts
CHANGED
|
@@ -168,9 +168,9 @@ export declare const reactNativeConfig: {
|
|
|
168
168
|
func: typeof import("./test").rnxTest;
|
|
169
169
|
options: {
|
|
170
170
|
name: string;
|
|
171
|
-
description?: string
|
|
172
|
-
parse?: (
|
|
173
|
-
default?: string |
|
|
171
|
+
description?: string;
|
|
172
|
+
parse?: (val: string) => unknown;
|
|
173
|
+
default?: string | boolean | number | ((config: import("@react-native-community/cli-types").Config) => string | boolean | number);
|
|
174
174
|
}[];
|
|
175
175
|
} | {
|
|
176
176
|
name: string;
|
package/lib/metro-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customizeMetroConfig =
|
|
3
|
+
exports.customizeMetroConfig = customizeMetroConfig;
|
|
4
4
|
const console_1 = require("@rnx-kit/console");
|
|
5
5
|
const metro_plugin_cyclic_dependencies_detector_1 = require("@rnx-kit/metro-plugin-cyclic-dependencies-detector");
|
|
6
6
|
const metro_plugin_duplicates_checker_1 = require("@rnx-kit/metro-plugin-duplicates-checker");
|
|
@@ -159,5 +159,4 @@ function customizeMetroConfig(metroConfigReadonly, extraParams, print) {
|
|
|
159
159
|
break;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
exports.customizeMetroConfig = customizeMetroConfig;
|
|
163
162
|
//# sourceMappingURL=metro-config.js.map
|
package/lib/parsers.js
CHANGED
|
@@ -23,7 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.asBoolean = asBoolean;
|
|
27
|
+
exports.asNumber = asNumber;
|
|
28
|
+
exports.asResolvedPath = asResolvedPath;
|
|
29
|
+
exports.asStringArray = asStringArray;
|
|
30
|
+
exports.parseTransformProfile = parseTransformProfile;
|
|
27
31
|
const path = __importStar(require("path"));
|
|
28
32
|
function asBoolean(value) {
|
|
29
33
|
switch (value) {
|
|
@@ -35,19 +39,15 @@ function asBoolean(value) {
|
|
|
35
39
|
throw new Error("Invalid boolean value '" + value + "' — must be true or false");
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
exports.asBoolean = asBoolean;
|
|
39
42
|
function asNumber(value) {
|
|
40
43
|
return Number(value);
|
|
41
44
|
}
|
|
42
|
-
exports.asNumber = asNumber;
|
|
43
45
|
function asResolvedPath(value) {
|
|
44
46
|
return path.resolve(value);
|
|
45
47
|
}
|
|
46
|
-
exports.asResolvedPath = asResolvedPath;
|
|
47
48
|
function asStringArray(value) {
|
|
48
49
|
return value.split(",");
|
|
49
50
|
}
|
|
50
|
-
exports.asStringArray = asStringArray;
|
|
51
51
|
function parseTransformProfile(val) {
|
|
52
52
|
const allowedProfiles = [
|
|
53
53
|
"hermes-stable",
|
|
@@ -62,5 +62,4 @@ function parseTransformProfile(val) {
|
|
|
62
62
|
"' -- must be one of " +
|
|
63
63
|
allowedProfiles.join(", "));
|
|
64
64
|
}
|
|
65
|
-
exports.parseTransformProfile = parseTransformProfile;
|
|
66
65
|
//# sourceMappingURL=parsers.js.map
|
package/lib/ram-bundle.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxRamBundleCommand =
|
|
3
|
+
exports.rnxRamBundleCommand = void 0;
|
|
4
|
+
exports.rnxRamBundle = rnxRamBundle;
|
|
4
5
|
const console_1 = require("@rnx-kit/console");
|
|
5
6
|
const metro_service_1 = require("@rnx-kit/metro-service");
|
|
6
7
|
const cliOptions_1 = require("./bundle/cliOptions");
|
|
@@ -31,7 +32,6 @@ async function rnxRamBundle(_argv, cliConfig, cliOptions) {
|
|
|
31
32
|
await (0, metro_1.metroBundle)(metroConfig, bundleConfig, cliOptions.dev, cliOptions.minify, metro_service_1.ramBundle);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
exports.rnxRamBundle = rnxRamBundle;
|
|
35
35
|
exports.rnxRamBundleCommand = {
|
|
36
36
|
name: "rnx-ram-bundle",
|
|
37
37
|
description: "Bundle your rnx-kit package in the RAM bundle format for offline use. See https://aka.ms/rnx-kit.",
|
package/lib/serve/external.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.requireExternal =
|
|
3
|
+
exports.requireExternal = requireExternal;
|
|
4
4
|
const package_1 = require("@rnx-kit/tools-node/package");
|
|
5
5
|
function friendlyRequire(...modules) {
|
|
6
6
|
try {
|
|
@@ -26,5 +26,4 @@ function requireExternal(module) {
|
|
|
26
26
|
return friendlyRequire("react-native", "@react-native/community-cli-plugin", "@react-native/dev-middleware");
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.requireExternal = requireExternal;
|
|
30
29
|
//# sourceMappingURL=external.js.map
|
package/lib/serve/help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeHelp =
|
|
3
|
+
exports.makeHelp = makeHelp;
|
|
4
4
|
const console_1 = require("@rnx-kit/console");
|
|
5
5
|
function makeHelp(terminal, { hasDebugger }) {
|
|
6
6
|
const openDebugger = hasDebugger
|
|
@@ -42,5 +42,4 @@ function makeHelp(terminal, { hasDebugger }) {
|
|
|
42
42
|
const help = lines.join("\n");
|
|
43
43
|
return () => terminal.log(help);
|
|
44
44
|
}
|
|
45
|
-
exports.makeHelp = makeHelp;
|
|
46
45
|
//# sourceMappingURL=help.js.map
|
package/lib/serve/keyboard.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.attachKeyHandlers =
|
|
6
|
+
exports.attachKeyHandlers = attachKeyHandlers;
|
|
7
7
|
const console_1 = require("@rnx-kit/console");
|
|
8
8
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
9
|
const qrcode_1 = __importDefault(require("qrcode"));
|
|
@@ -60,5 +60,4 @@ function attachKeyHandlers({ devServerUrl, help, messageSocketEndpoint, terminal
|
|
|
60
60
|
});
|
|
61
61
|
readline_1.default.emitKeypressEvents(process.stdin);
|
|
62
62
|
}
|
|
63
|
-
exports.attachKeyHandlers = attachKeyHandlers;
|
|
64
63
|
//# sourceMappingURL=keyboard.js.map
|
package/lib/serve/kit-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getKitServerConfig =
|
|
3
|
+
exports.getKitServerConfig = getKitServerConfig;
|
|
4
4
|
const config_1 = require("@rnx-kit/config");
|
|
5
5
|
const properties_1 = require("@rnx-kit/tools-language/properties");
|
|
6
6
|
const defaultPlugins_1 = require("../bundle/defaultPlugins");
|
|
@@ -31,5 +31,4 @@ function getKitServerConfig(overrides) {
|
|
|
31
31
|
...(0, properties_1.pickValues)(overrides, ["projectRoot", "assetPlugins", "sourceExts"]),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
exports.getKitServerConfig = getKitServerConfig;
|
|
35
34
|
//# sourceMappingURL=kit-config.js.map
|
package/lib/serve/types.d.ts
CHANGED
package/lib/start.js
CHANGED
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.rnxStartCommand =
|
|
26
|
+
exports.rnxStartCommand = void 0;
|
|
27
|
+
exports.rnxStart = rnxStart;
|
|
27
28
|
const logger = __importStar(require("@rnx-kit/console"));
|
|
28
29
|
const metro_service_1 = require("@rnx-kit/metro-service");
|
|
29
30
|
const path = __importStar(require("path"));
|
|
@@ -185,7 +186,6 @@ async function rnxStart(_argv, ctx, args) {
|
|
|
185
186
|
(0, keyboard_1.attachKeyHandlers)({ devServerUrl, help, messageSocketEndpoint, terminal });
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
|
-
exports.rnxStart = rnxStart;
|
|
189
189
|
exports.rnxStartCommand = {
|
|
190
190
|
name: "rnx-start",
|
|
191
191
|
func: rnxStart,
|
package/lib/test.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxTestCommand =
|
|
3
|
+
exports.rnxTestCommand = void 0;
|
|
4
|
+
exports.rnxTest = rnxTest;
|
|
5
|
+
exports.jestOptions = jestOptions;
|
|
4
6
|
const console_1 = require("@rnx-kit/console");
|
|
5
7
|
const package_1 = require("@rnx-kit/tools-node/package");
|
|
6
8
|
const platform_1 = require("@rnx-kit/tools-react-native/platform");
|
|
@@ -33,7 +35,6 @@ function rnxTest(_argv, { root }, { platform }) {
|
|
|
33
35
|
process.env["RN_TARGET_PLATFORM"] = platform;
|
|
34
36
|
runJest(argv);
|
|
35
37
|
}
|
|
36
|
-
exports.rnxTest = rnxTest;
|
|
37
38
|
function jestOptions() {
|
|
38
39
|
const options = (() => {
|
|
39
40
|
const jestCliPath = (() => {
|
|
@@ -94,7 +95,6 @@ function jestOptions() {
|
|
|
94
95
|
};
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
exports.jestOptions = jestOptions;
|
|
98
98
|
exports.rnxTestCommand = {
|
|
99
99
|
name: COMMAND_NAME,
|
|
100
100
|
description: "Test runner for React Native apps",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxWriteThirdPartyNoticesCommand =
|
|
3
|
+
exports.rnxWriteThirdPartyNoticesCommand = void 0;
|
|
4
|
+
exports.rnxWriteThirdPartyNotices = rnxWriteThirdPartyNotices;
|
|
4
5
|
const third_party_notices_1 = require("@rnx-kit/third-party-notices");
|
|
5
6
|
function rnxWriteThirdPartyNotices(_argv, _config, { additionalText, ignoreModules, ignoreScopes, json, outputFile, preambleText, rootPath, sourceMapFile, }) {
|
|
6
7
|
// react-native-cli is not as rich as yargs, so we have to perform a mapping.
|
|
@@ -15,7 +16,6 @@ function rnxWriteThirdPartyNotices(_argv, _config, { additionalText, ignoreModul
|
|
|
15
16
|
additionalText: additionalText ? [additionalText] : undefined,
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
|
-
exports.rnxWriteThirdPartyNotices = rnxWriteThirdPartyNotices;
|
|
19
19
|
exports.rnxWriteThirdPartyNoticesCommand = {
|
|
20
20
|
name: "rnx-write-third-party-notices",
|
|
21
21
|
description: "Writes third party notices based on the given bundle",
|
package/package.json
CHANGED
package/src/align-deps.ts
CHANGED
|
@@ -13,7 +13,7 @@ const optionsMap: Partial<Record<keyof typeof cliOptions, string>> = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export function rnxAlignDeps(
|
|
16
|
-
|
|
16
|
+
_argv: string[],
|
|
17
17
|
_config: CLIConfig,
|
|
18
18
|
args: CLIArgs
|
|
19
19
|
): void {
|
|
@@ -25,7 +25,6 @@ export function rnxAlignDeps(
|
|
|
25
25
|
"no-unmanaged": Boolean(args.noUnmanaged),
|
|
26
26
|
verbose: Boolean(args.verbose),
|
|
27
27
|
write: Boolean(args.write),
|
|
28
|
-
packages: argv,
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
30
|
|