@rnx-kit/cli 0.17.7 → 0.18.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/lib/index.d.ts +21 -1
- package/lib/index.js +6 -6
- package/package.json +16 -16
- package/lib/write-third-party-notices.d.ts +0 -28
- package/lib/write-third-party-notices.js +0 -59
package/lib/index.d.ts
CHANGED
|
@@ -16,6 +16,27 @@ export declare const rnxAlignDepsCommand: {
|
|
|
16
16
|
description: string;
|
|
17
17
|
}[];
|
|
18
18
|
};
|
|
19
|
+
export declare const rnxWriteThirdPartyNotices: (_argv: string[], _config: import("@react-native-community/cli-types").Config, { additionalText, fullLicenseText, ignoreModules, ignoreScopes, json, outputFile, preambleText, rootPath, sourceMapFile, }: import("@rnx-kit/third-party-notices/lib/types").WriteThirdPartyNoticesOptions & {
|
|
20
|
+
ignoreScopes?: string;
|
|
21
|
+
ignoreModules?: string;
|
|
22
|
+
preambleText?: string;
|
|
23
|
+
additionalText?: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
export declare const rnxWriteThirdPartyNoticesCommand: {
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
func: (_argv: string[], _config: import("@react-native-community/cli-types").Config, { additionalText, fullLicenseText, ignoreModules, ignoreScopes, json, outputFile, preambleText, rootPath, sourceMapFile, }: import("@rnx-kit/third-party-notices/lib/types").WriteThirdPartyNoticesOptions & {
|
|
29
|
+
ignoreScopes?: string;
|
|
30
|
+
ignoreModules?: string;
|
|
31
|
+
preambleText?: string;
|
|
32
|
+
additionalText?: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
readonly options: {
|
|
35
|
+
name: string;
|
|
36
|
+
description: "The root of the repo to start resolving modules from" | "The source map file to generate license contents for" | "Output license information as a JSON" | "The output file to write the license file to" | "npm scopes to ignore and not emit license information for" | "Modules (JS packages) to not emit license information for" | "A list of lines to prepend at the start of the generated license file" | "A list of lines to append at the end of the generated license file" | "Include full license text in the JSON output";
|
|
37
|
+
default: string | false | undefined;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
19
40
|
export { rnxBuild, rnxBuildCommand } from "./build";
|
|
20
41
|
export { rnxBundle, rnxBundleCommand } from "./bundle";
|
|
21
42
|
export { rnxClean, rnxCleanCommand } from "./clean";
|
|
@@ -24,5 +45,4 @@ export { rnxRamBundle, rnxRamBundleCommand } from "./ram-bundle";
|
|
|
24
45
|
export { rnxRun, rnxRunCommand } from "./run";
|
|
25
46
|
export { rnxStart, rnxStartCommand } from "./start";
|
|
26
47
|
export { rnxTest, rnxTestCommand } from "./test";
|
|
27
|
-
export { rnxWriteThirdPartyNotices, rnxWriteThirdPartyNoticesCommand, } from "./write-third-party-notices";
|
|
28
48
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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.rnxWriteThirdPartyNoticesCommand = exports.rnxWriteThirdPartyNotices = exports.rnxAlignDepsCommand = exports.rnxAlignDeps = exports.reactNativeConfig = void 0;
|
|
4
4
|
const align_deps_1 = require("@rnx-kit/align-deps");
|
|
5
|
+
const third_party_notices_1 = require("@rnx-kit/third-party-notices");
|
|
5
6
|
const build_1 = require("./build");
|
|
6
7
|
const bundle_1 = require("./bundle");
|
|
7
8
|
const clean_1 = require("./clean");
|
|
@@ -10,7 +11,6 @@ const ram_bundle_1 = require("./ram-bundle");
|
|
|
10
11
|
const run_1 = require("./run");
|
|
11
12
|
const start_1 = require("./start");
|
|
12
13
|
const test_1 = require("./test");
|
|
13
|
-
const write_third_party_notices_1 = require("./write-third-party-notices");
|
|
14
14
|
exports.reactNativeConfig = {
|
|
15
15
|
commands: [
|
|
16
16
|
bundle_1.rnxBundleCommand,
|
|
@@ -21,13 +21,16 @@ exports.reactNativeConfig = {
|
|
|
21
21
|
copy_assets_1.rnxCopyAssetsCommand,
|
|
22
22
|
align_deps_1.alignDepsCommand,
|
|
23
23
|
test_1.rnxTestCommand,
|
|
24
|
-
|
|
24
|
+
third_party_notices_1.writeThirdPartyNoticesCommand,
|
|
25
25
|
clean_1.rnxCleanCommand,
|
|
26
26
|
],
|
|
27
27
|
};
|
|
28
28
|
// @rnx-kit/align-deps
|
|
29
29
|
exports.rnxAlignDeps = align_deps_1.alignDepsCommand.func;
|
|
30
30
|
exports.rnxAlignDepsCommand = align_deps_1.alignDepsCommand;
|
|
31
|
+
// @rnx-kit/third-party-notices
|
|
32
|
+
exports.rnxWriteThirdPartyNotices = third_party_notices_1.writeThirdPartyNoticesCommand.func;
|
|
33
|
+
exports.rnxWriteThirdPartyNoticesCommand = third_party_notices_1.writeThirdPartyNoticesCommand;
|
|
31
34
|
var build_2 = require("./build");
|
|
32
35
|
Object.defineProperty(exports, "rnxBuild", { enumerable: true, get: function () { return build_2.rnxBuild; } });
|
|
33
36
|
Object.defineProperty(exports, "rnxBuildCommand", { enumerable: true, get: function () { return build_2.rnxBuildCommand; } });
|
|
@@ -52,7 +55,4 @@ Object.defineProperty(exports, "rnxStartCommand", { enumerable: true, get: funct
|
|
|
52
55
|
var test_2 = require("./test");
|
|
53
56
|
Object.defineProperty(exports, "rnxTest", { enumerable: true, get: function () { return test_2.rnxTest; } });
|
|
54
57
|
Object.defineProperty(exports, "rnxTestCommand", { enumerable: true, get: function () { return test_2.rnxTestCommand; } });
|
|
55
|
-
var write_third_party_notices_2 = require("./write-third-party-notices");
|
|
56
|
-
Object.defineProperty(exports, "rnxWriteThirdPartyNotices", { enumerable: true, get: function () { return write_third_party_notices_2.rnxWriteThirdPartyNotices; } });
|
|
57
|
-
Object.defineProperty(exports, "rnxWriteThirdPartyNoticesCommand", { enumerable: true, get: function () { return write_third_party_notices_2.rnxWriteThirdPartyNoticesCommand; } });
|
|
58
58
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"test": "rnx-kit-scripts test"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@rnx-kit/align-deps": "^
|
|
44
|
-
"@rnx-kit/config": "^0.
|
|
45
|
-
"@rnx-kit/console": "^
|
|
46
|
-
"@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^
|
|
47
|
-
"@rnx-kit/metro-plugin-duplicates-checker": "^
|
|
48
|
-
"@rnx-kit/metro-plugin-typescript": "^0.
|
|
49
|
-
"@rnx-kit/metro-serializer": "^
|
|
50
|
-
"@rnx-kit/metro-serializer-esbuild": "^0.
|
|
51
|
-
"@rnx-kit/metro-service": "^
|
|
52
|
-
"@rnx-kit/third-party-notices": "^
|
|
53
|
-
"@rnx-kit/tools-android": "^0.
|
|
54
|
-
"@rnx-kit/tools-apple": "^0.
|
|
55
|
-
"@rnx-kit/tools-language": "^
|
|
56
|
-
"@rnx-kit/tools-node": "^
|
|
57
|
-
"@rnx-kit/tools-react-native": "^
|
|
43
|
+
"@rnx-kit/align-deps": "^3.0.0",
|
|
44
|
+
"@rnx-kit/config": "^0.7.0",
|
|
45
|
+
"@rnx-kit/console": "^2.0.0",
|
|
46
|
+
"@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^2.0.0",
|
|
47
|
+
"@rnx-kit/metro-plugin-duplicates-checker": "^3.0.0",
|
|
48
|
+
"@rnx-kit/metro-plugin-typescript": "^0.5.0",
|
|
49
|
+
"@rnx-kit/metro-serializer": "^2.0.0",
|
|
50
|
+
"@rnx-kit/metro-serializer-esbuild": "^0.2.0",
|
|
51
|
+
"@rnx-kit/metro-service": "^4.0.0",
|
|
52
|
+
"@rnx-kit/third-party-notices": "^2.0.0",
|
|
53
|
+
"@rnx-kit/tools-android": "^0.2.0",
|
|
54
|
+
"@rnx-kit/tools-apple": "^0.2.0",
|
|
55
|
+
"@rnx-kit/tools-language": "^3.0.0",
|
|
56
|
+
"@rnx-kit/tools-node": "^3.0.0",
|
|
57
|
+
"@rnx-kit/tools-react-native": "^2.0.0",
|
|
58
58
|
"commander": "^11.1.0",
|
|
59
59
|
"ora": "^5.4.1",
|
|
60
60
|
"qrcode": "^1.5.0"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Config as CLIConfig } from "@react-native-community/cli-types";
|
|
2
|
-
type CliThirdPartyNoticesOptions = {
|
|
3
|
-
rootPath: string;
|
|
4
|
-
sourceMapFile: string;
|
|
5
|
-
json: boolean;
|
|
6
|
-
outputFile?: string;
|
|
7
|
-
ignoreScopes?: string;
|
|
8
|
-
ignoreModules?: string;
|
|
9
|
-
preambleText?: string;
|
|
10
|
-
additionalText?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function rnxWriteThirdPartyNotices(_argv: string[], _config: CLIConfig, { additionalText, ignoreModules, ignoreScopes, json, outputFile, preambleText, rootPath, sourceMapFile, }: CliThirdPartyNoticesOptions): void;
|
|
13
|
-
export declare const rnxWriteThirdPartyNoticesCommand: {
|
|
14
|
-
name: string;
|
|
15
|
-
description: string;
|
|
16
|
-
func: typeof rnxWriteThirdPartyNotices;
|
|
17
|
-
options: ({
|
|
18
|
-
name: string;
|
|
19
|
-
description: string;
|
|
20
|
-
default?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
default: boolean;
|
|
25
|
-
})[];
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=write-third-party-notices.d.ts.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxWriteThirdPartyNoticesCommand = void 0;
|
|
4
|
-
exports.rnxWriteThirdPartyNotices = rnxWriteThirdPartyNotices;
|
|
5
|
-
const third_party_notices_1 = require("@rnx-kit/third-party-notices");
|
|
6
|
-
function rnxWriteThirdPartyNotices(_argv, _config, { additionalText, ignoreModules, ignoreScopes, json, outputFile, preambleText, rootPath, sourceMapFile, }) {
|
|
7
|
-
// react-native-cli is not as rich as yargs, so we have to perform a mapping.
|
|
8
|
-
(0, third_party_notices_1.writeThirdPartyNotices)({
|
|
9
|
-
rootPath,
|
|
10
|
-
sourceMapFile,
|
|
11
|
-
json,
|
|
12
|
-
outputFile,
|
|
13
|
-
ignoreScopes: ignoreScopes?.split(","),
|
|
14
|
-
ignoreModules: ignoreModules?.split(","),
|
|
15
|
-
preambleText: preambleText ? [preambleText] : undefined,
|
|
16
|
-
additionalText: additionalText ? [additionalText] : undefined,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
exports.rnxWriteThirdPartyNoticesCommand = {
|
|
20
|
-
name: "rnx-write-third-party-notices",
|
|
21
|
-
description: "Writes third party notices based on the given bundle",
|
|
22
|
-
func: rnxWriteThirdPartyNotices,
|
|
23
|
-
options: [
|
|
24
|
-
{
|
|
25
|
-
name: "--root-path <path>",
|
|
26
|
-
description: "The root of the repo — the starting point for finding each module in the source map dependency graph",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "--source-map-file <file>",
|
|
30
|
-
description: "The source map file associated with the package's entry file — this source map eventually leads to all package dependencies and their licenses",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "--json",
|
|
34
|
-
description: "Format the 3rd-party notice file as JSON instead of text",
|
|
35
|
-
default: false,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: "--output-file <file>",
|
|
39
|
-
description: "The path to use when writing the 3rd-party notice file",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "--ignore-scopes <string>",
|
|
43
|
-
description: "Comma-separated list of npm scopes to ignore when traversing the source map dependency graph",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: "--ignore-modules <string>",
|
|
47
|
-
description: "Comma-separated list of modules to ignore when traversing the source map dependency graph",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "--preamble-text <string>",
|
|
51
|
-
description: "A string to prepend to the start of the 3rd-party notice",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "--additional-text <string>",
|
|
55
|
-
description: "A string to append to the end of the 3rd-party notice",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=write-third-party-notices.js.map
|