@rnx-kit/cli 1.0.1 → 1.1.0
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/README.md +2 -4
- package/lib/build.d.ts +1 -1
- package/lib/bundle/hermes.js +1 -1
- package/lib/bundle/kit-config.d.ts +2 -2
- package/lib/bundle/metro.d.ts +2 -2
- package/lib/bundle/metro.js +3 -16
- package/lib/bundle/overrides.d.ts +8 -8
- package/lib/bundle/overrides.js +14 -12
- package/lib/bundle/types.d.ts +1 -1
- package/lib/bundle.d.ts +1 -0
- package/lib/bundle.js +29 -4
- package/lib/clean.d.ts +1 -1
- package/lib/copy-assets.js +3 -3
- package/lib/ram-bundle.js +10 -14
- package/lib/run.d.ts +1 -1
- package/package.json +26 -26
package/README.md
CHANGED
|
@@ -334,8 +334,6 @@ The following commands route to `@react-native-community/cli`:
|
|
|
334
334
|
|
|
335
335
|
<!-- References -->
|
|
336
336
|
|
|
337
|
-
[@rnx-kit/align-deps]:
|
|
338
|
-
https://github.com/microsoft/rnx-kit/tree/main/packages/align-deps#readme
|
|
337
|
+
[@rnx-kit/align-deps]: https://github.com/microsoft/rnx-kit/tree/main/packages/align-deps#readme
|
|
339
338
|
[Metro]: https://facebook.github.io/metro
|
|
340
|
-
[configuration]:
|
|
341
|
-
https://github.com/microsoft/rnx-kit/tree/main/packages/config#readme
|
|
339
|
+
[configuration]: https://github.com/microsoft/rnx-kit/tree/main/packages/config#readme
|
package/lib/build.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ export declare const rnxBuildCommand: {
|
|
|
26
26
|
default: string;
|
|
27
27
|
parse: typeof asDestination;
|
|
28
28
|
} | {
|
|
29
|
-
default?: undefined;
|
|
30
29
|
name: string;
|
|
31
30
|
description: string;
|
|
32
31
|
parse: typeof setCcacheDir;
|
|
32
|
+
default?: undefined;
|
|
33
33
|
})[];
|
|
34
34
|
};
|
|
35
35
|
export {};
|
package/lib/bundle/hermes.js
CHANGED
|
@@ -119,7 +119,7 @@ function emitBytecode(cliConfig, input, sourcemap, options) {
|
|
|
119
119
|
const compilerSourcemap = JSON.parse(fs.readFileSync(outputMap, options));
|
|
120
120
|
const { composeSourceMaps } = (0, metro_1.requireModuleFromMetro)("metro-source-map");
|
|
121
121
|
const composed = composeSourceMaps([packagerSourcemap, compilerSourcemap]);
|
|
122
|
-
(0, tools_filesystem_1.
|
|
122
|
+
(0, tools_filesystem_1.writeJSONFileSync)(outputMap, composed, 0);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
//# sourceMappingURL=hermes.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AllPlatforms } from "@rnx-kit/types-bundle-config";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CLIPlatformBundleConfig } from "./types.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Get the list of target platforms for bundling.
|
|
5
5
|
*
|
|
@@ -19,5 +19,5 @@ export declare function getTargetPlatforms(overridePlatform?: AllPlatforms, targ
|
|
|
19
19
|
* @param overridePlatform Override platform, typically from the command-line. When given, this overrides the list of target platforms.
|
|
20
20
|
* @returns Array of platform-specific bundle configurations
|
|
21
21
|
*/
|
|
22
|
-
export declare function getCliPlatformBundleConfigs(id?: string, overridePlatform?: AllPlatforms, kitConfig?: import("@rnx-kit/types-kit-config").KitConfig | undefined):
|
|
22
|
+
export declare function getCliPlatformBundleConfigs(id?: string, overridePlatform?: AllPlatforms, kitConfig?: import("@rnx-kit/types-kit-config").KitConfig | undefined): CLIPlatformBundleConfig[];
|
|
23
23
|
//# sourceMappingURL=kit-config.d.ts.map
|
package/lib/bundle/metro.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bundle } from "@rnx-kit/metro-service";
|
|
2
2
|
import type { ConfigT } from "metro-config";
|
|
3
3
|
import * as nodefs from "node:fs";
|
|
4
|
-
import type {
|
|
4
|
+
import type { CLIPlatformBundleConfig } from "./types.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Run the Metro bundler.
|
|
7
7
|
*
|
|
@@ -14,5 +14,5 @@ import type { CliPlatformBundleConfig } from "./types.ts";
|
|
|
14
14
|
* @param minify Optionally choose whether or not the bundle is minified. When not set, minification is controlled by the `dev` property.
|
|
15
15
|
* @param output Output bundle format; defaults to plain JS
|
|
16
16
|
*/
|
|
17
|
-
export declare function metroBundle(metroConfig: ConfigT, bundleConfig:
|
|
17
|
+
export declare function metroBundle(metroConfig: ConfigT, bundleConfig: CLIPlatformBundleConfig, dev: boolean, minify?: boolean, output?: typeof bundle, fs?: typeof nodefs): Promise<void>;
|
|
18
18
|
//# sourceMappingURL=metro.d.ts.map
|
package/lib/bundle/metro.js
CHANGED
|
@@ -54,19 +54,6 @@ const metro_config_ts_1 = require("../helpers/metro-config.js");
|
|
|
54
54
|
*/
|
|
55
55
|
async function metroBundle(metroConfig, bundleConfig, dev, minify, output = metro_service_1.bundle, fs = nodefs) {
|
|
56
56
|
(0, console_1.info)(`Bundling ${bundleConfig.platform}...`);
|
|
57
|
-
if (!dev && bundleConfig.treeShake) {
|
|
58
|
-
if (minify != null) {
|
|
59
|
-
if (typeof bundleConfig.treeShake === "object") {
|
|
60
|
-
bundleConfig.treeShake.minify = minify;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
bundleConfig.treeShake = { minify };
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
bundleConfig.treeShake = false;
|
|
69
|
-
}
|
|
70
57
|
(0, metro_config_ts_1.customizeMetroConfig)(metroConfig, bundleConfig);
|
|
71
58
|
const metroBundleArgs = {
|
|
72
59
|
...bundleConfig,
|
|
@@ -74,12 +61,12 @@ async function metroBundle(metroConfig, bundleConfig, dev, minify, output = metr
|
|
|
74
61
|
minify,
|
|
75
62
|
};
|
|
76
63
|
// ensure all output directories exist
|
|
77
|
-
(0, tools_filesystem_1.
|
|
64
|
+
(0, tools_filesystem_1.ensureDirSync)(path.dirname(metroBundleArgs.bundleOutput), fs);
|
|
78
65
|
if (metroBundleArgs.sourcemapOutput) {
|
|
79
|
-
(0, tools_filesystem_1.
|
|
66
|
+
(0, tools_filesystem_1.ensureDirSync)(path.dirname(metroBundleArgs.sourcemapOutput), fs);
|
|
80
67
|
}
|
|
81
68
|
if (metroBundleArgs.assetsDest) {
|
|
82
|
-
(0, tools_filesystem_1.
|
|
69
|
+
(0, tools_filesystem_1.ensureDirSync)(metroBundleArgs.assetsDest, fs);
|
|
83
70
|
}
|
|
84
71
|
// create the bundle
|
|
85
72
|
await output(metroBundleArgs, metroConfig);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type BundleConfigOverrides = Partial<Pick<
|
|
3
|
-
export declare const
|
|
1
|
+
import type { CLIPlatformBundleConfig } from "./types.ts";
|
|
2
|
+
export type BundleConfigOverrides = Partial<Pick<CLIPlatformBundleConfig, "assetsDest" | "bundleEncoding" | "bundleOutput" | "entryFile" | "hermes" | "indexedRamBundle" | "sourcemapOutput" | "sourcemapSourcesRoot" | "sourcemapUseAbsolutePath" | "treeShake" | "unstableTransformProfile">>;
|
|
3
|
+
export declare const BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES: readonly (keyof BundleConfigOverrides)[];
|
|
4
4
|
/**
|
|
5
|
-
* Apply overrides, if any, to
|
|
5
|
+
* Apply overrides from the command line, if any, to the bundle configuration.
|
|
6
|
+
* Overrides are applied in-place.
|
|
6
7
|
*
|
|
8
|
+
* @param config Platform-specific bundle configuration; this is modified if any overrides are applied.
|
|
7
9
|
* @param overrides Optional overrides to apply
|
|
8
|
-
* @param
|
|
9
|
-
* @param keys Config keys to pick from {@link overrides}
|
|
10
|
+
* @param keys Config keys to pick from {@link overrides}; defaults to {@link BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES}
|
|
10
11
|
*/
|
|
11
|
-
export declare function
|
|
12
|
-
export {};
|
|
12
|
+
export declare function applyCommandLineOverrides(config: CLIPlatformBundleConfig, overrides: BundleConfigOverrides, flags?: readonly ("assetsDest" | "bundleEncoding" | "bundleOutput" | "entryFile" | "hermes" | "indexedRamBundle" | "sourcemapOutput" | "sourcemapSourcesRoot" | "sourcemapUseAbsolutePath" | "treeShake" | "unstableTransformProfile")[]): void;
|
|
13
13
|
//# sourceMappingURL=overrides.d.ts.map
|
package/lib/bundle/overrides.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
|
|
6
|
-
exports.
|
|
3
|
+
exports.BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES = void 0;
|
|
4
|
+
exports.applyCommandLineOverrides = applyCommandLineOverrides;
|
|
5
|
+
// TODO: Add `hermes` and `treeShake` when we remove support for `ram-bundle`
|
|
6
|
+
exports.BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES = [
|
|
7
7
|
"assetsDest",
|
|
8
8
|
"bundleEncoding",
|
|
9
9
|
"bundleOutput",
|
|
@@ -14,17 +14,19 @@ exports.overridableCommonBundleOptions = [
|
|
|
14
14
|
"unstableTransformProfile",
|
|
15
15
|
];
|
|
16
16
|
/**
|
|
17
|
-
* Apply overrides, if any, to
|
|
17
|
+
* Apply overrides from the command line, if any, to the bundle configuration.
|
|
18
|
+
* Overrides are applied in-place.
|
|
18
19
|
*
|
|
20
|
+
* @param config Platform-specific bundle configuration; this is modified if any overrides are applied.
|
|
19
21
|
* @param overrides Optional overrides to apply
|
|
20
|
-
* @param
|
|
21
|
-
* @param keys Config keys to pick from {@link overrides}
|
|
22
|
+
* @param keys Config keys to pick from {@link overrides}; defaults to {@link BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES}
|
|
22
23
|
*/
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
function applyCommandLineOverrides(config, overrides, flags = exports.BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES) {
|
|
25
|
+
for (const flag of flags) {
|
|
26
|
+
if (Object.hasOwn(overrides, flag)) {
|
|
27
|
+
const value = overrides[flag];
|
|
28
|
+
// @ts-expect-error TypeScript can't infer that `flag` is a key of `BundleConfigOverrides`, which is a subset of the keys of `CLIPlatformBundleConfig`
|
|
29
|
+
config[flag] = value;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
}
|
package/lib/bundle/types.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type CLICommonBundleOptions = {
|
|
|
18
18
|
resetCache?: boolean;
|
|
19
19
|
config?: string;
|
|
20
20
|
};
|
|
21
|
-
export type
|
|
21
|
+
export type CLIPlatformBundleConfig = BundleParameters & Required<Pick<BundleParameters, "entryFile" | "bundleOutput" | "sourcemapUseAbsolutePath" | "treeShake" | "plugins">> & {
|
|
22
22
|
unstableTransformProfile?: TransformProfile;
|
|
23
23
|
/**
|
|
24
24
|
* Target platform for the bundle
|
package/lib/bundle.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Config as CLIConfig } from "@react-native-community/cli-types";
|
|
|
2
2
|
import type { CLICommonBundleOptions } from "./bundle/types.ts";
|
|
3
3
|
import { asBoolean } from "./helpers/parsers.ts";
|
|
4
4
|
type CLIBundleOptions = CLICommonBundleOptions & {
|
|
5
|
+
metafile?: boolean | string;
|
|
5
6
|
treeShake?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare function rnxBundle(_argv: string[], cliConfig: CLIConfig, cliOptions: CLIBundleOptions): Promise<void>;
|
package/lib/bundle.js
CHANGED
|
@@ -9,16 +9,37 @@ const kit_config_ts_1 = require("./bundle/kit-config.js");
|
|
|
9
9
|
const metro_ts_1 = require("./bundle/metro.js");
|
|
10
10
|
const overrides_ts_1 = require("./bundle/overrides.js");
|
|
11
11
|
const parsers_ts_1 = require("./helpers/parsers.js");
|
|
12
|
+
function applyTreeShakingOverrides(bundleConfig, { dev, metafile, minify }) {
|
|
13
|
+
if (!dev && bundleConfig.treeShake) {
|
|
14
|
+
const treeShake = typeof bundleConfig.treeShake === "object" ? bundleConfig.treeShake : {};
|
|
15
|
+
if (metafile != null) {
|
|
16
|
+
treeShake.metafile =
|
|
17
|
+
typeof metafile === "string"
|
|
18
|
+
? metafile
|
|
19
|
+
: `${bundleConfig.bundleOutput}.meta.json`;
|
|
20
|
+
}
|
|
21
|
+
if (minify != null) {
|
|
22
|
+
treeShake.minify = minify;
|
|
23
|
+
}
|
|
24
|
+
bundleConfig.treeShake = treeShake;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
bundleConfig.treeShake = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
12
30
|
async function rnxBundle(_argv, cliConfig, cliOptions) {
|
|
13
31
|
const metroConfig = await (0, metro_service_1.loadMetroConfig)(cliConfig, cliOptions);
|
|
14
32
|
const bundleConfigs = (0, kit_config_ts_1.getCliPlatformBundleConfigs)(cliOptions.id, cliOptions.platform);
|
|
15
|
-
|
|
16
|
-
...overrides_ts_1.
|
|
33
|
+
const overridableFlags = [
|
|
34
|
+
...overrides_ts_1.BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES,
|
|
17
35
|
"hermes",
|
|
18
36
|
"treeShake",
|
|
19
|
-
]
|
|
37
|
+
];
|
|
20
38
|
for (const bundleConfig of bundleConfigs) {
|
|
21
|
-
|
|
39
|
+
(0, overrides_ts_1.applyCommandLineOverrides)(bundleConfig, cliOptions, overridableFlags);
|
|
40
|
+
applyTreeShakingOverrides(bundleConfig, cliOptions);
|
|
41
|
+
const { dev, minify } = cliOptions;
|
|
42
|
+
await (0, metro_ts_1.metroBundle)(metroConfig, bundleConfig, dev, minify);
|
|
22
43
|
const { bundleOutput, hermes, sourcemapOutput } = bundleConfig;
|
|
23
44
|
if (hermes) {
|
|
24
45
|
(0, hermes_ts_1.emitBytecode)(cliConfig, bundleOutput, sourcemapOutput, hermes === true ? {} : hermes);
|
|
@@ -31,6 +52,10 @@ exports.rnxBundleCommand = {
|
|
|
31
52
|
func: rnxBundle,
|
|
32
53
|
options: [
|
|
33
54
|
...cliOptions_ts_1.commonBundleCommandOptions,
|
|
55
|
+
{
|
|
56
|
+
name: "--metafile [boolean|string]",
|
|
57
|
+
description: "If tree shaking enabled, also produce some metadata about the build in JSON format",
|
|
58
|
+
},
|
|
34
59
|
{
|
|
35
60
|
name: "--tree-shake [boolean]",
|
|
36
61
|
description: "Enable tree shaking to remove unused code and reduce the bundle size",
|
package/lib/clean.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export declare const rnxCleanCommand: {
|
|
|
11
11
|
func: typeof rnxClean;
|
|
12
12
|
description: string;
|
|
13
13
|
options: ({
|
|
14
|
-
parse?: undefined;
|
|
15
14
|
name: string;
|
|
16
15
|
description: string;
|
|
17
16
|
default: string;
|
|
17
|
+
parse?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
name: string;
|
|
20
20
|
description: string;
|
package/lib/copy-assets.js
CHANGED
|
@@ -161,7 +161,7 @@ async function assembleAarBundle(context, packageName, { aar }, fs = nodefs) {
|
|
|
161
161
|
...customEnv,
|
|
162
162
|
};
|
|
163
163
|
const outputDir = path.join(context.options.assetsDest, "aar");
|
|
164
|
-
(0, tools_filesystem_1.
|
|
164
|
+
(0, tools_filesystem_1.ensureDirSync)(outputDir, fs);
|
|
165
165
|
const dest = path.join(outputDir, `${targetName}-${version}.aar`);
|
|
166
166
|
const targets = [`:${targetName}:assembleRelease`];
|
|
167
167
|
const targetsToCopy = [[output, dest]];
|
|
@@ -234,7 +234,7 @@ async function assembleAarBundle(context, packageName, { aar }, fs = nodefs) {
|
|
|
234
234
|
`project(":${targetName}").projectDir = file(${JSON.stringify(androidProject)})`,
|
|
235
235
|
"",
|
|
236
236
|
].join("\n");
|
|
237
|
-
(0, tools_filesystem_1.
|
|
237
|
+
(0, tools_filesystem_1.ensureDirSync)(buildDir, fs);
|
|
238
238
|
fs.writeFileSync(path.join(buildDir, "build.gradle"), buildGradle);
|
|
239
239
|
fs.writeFileSync(path.join(buildDir, "gradle.properties"), gradleProperties);
|
|
240
240
|
fs.writeFileSync(path.join(buildDir, "settings.gradle"), settingsGradle);
|
|
@@ -247,7 +247,7 @@ function copyFiles(files, destination, fs = nodefs) {
|
|
|
247
247
|
if (!Array.isArray(files) || files.length === 0) {
|
|
248
248
|
return [];
|
|
249
249
|
}
|
|
250
|
-
(0, tools_filesystem_1.
|
|
250
|
+
(0, tools_filesystem_1.ensureDirSync)(destination, fs);
|
|
251
251
|
return files.map((file) => {
|
|
252
252
|
return cp_r(file, `${destination}/${path.basename(file)}`, fs);
|
|
253
253
|
});
|
package/lib/ram-bundle.js
CHANGED
|
@@ -8,28 +8,24 @@ const cliOptions_ts_1 = require("./bundle/cliOptions.js");
|
|
|
8
8
|
const kit_config_ts_1 = require("./bundle/kit-config.js");
|
|
9
9
|
const metro_ts_1 = require("./bundle/metro.js");
|
|
10
10
|
const overrides_ts_1 = require("./bundle/overrides.js");
|
|
11
|
-
function disableTreeShaking(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
config.treeShake = false;
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
return modified;
|
|
18
|
-
}, false);
|
|
19
|
-
if (wasEnabled) {
|
|
11
|
+
function disableTreeShaking(config) {
|
|
12
|
+
if (config.treeShake) {
|
|
13
|
+
config.treeShake = false;
|
|
20
14
|
(0, console_1.info)("`treeShake` was disabled because it is not compatible with the RAM bundle format");
|
|
21
15
|
}
|
|
22
16
|
}
|
|
23
17
|
async function rnxRamBundle(_argv, cliConfig, cliOptions) {
|
|
24
18
|
const metroConfig = await (0, metro_service_1.loadMetroConfig)(cliConfig, cliOptions);
|
|
25
19
|
const bundleConfigs = (0, kit_config_ts_1.getCliPlatformBundleConfigs)(cliOptions.id, cliOptions.platform);
|
|
26
|
-
|
|
27
|
-
...overrides_ts_1.
|
|
20
|
+
const overridableFlags = [
|
|
21
|
+
...overrides_ts_1.BUNDLE_CONFIG_COMMAND_LINE_OVERRIDES,
|
|
28
22
|
"indexedRamBundle",
|
|
29
|
-
]
|
|
30
|
-
disableTreeShaking(bundleConfigs);
|
|
23
|
+
];
|
|
31
24
|
for (const bundleConfig of bundleConfigs) {
|
|
32
|
-
|
|
25
|
+
(0, overrides_ts_1.applyCommandLineOverrides)(bundleConfig, cliOptions, overridableFlags);
|
|
26
|
+
disableTreeShaking(bundleConfig);
|
|
27
|
+
const { dev, minify } = cliOptions;
|
|
28
|
+
await (0, metro_ts_1.metroBundle)(metroConfig, bundleConfig, dev, minify, metro_service_1.ramBundle);
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
31
|
exports.rnxRamBundleCommand = {
|
package/lib/run.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export declare const rnxRunCommand: {
|
|
|
23
23
|
default: string;
|
|
24
24
|
parse: (destination: string) => import("./build/types.ts").DeviceType;
|
|
25
25
|
} | {
|
|
26
|
-
default?: undefined;
|
|
27
26
|
name: string;
|
|
28
27
|
description: string;
|
|
29
28
|
parse: typeof import("./build/ccache").setCcacheDir;
|
|
29
|
+
default?: undefined;
|
|
30
30
|
})[];
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=run.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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",
|
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
"name": "Microsoft Open Source",
|
|
9
9
|
"email": "microsoftopensource@users.noreply.github.com"
|
|
10
10
|
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/rnx-kit",
|
|
14
|
+
"directory": "packages/cli"
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"rnx-cli": "bin/rnx-cli.cjs"
|
|
18
|
+
},
|
|
11
19
|
"files": [
|
|
12
20
|
"bin/rnx-cli.mjs",
|
|
13
21
|
"lib/**/*.d.ts",
|
|
@@ -15,9 +23,6 @@
|
|
|
15
23
|
"react-native.config.js"
|
|
16
24
|
],
|
|
17
25
|
"main": "lib/index.js",
|
|
18
|
-
"bin": {
|
|
19
|
-
"rnx-cli": "bin/rnx-cli.cjs"
|
|
20
|
-
},
|
|
21
26
|
"types": "lib/index.d.ts",
|
|
22
27
|
"exports": {
|
|
23
28
|
".": {
|
|
@@ -28,11 +33,6 @@
|
|
|
28
33
|
"./react-native.config.js": "./react-native.config.js",
|
|
29
34
|
"./package.json": "./package.json"
|
|
30
35
|
},
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "https://github.com/microsoft/rnx-kit",
|
|
34
|
-
"directory": "packages/cli"
|
|
35
|
-
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rnx-kit-scripts build",
|
|
38
38
|
"format": "rnx-kit-scripts format",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@rnx-kit/third-party-notices": "^2.0.0",
|
|
53
53
|
"@rnx-kit/tools-android": "^0.2.2",
|
|
54
54
|
"@rnx-kit/tools-apple": "^0.2.2",
|
|
55
|
-
"@rnx-kit/tools-filesystem": "^0.
|
|
55
|
+
"@rnx-kit/tools-filesystem": "^0.2.0",
|
|
56
56
|
"@rnx-kit/tools-language": "^3.0.1",
|
|
57
57
|
"@rnx-kit/tools-node": "^3.0.4",
|
|
58
|
-
"@rnx-kit/tools-react-native": "^2.3.
|
|
58
|
+
"@rnx-kit/tools-react-native": "^2.3.4",
|
|
59
59
|
"@rnx-kit/types-bundle-config": "^1.0.0",
|
|
60
60
|
"@rnx-kit/types-kit-config": "^1.0.0",
|
|
61
61
|
"@rnx-kit/types-node": "^1.0.0",
|
|
@@ -63,24 +63,11 @@
|
|
|
63
63
|
"ora": "^5.4.1",
|
|
64
64
|
"qrcode": "^1.5.0"
|
|
65
65
|
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"jest": ">=26.0",
|
|
68
|
-
"react-native": ">=0.64"
|
|
69
|
-
},
|
|
70
|
-
"peerDependenciesMeta": {
|
|
71
|
-
"jest": {
|
|
72
|
-
"optional": true
|
|
73
|
-
},
|
|
74
|
-
"react-native": {
|
|
75
|
-
"optional": true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
66
|
"devDependencies": {
|
|
79
67
|
"@babel/core": "^7.20.0",
|
|
80
68
|
"@babel/preset-env": "^7.20.0",
|
|
81
69
|
"@react-native-community/cli-types": "^20.0.0",
|
|
82
70
|
"@react-native-windows/cli": "^0.79.0",
|
|
83
|
-
"@rnx-kit/eslint-config": "*",
|
|
84
71
|
"@rnx-kit/jest-preset": "*",
|
|
85
72
|
"@rnx-kit/scripts": "*",
|
|
86
73
|
"@rnx-kit/tsconfig": "*",
|
|
@@ -88,6 +75,7 @@
|
|
|
88
75
|
"@types/node": "^24.0.0",
|
|
89
76
|
"@types/qrcode": "^1.4.2",
|
|
90
77
|
"markdown-table": "^3.0.0",
|
|
78
|
+
"memfs": "^4.56.10",
|
|
91
79
|
"metro": "^0.83.3",
|
|
92
80
|
"metro-babel-transformer": "^0.83.1",
|
|
93
81
|
"metro-config": "^0.83.3",
|
|
@@ -95,10 +83,22 @@
|
|
|
95
83
|
"react-native": "^0.83.0",
|
|
96
84
|
"type-fest": "^4.0.0"
|
|
97
85
|
},
|
|
98
|
-
"
|
|
99
|
-
"
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"jest": ">=26.0",
|
|
88
|
+
"react-native": ">=0.64"
|
|
89
|
+
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"jest": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"react-native": {
|
|
95
|
+
"optional": true
|
|
96
|
+
}
|
|
100
97
|
},
|
|
101
98
|
"jest": {
|
|
102
99
|
"preset": "@rnx-kit/jest-preset/private"
|
|
100
|
+
},
|
|
101
|
+
"engines": {
|
|
102
|
+
"node": ">=22.11"
|
|
103
103
|
}
|
|
104
104
|
}
|