@rnx-kit/cli 0.16.27 → 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.
@@ -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(argv: string[], _config: CLIConfig, args: CLIArgs): void;
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 = exports.rnxAlignDeps = void 0;
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,23 +12,27 @@ const optionsMap = {
11
12
  requirements: "requirements",
12
13
  "set-version": "setVersion",
13
14
  };
14
- function rnxAlignDeps(argv, _config, args) {
15
+ function rnxAlignDeps(_argv, _config, args) {
16
+ var _a;
15
17
  (0, align_deps_1.cli)({
16
18
  ...(0, properties_1.pickValues)(args, Object.values(optionsMap), Object.keys(optionsMap)),
19
+ "diff-mode": (_a = args.diffMode) === null || _a === void 0 ? void 0 : _a.toString(),
17
20
  loose: Boolean(args.loose),
18
21
  "migrate-config": Boolean(args.migrateConfig),
19
22
  "no-unmanaged": Boolean(args.noUnmanaged),
20
23
  verbose: Boolean(args.verbose),
21
24
  write: Boolean(args.write),
22
- packages: argv,
23
25
  });
24
26
  }
25
- exports.rnxAlignDeps = rnxAlignDeps;
26
27
  exports.rnxAlignDepsCommand = {
27
28
  name: "rnx-align-deps",
28
29
  description: "Manage dependencies within a repository and across many repositories",
29
30
  func: rnxAlignDeps,
30
31
  options: [
32
+ {
33
+ name: `--diff-mode [${align_deps_1.cliOptions["diff-mode"].choices.join("|")}]`,
34
+ description: align_deps_1.cliOptions["diff-mode"].description,
35
+ },
31
36
  {
32
37
  name: "--exclude-packages [packages]",
33
38
  description: align_deps_1.cliOptions["exclude-packages"].description,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDefaultBundlerPlugins = void 0;
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
@@ -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 = void 0;
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
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCliPlatformBundleConfigs = exports.getTargetPlatforms = void 0;
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
@@ -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 = void 0;
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
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyBundleConfigOverrides = exports.overridableCommonBundleOptions = void 0;
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 = exports.rnxBundle = void 0;
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 = exports.rnxClean = void 0;
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();
@@ -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 = exports.copyProjectAssets = exports.gatherConfigs = exports.copyAssets = exports.assembleAarBundle = exports.versionOf = void 0;
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 | undefined;
172
- parse?: ((val: string) => unknown) | undefined;
173
- default?: string | number | boolean | ((config: import("@react-native-community/cli-types").Config) => string | number | boolean) | undefined;
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;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.customizeMetroConfig = void 0;
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.parseTransformProfile = exports.asStringArray = exports.asResolvedPath = exports.asNumber = exports.asBoolean = void 0;
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 = exports.rnxRamBundle = void 0;
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.",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.requireExternal = void 0;
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 = void 0;
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
@@ -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 = void 0;
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
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getKitServerConfig = void 0;
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
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import type * as logger from "@rnx-kit/console";
4
2
  import type { Server as Middleware } from "connect";
5
3
  import type { Server as HttpServer } from "http";
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 = exports.rnxStart = void 0;
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 = exports.jestOptions = exports.rnxTest = void 0;
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 = exports.rnxWriteThirdPartyNotices = void 0;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/cli",
3
- "version": "0.16.27",
3
+ "version": "0.16.29",
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",
@@ -37,7 +37,7 @@
37
37
  "test": "rnx-kit-scripts test"
38
38
  },
39
39
  "dependencies": {
40
- "@rnx-kit/align-deps": "^2.4.3",
40
+ "@rnx-kit/align-deps": "^2.5.0",
41
41
  "@rnx-kit/config": "^0.6.6",
42
42
  "@rnx-kit/console": "^1.1.0",
43
43
  "@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.1.1",
package/src/align-deps.ts CHANGED
@@ -13,18 +13,18 @@ const optionsMap: Partial<Record<keyof typeof cliOptions, string>> = {
13
13
  };
14
14
 
15
15
  export function rnxAlignDeps(
16
- argv: string[],
16
+ _argv: string[],
17
17
  _config: CLIConfig,
18
18
  args: CLIArgs
19
19
  ): void {
20
20
  cli({
21
21
  ...pickValues(args, Object.values(optionsMap), Object.keys(optionsMap)),
22
+ "diff-mode": args.diffMode?.toString(),
22
23
  loose: Boolean(args.loose),
23
24
  "migrate-config": Boolean(args.migrateConfig),
24
25
  "no-unmanaged": Boolean(args.noUnmanaged),
25
26
  verbose: Boolean(args.verbose),
26
27
  write: Boolean(args.write),
27
- packages: argv,
28
28
  });
29
29
  }
30
30
 
@@ -34,6 +34,10 @@ export const rnxAlignDepsCommand = {
34
34
  "Manage dependencies within a repository and across many repositories",
35
35
  func: rnxAlignDeps,
36
36
  options: [
37
+ {
38
+ name: `--diff-mode [${cliOptions["diff-mode"].choices.join("|")}]`,
39
+ description: cliOptions["diff-mode"].description,
40
+ },
37
41
  {
38
42
  name: "--exclude-packages [packages]",
39
43
  description: cliOptions["exclude-packages"].description,