@rnx-kit/cli 0.14.8 → 0.14.9
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/CHANGELOG.md +11 -0
- package/coverage/clover.xml +124 -125
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/src/bundle/defaultPlugins.ts.html +1 -1
- package/coverage/lcov-report/src/bundle/index.html +1 -1
- package/coverage/lcov-report/src/bundle/kit-config.ts.html +1 -1
- package/coverage/lcov-report/src/bundle/metro.ts.html +1 -1
- package/coverage/lcov-report/src/bundle/overrides.ts.html +1 -1
- package/coverage/lcov-report/src/copy-assets.ts.html +12 -21
- package/coverage/lcov-report/src/index.html +16 -16
- package/coverage/lcov-report/src/metro-config.ts.html +1 -1
- package/coverage/lcov-report/src/typescript/index.html +1 -1
- package/coverage/lcov-report/src/typescript/project-cache.ts.html +1 -1
- package/coverage/lcov.info +226 -231
- package/lib/copy-assets.d.ts.map +1 -1
- package/lib/copy-assets.js +2 -4
- package/lib/copy-assets.js.map +1 -1
- package/package.json +3 -3
- package/src/copy-assets.ts +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.9",
|
|
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",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@rnx-kit/config": "^0.5.2",
|
|
23
23
|
"@rnx-kit/console": "^1.0.11",
|
|
24
|
-
"@rnx-kit/dep-check": "^1.
|
|
24
|
+
"@rnx-kit/dep-check": "^1.13.4",
|
|
25
25
|
"@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.0.21",
|
|
26
26
|
"@rnx-kit/metro-plugin-duplicates-checker": "^2.0.0",
|
|
27
27
|
"@rnx-kit/metro-serializer": "^1.0.11",
|
|
28
28
|
"@rnx-kit/metro-serializer-esbuild": "^0.1.0",
|
|
29
29
|
"@rnx-kit/metro-service": "^3.0.2",
|
|
30
30
|
"@rnx-kit/third-party-notices": "^1.2.13",
|
|
31
|
-
"@rnx-kit/tools-language": "^1.
|
|
31
|
+
"@rnx-kit/tools-language": "^1.4.0",
|
|
32
32
|
"@rnx-kit/tools-node": "^1.2.7",
|
|
33
33
|
"@rnx-kit/tools-react-native": "^1.2.0",
|
|
34
34
|
"@rnx-kit/typescript-react-native-resolver": "^0.2.0",
|
package/src/copy-assets.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Config as CLIConfig } from "@react-native-community/cli-types";
|
|
2
2
|
import { error, info, warn } from "@rnx-kit/console";
|
|
3
3
|
import { isNonEmptyArray } from "@rnx-kit/tools-language/array";
|
|
4
|
+
import { keysOf } from "@rnx-kit/tools-language/properties";
|
|
4
5
|
import type { PackageManifest } from "@rnx-kit/tools-node/package";
|
|
5
6
|
import {
|
|
6
7
|
findPackageDependencyDir,
|
|
@@ -93,10 +94,6 @@ function isAssetsConfig(config: unknown): config is AssetsConfig {
|
|
|
93
94
|
return typeof config === "object" && config !== null && "getAssets" in config;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
function keysOf(record: Record<string, unknown> | undefined): string[] {
|
|
97
|
-
return record ? Object.keys(record) : [];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
97
|
export function versionOf(pkgName: string): string {
|
|
101
98
|
const packageDir = findPackageDependencyDir(pkgName);
|
|
102
99
|
if (!packageDir) {
|