@rnx-kit/cli 0.17.6 → 0.17.7

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/index.d.ts CHANGED
@@ -2,7 +2,20 @@ import type { Command } from "@react-native-community/cli-types";
2
2
  export declare const reactNativeConfig: {
3
3
  commands: Command<false>[];
4
4
  };
5
- export { rnxAlignDeps, rnxAlignDepsCommand } from "./align-deps";
5
+ export declare const rnxAlignDeps: (_argv: string[], _config: import("@react-native-community/cli-types").Config, args: {
6
+ [x: string]: string | number | boolean | undefined;
7
+ }) => void;
8
+ export declare const rnxAlignDepsCommand: {
9
+ name: string;
10
+ description: string;
11
+ func: (_argv: string[], _config: import("@react-native-community/cli-types").Config, args: {
12
+ [x: string]: string | number | boolean | undefined;
13
+ }) => void;
14
+ readonly options: {
15
+ name: string;
16
+ description: string;
17
+ }[];
18
+ };
6
19
  export { rnxBuild, rnxBuildCommand } from "./build";
7
20
  export { rnxBundle, rnxBundleCommand } from "./bundle";
8
21
  export { rnxClean, rnxCleanCommand } from "./clean";
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rnxWriteThirdPartyNoticesCommand = exports.rnxWriteThirdPartyNotices = exports.rnxTestCommand = exports.rnxTest = exports.rnxStartCommand = exports.rnxStart = exports.rnxRunCommand = exports.rnxRun = exports.rnxRamBundleCommand = exports.rnxRamBundle = exports.rnxCopyAssetsCommand = exports.copyProjectAssets = exports.rnxCleanCommand = exports.rnxClean = exports.rnxBundleCommand = exports.rnxBundle = exports.rnxBuildCommand = exports.rnxBuild = exports.rnxAlignDepsCommand = exports.rnxAlignDeps = exports.reactNativeConfig = void 0;
4
- const align_deps_1 = require("./align-deps");
4
+ const align_deps_1 = require("@rnx-kit/align-deps");
5
5
  const build_1 = require("./build");
6
6
  const bundle_1 = require("./bundle");
7
7
  const clean_1 = require("./clean");
@@ -19,15 +19,15 @@ exports.reactNativeConfig = {
19
19
  build_1.rnxBuildCommand,
20
20
  run_1.rnxRunCommand,
21
21
  copy_assets_1.rnxCopyAssetsCommand,
22
- align_deps_1.rnxAlignDepsCommand,
22
+ align_deps_1.alignDepsCommand,
23
23
  test_1.rnxTestCommand,
24
24
  write_third_party_notices_1.rnxWriteThirdPartyNoticesCommand,
25
25
  clean_1.rnxCleanCommand,
26
26
  ],
27
27
  };
28
- var align_deps_2 = require("./align-deps");
29
- Object.defineProperty(exports, "rnxAlignDeps", { enumerable: true, get: function () { return align_deps_2.rnxAlignDeps; } });
30
- Object.defineProperty(exports, "rnxAlignDepsCommand", { enumerable: true, get: function () { return align_deps_2.rnxAlignDepsCommand; } });
28
+ // @rnx-kit/align-deps
29
+ exports.rnxAlignDeps = align_deps_1.alignDepsCommand.func;
30
+ exports.rnxAlignDepsCommand = align_deps_1.alignDepsCommand;
31
31
  var build_2 = require("./build");
32
32
  Object.defineProperty(exports, "rnxBuild", { enumerable: true, get: function () { return build_2.rnxBuild; } });
33
33
  Object.defineProperty(exports, "rnxBuildCommand", { enumerable: true, get: function () { return build_2.rnxBuildCommand; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/cli",
3
- "version": "0.17.6",
3
+ "version": "0.17.7",
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",
@@ -40,7 +40,7 @@
40
40
  "test": "rnx-kit-scripts test"
41
41
  },
42
42
  "dependencies": {
43
- "@rnx-kit/align-deps": "^2.5.4",
43
+ "@rnx-kit/align-deps": "^2.5.5",
44
44
  "@rnx-kit/config": "^0.6.6",
45
45
  "@rnx-kit/console": "^1.1.0",
46
46
  "@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.1.1",
@@ -1,14 +0,0 @@
1
- import type { Config as CLIConfig } from "@react-native-community/cli-types";
2
- type CLIArgs = Record<string, string | number | boolean | undefined>;
3
- export declare function rnxAlignDeps(_argv: string[], _config: CLIConfig, args: CLIArgs): void;
4
- export declare const rnxAlignDepsCommand: {
5
- name: string;
6
- description: string;
7
- func: typeof rnxAlignDeps;
8
- options: {
9
- name: string;
10
- description: string;
11
- }[];
12
- };
13
- export {};
14
- //# sourceMappingURL=align-deps.d.ts.map
package/lib/align-deps.js DELETED
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rnxAlignDepsCommand = void 0;
4
- exports.rnxAlignDeps = rnxAlignDeps;
5
- const align_deps_1 = require("@rnx-kit/align-deps");
6
- const properties_1 = require("@rnx-kit/tools-language/properties");
7
- const optionsMap = {
8
- "exclude-packages": "excludePackages",
9
- init: "init",
10
- presets: "presets",
11
- requirements: "requirements",
12
- "set-version": "setVersion",
13
- };
14
- function rnxAlignDeps(_argv, _config, args) {
15
- (0, align_deps_1.cli)({
16
- ...(0, properties_1.pickValues)(args, Object.values(optionsMap), Object.keys(optionsMap)),
17
- "diff-mode": args.diffMode?.toString(),
18
- loose: Boolean(args.loose),
19
- "migrate-config": Boolean(args.migrateConfig),
20
- "no-unmanaged": Boolean(args.noUnmanaged),
21
- verbose: Boolean(args.verbose),
22
- write: Boolean(args.write),
23
- });
24
- }
25
- exports.rnxAlignDepsCommand = {
26
- name: "rnx-align-deps",
27
- description: "Manage dependencies within a repository and across many repositories",
28
- func: rnxAlignDeps,
29
- options: [
30
- {
31
- name: `--diff-mode <${align_deps_1.cliOptions["diff-mode"].choices.join("|")}>`,
32
- description: align_deps_1.cliOptions["diff-mode"].description,
33
- },
34
- {
35
- name: "--exclude-packages <packages>",
36
- description: align_deps_1.cliOptions["exclude-packages"].description,
37
- },
38
- {
39
- name: `--init <${align_deps_1.cliOptions.init.choices?.join("|")}>`,
40
- description: align_deps_1.cliOptions.init.description,
41
- },
42
- {
43
- name: "--loose",
44
- description: align_deps_1.cliOptions.loose.description,
45
- },
46
- {
47
- name: "--migrate-config",
48
- description: align_deps_1.cliOptions["migrate-config"].description,
49
- },
50
- {
51
- name: "--no-unmanaged",
52
- description: align_deps_1.cliOptions["no-unmanaged"].description,
53
- },
54
- {
55
- name: "--presets <presets>",
56
- description: align_deps_1.cliOptions.presets.description,
57
- },
58
- {
59
- name: "--requirements <requirements>",
60
- description: align_deps_1.cliOptions.requirements.description,
61
- },
62
- {
63
- name: "--set-version [versions]",
64
- description: align_deps_1.cliOptions["set-version"].description,
65
- },
66
- {
67
- name: "--verbose",
68
- description: align_deps_1.cliOptions.verbose.description,
69
- },
70
- {
71
- name: "--write",
72
- description: align_deps_1.cliOptions.write.description,
73
- },
74
- ],
75
- };
76
- //# sourceMappingURL=align-deps.js.map