@rnx-kit/cli 0.14.10 → 0.15.1

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +3 -3
  3. package/coverage/clover.xml +20 -22
  4. package/coverage/coverage-final.json +1 -1
  5. package/coverage/lcov-report/index.html +11 -11
  6. package/coverage/lcov-report/src/bundle/defaultPlugins.ts.html +1 -1
  7. package/coverage/lcov-report/src/bundle/index.html +1 -1
  8. package/coverage/lcov-report/src/bundle/kit-config.ts.html +1 -1
  9. package/coverage/lcov-report/src/bundle/metro.ts.html +1 -1
  10. package/coverage/lcov-report/src/bundle/overrides.ts.html +1 -1
  11. package/coverage/lcov-report/src/copy-assets.ts.html +1 -1
  12. package/coverage/lcov-report/src/index.html +1 -1
  13. package/coverage/lcov-report/src/metro-config.ts.html +1 -1
  14. package/coverage/lcov-report/src/typescript/index.html +11 -11
  15. package/coverage/lcov-report/src/typescript/project-cache.ts.html +6 -18
  16. package/coverage/lcov.info +23 -25
  17. package/lib/align-deps.d.ts +14 -0
  18. package/lib/align-deps.d.ts.map +1 -0
  19. package/lib/align-deps.js +68 -0
  20. package/lib/align-deps.js.map +1 -0
  21. package/lib/bundle/overrides.d.ts +1 -1
  22. package/lib/bundle/overrides.d.ts.map +1 -1
  23. package/lib/bundle/types.d.ts +2 -2
  24. package/lib/bundle/types.d.ts.map +1 -1
  25. package/lib/bundle.d.ts +1 -1
  26. package/lib/bundle.d.ts.map +1 -1
  27. package/lib/clean.d.ts +1 -1
  28. package/lib/clean.d.ts.map +1 -1
  29. package/lib/copy-assets.d.ts +5 -5
  30. package/lib/copy-assets.d.ts.map +1 -1
  31. package/lib/index.d.ts +1 -1
  32. package/lib/index.d.ts.map +1 -1
  33. package/lib/index.js +4 -4
  34. package/lib/index.js.map +1 -1
  35. package/lib/ram-bundle.d.ts +1 -1
  36. package/lib/ram-bundle.d.ts.map +1 -1
  37. package/lib/serve/kit-config.d.ts +2 -2
  38. package/lib/serve/kit-config.d.ts.map +1 -1
  39. package/lib/start.d.ts +1 -1
  40. package/lib/start.d.ts.map +1 -1
  41. package/lib/test.d.ts +2 -2
  42. package/lib/test.d.ts.map +1 -1
  43. package/lib/typescript/project-cache.d.ts +1 -1
  44. package/lib/typescript/project-cache.d.ts.map +1 -1
  45. package/lib/typescript/project-cache.js +0 -4
  46. package/lib/typescript/project-cache.js.map +1 -1
  47. package/lib/write-third-party-notices.d.ts +1 -1
  48. package/lib/write-third-party-notices.d.ts.map +1 -1
  49. package/package.json +3 -3
  50. package/react-native.config.js +4 -4
  51. package/src/align-deps.ts +73 -0
  52. package/src/index.ts +1 -1
  53. package/src/typescript/project-cache.ts +0 -4
  54. package/test/metro-config.test.ts +1 -3
  55. package/lib/dep-check.d.ts +0 -14
  56. package/lib/dep-check.d.ts.map +0 -1
  57. package/lib/dep-check.js +0 -56
  58. package/lib/dep-check.js.map +0 -1
  59. package/src/dep-check.ts +0 -69
package/lib/dep-check.js DELETED
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rnxDepCheckCommand = exports.rnxDepCheck = void 0;
4
- const dep_check_1 = require("@rnx-kit/dep-check");
5
- const properties_1 = require("@rnx-kit/tools-language/properties");
6
- function rnxDepCheck(argv, _config, args) {
7
- (0, dep_check_1.cli)({
8
- ...(0, properties_1.pickValues)(args, [
9
- "custom-profiles",
10
- "exclude-packages",
11
- "init",
12
- "set-version",
13
- "vigilant",
14
- ], ["customProfiles", "excludePackages", "init", "setVersion", "vigilant"]),
15
- loose: Boolean(args.loose),
16
- write: Boolean(args.write),
17
- packages: argv,
18
- });
19
- }
20
- exports.rnxDepCheck = rnxDepCheck;
21
- exports.rnxDepCheckCommand = {
22
- name: "rnx-dep-check",
23
- description: "Dependency checker for React Native apps",
24
- func: rnxDepCheck,
25
- options: [
26
- {
27
- name: "--custom-profiles [module]",
28
- description: "Path to custom profiles. This can be a path to a JSON file, a `.js` file, or a module name.",
29
- },
30
- {
31
- name: "--exclude-packages [packages]",
32
- description: "Comma-separated list of package names to exclude from inspection.",
33
- },
34
- {
35
- name: "--init [app|library]",
36
- description: "Writes an initial kit config",
37
- },
38
- {
39
- name: "--loose",
40
- description: "Determines how strict the React Native version requirement should be. Useful for apps that depend on a newer React Native version than their dependencies declare support for.",
41
- },
42
- {
43
- name: "--set-version [versions]",
44
- description: "Sets `reactNativeVersion` and `reactNativeDevVersion` for any configured package. The value should be a comma-separated list of `react-native` versions to set. The first number specifies the development version. Example: `0.64,0.63`",
45
- },
46
- {
47
- name: "--vigilant [versions]",
48
- description: "Inspects packages regardless of whether they've been configured. Specify a comma-separated list of profile versions to compare against, e.g. `0.63,0.64`. The first number specifies the target version.",
49
- },
50
- {
51
- name: "--write",
52
- description: "Writes all changes to the specified `package.json`",
53
- },
54
- ],
55
- };
56
- //# sourceMappingURL=dep-check.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dep-check.js","sourceRoot":"","sources":["../src/dep-check.ts"],"names":[],"mappings":";;;AACA,kDAAyC;AACzC,mEAAgE;AAIhE,SAAgB,WAAW,CACzB,IAAc,EACd,OAAkB,EAClB,IAAa;IAEb,IAAA,eAAG,EAAC;QACF,GAAG,IAAA,uBAAU,EACX,IAAI,EACJ;YACE,iBAAiB;YACjB,kBAAkB;YAClB,MAAM;YACN,aAAa;YACb,UAAU;SACX,EACD,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CACxE;QACD,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC1B,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC;AArBD,kCAqBC;AAEY,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE;QACP;YACE,IAAI,EAAE,4BAA4B;YAClC,WAAW,EACT,6FAA6F;SAChG;QACD;YACE,IAAI,EAAE,+BAA+B;YACrC,WAAW,EACT,mEAAmE;SACtE;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,8BAA8B;SAC5C;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EACT,gLAAgL;SACnL;QACD;YACE,IAAI,EAAE,0BAA0B;YAChC,WAAW,EACT,0OAA0O;SAC7O;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EACT,0MAA0M;SAC7M;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oDAAoD;SAClE;KACF;CACF,CAAC"}
package/src/dep-check.ts DELETED
@@ -1,69 +0,0 @@
1
- import type { Config as CLIConfig } from "@react-native-community/cli-types";
2
- import { cli } from "@rnx-kit/dep-check";
3
- import { pickValues } from "@rnx-kit/tools-language/properties";
4
-
5
- type CLIArgs = Record<string, string | number | boolean | undefined>;
6
-
7
- export function rnxDepCheck(
8
- argv: string[],
9
- _config: CLIConfig,
10
- args: CLIArgs
11
- ): void {
12
- cli({
13
- ...pickValues(
14
- args,
15
- [
16
- "custom-profiles",
17
- "exclude-packages",
18
- "init",
19
- "set-version",
20
- "vigilant",
21
- ],
22
- ["customProfiles", "excludePackages", "init", "setVersion", "vigilant"]
23
- ),
24
- loose: Boolean(args.loose),
25
- write: Boolean(args.write),
26
- packages: argv,
27
- });
28
- }
29
-
30
- export const rnxDepCheckCommand = {
31
- name: "rnx-dep-check",
32
- description: "Dependency checker for React Native apps",
33
- func: rnxDepCheck,
34
- options: [
35
- {
36
- name: "--custom-profiles [module]",
37
- description:
38
- "Path to custom profiles. This can be a path to a JSON file, a `.js` file, or a module name.",
39
- },
40
- {
41
- name: "--exclude-packages [packages]",
42
- description:
43
- "Comma-separated list of package names to exclude from inspection.",
44
- },
45
- {
46
- name: "--init [app|library]",
47
- description: "Writes an initial kit config",
48
- },
49
- {
50
- name: "--loose",
51
- description:
52
- "Determines how strict the React Native version requirement should be. Useful for apps that depend on a newer React Native version than their dependencies declare support for.",
53
- },
54
- {
55
- name: "--set-version [versions]",
56
- description:
57
- "Sets `reactNativeVersion` and `reactNativeDevVersion` for any configured package. The value should be a comma-separated list of `react-native` versions to set. The first number specifies the development version. Example: `0.64,0.63`",
58
- },
59
- {
60
- name: "--vigilant [versions]",
61
- description:
62
- "Inspects packages regardless of whether they've been configured. Specify a comma-separated list of profile versions to compare against, e.g. `0.63,0.64`. The first number specifies the target version.",
63
- },
64
- {
65
- name: "--write",
66
- description: "Writes all changes to the specified `package.json`",
67
- },
68
- ],
69
- };