@rnx-kit/cli 0.18.0 → 0.18.2

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/README.md CHANGED
@@ -116,51 +116,6 @@ dependencies.
116
116
 
117
117
  <!-- @rnx-kit/cli/bundle end -->
118
118
 
119
- ## `rnx-cli config`
120
-
121
- Routes to
122
- [`react-native config`](https://github.com/react-native-community/cli/blob/main/packages/cli-config#readme).
123
-
124
- ## `rnx-cli doctor`
125
-
126
- Routes to
127
- [`react-native doctor`](https://github.com/react-native-community/cli/blob/main/packages/cli-doctor#readme).
128
-
129
- ## `rnx-cli info`
130
-
131
- Routes to
132
- [`react-native info`](https://github.com/react-native-community/cli/blob/main/packages/cli-doctor#info).
133
-
134
- ## `rnx-cli build-android`
135
-
136
- Routes to
137
- [`react-native build-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#build-android).
138
-
139
- ## `rnx-cli build-ios`
140
-
141
- Routes to
142
- [`react-native build-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#build-ios).
143
-
144
- ## `rnx-cli log-android`
145
-
146
- Routes to
147
- [`react-native log-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#log-android).
148
-
149
- ## `rnx-cli log-ios`
150
-
151
- Routes to
152
- [`react-native log-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#log-ios).
153
-
154
- ## `rnx-cli run-android`
155
-
156
- Routes to
157
- [`react-native run-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#run-android).
158
-
159
- ## `rnx-cli run-ios`
160
-
161
- Routes to
162
- [`react-native run-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#run-ios).
163
-
164
119
  ## `rnx-cli start`
165
120
 
166
121
  Start a bundle server for a package using [Metro][]. The bundle server uses
@@ -235,6 +190,59 @@ from the bundle configuration (or its [defaults](#bundle-defaults)).
235
190
 
236
191
  <!-- @rnx-kit/cli/start end -->
237
192
 
193
+ ## `rnx-cli build`
194
+
195
+ Builds the native bits in your project.
196
+
197
+ ```sh
198
+ yarn rnx-cli build [options]
199
+ ```
200
+
201
+ <!-- @rnx-kit/cli/build start -->
202
+
203
+ | Option | Description |
204
+ | ------------------------------ | ---------------------------------------------------------------------------- |
205
+ | -p, --platform &lt;string&gt; | Target platform |
206
+ | --workspace &lt;string&gt; | Path, relative to project root, of the Xcode workspace to build (macOS only) |
207
+ | --scheme &lt;string&gt; | Name of scheme to build (Apple platforms only) |
208
+ | --configuration &lt;string&gt; | Build configuration for building the app; 'Debug' or 'Release' |
209
+ | --destination &lt;string&gt; | Destination of the built app; 'device', 'emulator', or 'simulator' |
210
+
211
+ <!-- @rnx-kit/cli/build end -->
212
+
213
+ ### Example Commands
214
+
215
+ ```sh
216
+ yarn rnx-cli build -p ios
217
+ ```
218
+
219
+ ## `rnx-cli run`
220
+
221
+ Launches the native app (building it first if necessary).
222
+
223
+ ```sh
224
+ yarn rnx-cli run [options]
225
+ ```
226
+
227
+ <!-- @rnx-kit/cli/run start -->
228
+
229
+ | Option | Description |
230
+ | ------------------------------ | ---------------------------------------------------------------------------- |
231
+ | -p, --platform &lt;string&gt; | Target platform |
232
+ | --workspace &lt;string&gt; | Path, relative to project root, of the Xcode workspace to build (macOS only) |
233
+ | --scheme &lt;string&gt; | Name of scheme to build (Apple platforms only) |
234
+ | --configuration &lt;string&gt; | Build configuration for building the app; 'Debug' or 'Release' |
235
+ | --destination &lt;string&gt; | Destination of the built app; 'device', 'emulator', or 'simulator' |
236
+ | -d, --device &lt;string&gt; | The name of the device to launch the app in |
237
+
238
+ <!-- @rnx-kit/cli/run end -->
239
+
240
+ ### Example Commands
241
+
242
+ ```sh
243
+ yarn rnx-cli run -p ios
244
+ ```
245
+
238
246
  ## `rnx-cli align-deps`
239
247
 
240
248
  Manage dependencies within a repository and across many repositories.
@@ -281,19 +289,43 @@ yarn rnx-cli write-third-party-notices [options]
281
289
 
282
290
  <!-- @rnx-kit/cli/write-third-party-notices start -->
283
291
 
284
- | Option | Description |
285
- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
286
- | --root-path &lt;path&gt; | The root of the repo the starting point for finding each module in the source map dependency graph |
287
- | --source-map-file &lt;file&gt; | The source map file associated with the package's entry file — this source map eventually leads to all package dependencies and their licenses |
288
- | --json | Format the 3rd-party notice file as JSON instead of text |
289
- | --output-file &lt;file&gt; | The path to use when writing the 3rd-party notice file |
290
- | --ignore-scopes &lt;string&gt; | Comma-separated list of npm scopes to ignore when traversing the source map dependency graph |
291
- | --ignore-modules &lt;string&gt; | Comma-separated list of modules to ignore when traversing the source map dependency graph |
292
- | --preamble-text &lt;string&gt; | A string to prepend to the start of the 3rd-party notice |
293
- | --additional-text &lt;string&gt; | A string to append to the end of the 3rd-party notice |
292
+ | Option | Description |
293
+ | -------------------------------- | --------------------------------------------------------------------- |
294
+ | --root-path &lt;path&gt; | The root of the repo to start resolving modules from |
295
+ | --source-map-file &lt;path&gt; | The source map file to generate license contents for |
296
+ | --json | Output license information as a JSON |
297
+ | --output-file &lt;path&gt; | The output file to write the license file to |
298
+ | --ignore-scopes &lt;string&gt; | npm scopes to ignore and not emit license information for |
299
+ | --ignore-modules &lt;string&gt; | Modules (JS packages) to not emit license information for |
300
+ | --preamble-text &lt;string&gt; | A list of lines to prepend at the start of the generated license file |
301
+ | --additional-text &lt;string&gt; | A list of lines to append at the end of the generated license file |
302
+ | --full-license-text | Include full license text in the JSON output |
294
303
 
295
304
  <!-- @rnx-kit/cli/write-third-party-notices end -->
296
305
 
306
+ ## Other Commands
307
+
308
+ The following commands route to `@react-native-community/cli`:
309
+
310
+ - `rnx-cli build-android` →
311
+ [`react-native build-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#build-android)
312
+ - `rnx-cli build-ios` →
313
+ [`react-native build-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#build-ios)
314
+ - `rnx-cli config` →
315
+ [`react-native config`](https://github.com/react-native-community/cli/blob/main/packages/cli-config#readme)
316
+ - `rnx-cli doctor` →
317
+ [`react-native doctor`](https://github.com/react-native-community/cli/blob/main/packages/cli-doctor#readme)
318
+ - `rnx-cli info` →
319
+ [`react-native info`](https://github.com/react-native-community/cli/blob/main/packages/cli-doctor#info)
320
+ - `rnx-cli log-android` →
321
+ [`react-native log-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#log-android)
322
+ - `rnx-cli log-ios` →
323
+ [`react-native log-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#log-ios)
324
+ - `rnx-cli run-android` →
325
+ [`react-native run-android`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android#run-android)
326
+ - `rnx-cli run-ios` →
327
+ [`react-native run-ios`](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios#run-ios)
328
+
297
329
  <!-- References -->
298
330
 
299
331
  [@rnx-kit/align-deps]:
@@ -16,10 +16,8 @@ function buildAndroid(config, buildParams, logger = (0, ora_1.default)()) {
16
16
  return Promise.resolve(null);
17
17
  }
18
18
  return import("@rnx-kit/tools-android").then(({ assemble }) => {
19
- return new Promise((resolve) => {
20
- const gradle = assemble(sourceDir, buildParams);
21
- (0, watcher_1.watch)(gradle, logger, () => resolve(sourceDir), resolve);
22
- });
19
+ const gradle = assemble(sourceDir, buildParams);
20
+ return (0, watcher_1.watch)(gradle, logger, () => sourceDir);
23
21
  });
24
22
  }
25
23
  //# sourceMappingURL=android.js.map
@@ -3,14 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runBuild = runBuild;
4
4
  const watcher_1 = require("./watcher");
5
5
  function runBuild(xcworkspace, buildParams, logger) {
6
- return import("@rnx-kit/tools-apple").then(({ xcodebuild }) => {
7
- return new Promise((resolve) => {
8
- const onSuccess = () => resolve({ xcworkspace, args: build.spawnargs });
9
- const build = xcodebuild(xcworkspace, buildParams, (text) => {
10
- logger.info(text);
11
- });
12
- (0, watcher_1.watch)(build, logger, onSuccess, resolve);
13
- });
6
+ return import("@rnx-kit/tools-apple").then(({ checkPodsManifestLock, xcodebuild }) => {
7
+ if (!checkPodsManifestLock(xcworkspace)) {
8
+ logger.fail("CocoaPods sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.");
9
+ return Promise.resolve(1);
10
+ }
11
+ const log = (message) => logger.info(message);
12
+ const build = xcodebuild(xcworkspace, buildParams, log);
13
+ return (0, watcher_1.watch)(build, logger, () => ({
14
+ xcworkspace,
15
+ args: build.spawnargs,
16
+ }));
14
17
  });
15
18
  }
16
19
  //# sourceMappingURL=apple.js.map
@@ -0,0 +1,3 @@
1
+ export declare function setCcacheDir(dir: string): string | undefined;
2
+ export declare function setCcacheHome(dir: string): string | undefined;
3
+ //# sourceMappingURL=ccache.d.ts.map
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.setCcacheDir = setCcacheDir;
27
+ exports.setCcacheHome = setCcacheHome;
28
+ const fs = __importStar(require("node:fs"));
29
+ const path = __importStar(require("node:path"));
30
+ function setCcacheDir(dir) {
31
+ if (!fs.existsSync(dir)) {
32
+ return undefined;
33
+ }
34
+ process.env["CCACHE_DIR"] = dir;
35
+ return dir;
36
+ }
37
+ function setCcacheHome(dir) {
38
+ if (!fs.existsSync(dir)) {
39
+ return undefined;
40
+ }
41
+ process.env["CC"] = path.join(dir, "libexec", "clang");
42
+ process.env["CXX"] = path.join(dir, "libexec", "clang++");
43
+ process.env["CMAKE_C_COMPILER_LAUNCHER"] = path.join(dir, "bin", "ccache");
44
+ process.env["CMAKE_CXX_COMPILER_LAUNCHER"] = path.join(dir, "bin", "ccache");
45
+ return dir;
46
+ }
47
+ //# sourceMappingURL=ccache.js.map
@@ -1,4 +1,5 @@
1
1
  import type { ChildProcessWithoutNullStreams } from "node:child_process";
2
2
  import type { Ora } from "ora";
3
- export declare function watch(subproc: ChildProcessWithoutNullStreams, logger: Ora, onSuccess: () => void, onFail: (exitCode: number | null) => void): void;
3
+ export type ExitCode = number | null;
4
+ export declare function watch<T>(subproc: ChildProcessWithoutNullStreams, logger: Ora, onSuccess: () => T): Promise<ExitCode | T>;
4
5
  //# sourceMappingURL=watcher.d.ts.map
@@ -1,22 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.watch = watch;
4
- function watch(subproc, logger, onSuccess, onFail) {
5
- subproc.stdout.on("data", () => (logger.text += "."));
6
- const errors = [];
7
- subproc.stderr.on("data", (data) => errors.push(data));
8
- subproc.on("close", (code) => {
9
- if (code === 0) {
10
- logger.succeed("Build succeeded");
11
- onSuccess();
4
+ function watch(subproc, logger, onSuccess) {
5
+ return new Promise((resolve) => {
6
+ const errors = [];
7
+ const isCI = Boolean(process.env.CI);
8
+ if (isCI) {
9
+ subproc.stdout.on("data", (chunk) => process.stdout.write(chunk));
10
+ subproc.stderr.on("data", (chunk) => process.stderr.write(chunk));
12
11
  }
13
12
  else {
14
- logger.fail(Buffer.concat(errors).toString());
15
- process.exitCode = code ?? 1;
16
- onFail(code);
13
+ subproc.stdout.on("data", () => (logger.text += "."));
14
+ subproc.stderr.on("data", (data) => errors.push(data));
17
15
  }
16
+ subproc.on("close", (code) => {
17
+ if (code === 0) {
18
+ logger.succeed("Build succeeded");
19
+ resolve(onSuccess());
20
+ }
21
+ else {
22
+ logger.fail(Buffer.concat(errors).toString().trim());
23
+ process.exitCode = code ?? 1;
24
+ resolve(code);
25
+ }
26
+ });
27
+ logger.info(`Command: ${subproc.spawnargs.join(" ")}`);
28
+ logger.start("Building");
18
29
  });
19
- logger.info(`Command: ${subproc.spawnargs.join(" ")}`);
20
- logger.start("Building");
21
30
  }
22
31
  //# sourceMappingURL=watcher.js.map
package/lib/build.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { Config } from "@react-native-community/cli-types";
2
+ import { setCcacheDir } from "./build/ccache";
2
3
  import type { BuildConfiguration, DeviceType, InputParams } from "./build/types";
3
4
  declare function asConfiguration(configuration: string): BuildConfiguration;
4
5
  declare function asDestination(destination: string): DeviceType;
5
- declare function asSupportedPlatform(platform: string): InputParams["platform"];
6
6
  export declare function rnxBuild(_argv: string[], config: Config, buildParams: InputParams): Promise<import("./build/android").BuildResult> | Promise<import("./build/apple").BuildResult>;
7
7
  export declare const rnxBuildCommand: {
8
8
  name: string;
@@ -11,13 +11,8 @@ export declare const rnxBuildCommand: {
11
11
  options: ({
12
12
  name: string;
13
13
  description: string;
14
- parse: typeof asSupportedPlatform;
15
14
  default?: undefined;
16
- } | {
17
- name: string;
18
- description: string;
19
15
  parse?: undefined;
20
- default?: undefined;
21
16
  } | {
22
17
  name: string;
23
18
  description: string;
@@ -28,6 +23,11 @@ export declare const rnxBuildCommand: {
28
23
  description: string;
29
24
  default: string;
30
25
  parse: typeof asDestination;
26
+ } | {
27
+ name: string;
28
+ description: string;
29
+ parse: typeof setCcacheDir;
30
+ default?: undefined;
31
31
  })[];
32
32
  };
33
33
  export {};
package/lib/build.js CHANGED
@@ -4,6 +4,7 @@ exports.rnxBuildCommand = void 0;
4
4
  exports.rnxBuild = rnxBuild;
5
5
  const commander_1 = require("commander");
6
6
  const android_1 = require("./build/android");
7
+ const ccache_1 = require("./build/ccache");
7
8
  const ios_1 = require("./build/ios");
8
9
  const macos_1 = require("./build/macos");
9
10
  function asConfiguration(configuration) {
@@ -77,6 +78,16 @@ exports.rnxBuildCommand = {
77
78
  default: "simulator",
78
79
  parse: asDestination,
79
80
  },
81
+ {
82
+ name: "--ccache-dir <string>",
83
+ description: "Path to Ccache config",
84
+ parse: ccache_1.setCcacheDir,
85
+ },
86
+ {
87
+ name: "--ccache-home <string>",
88
+ description: "Path to Ccache installation",
89
+ parse: ccache_1.setCcacheHome,
90
+ },
80
91
  ],
81
92
  };
82
93
  //# sourceMappingURL=build.js.map
package/lib/index.d.ts CHANGED
@@ -1,4 +1,13 @@
1
1
  import type { Command } from "@react-native-community/cli-types";
2
+ import { rnxBuild, rnxBuildCommand } from "./build";
3
+ import { rnxBundle, rnxBundleCommand } from "./bundle";
4
+ import { rnxClean, rnxCleanCommand } from "./clean";
5
+ import { copyProjectAssets, rnxCopyAssetsCommand } from "./copy-assets";
6
+ import { rnxRamBundle, rnxRamBundleCommand } from "./ram-bundle";
7
+ import { rnxRun, rnxRunCommand } from "./run";
8
+ import { rnxStart, rnxStartCommand } from "./start";
9
+ import { rnxTest, rnxTestCommand } from "./test";
10
+ export { copyProjectAssets, rnxBuild, rnxBuildCommand, rnxBundle, rnxBundleCommand, rnxClean, rnxCleanCommand, rnxCopyAssetsCommand, rnxRamBundle, rnxRamBundleCommand, rnxRun, rnxRunCommand, rnxStart, rnxStartCommand, rnxTest, rnxTestCommand, };
2
11
  export declare const reactNativeConfig: {
3
12
  commands: Command<false>[];
4
13
  };
@@ -37,12 +46,4 @@ export declare const rnxWriteThirdPartyNoticesCommand: {
37
46
  default: string | false | undefined;
38
47
  }[];
39
48
  };
40
- export { rnxBuild, rnxBuildCommand } from "./build";
41
- export { rnxBundle, rnxBundleCommand } from "./bundle";
42
- export { rnxClean, rnxCleanCommand } from "./clean";
43
- export { copyProjectAssets, rnxCopyAssetsCommand } from "./copy-assets";
44
- export { rnxRamBundle, rnxRamBundleCommand } from "./ram-bundle";
45
- export { rnxRun, rnxRunCommand } from "./run";
46
- export { rnxStart, rnxStartCommand } from "./start";
47
- export { rnxTest, rnxTestCommand } from "./test";
48
49
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,16 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.rnxWriteThirdPartyNoticesCommand = exports.rnxWriteThirdPartyNotices = exports.rnxAlignDepsCommand = exports.rnxAlignDeps = exports.reactNativeConfig = exports.rnxTestCommand = exports.rnxTest = exports.rnxStartCommand = exports.rnxStart = exports.rnxRunCommand = exports.rnxRun = exports.rnxRamBundleCommand = exports.rnxRamBundle = exports.rnxCopyAssetsCommand = exports.rnxCleanCommand = exports.rnxClean = exports.rnxBundleCommand = exports.rnxBundle = exports.rnxBuildCommand = exports.rnxBuild = exports.copyProjectAssets = void 0;
4
4
  const align_deps_1 = require("@rnx-kit/align-deps");
5
5
  const third_party_notices_1 = require("@rnx-kit/third-party-notices");
6
6
  const build_1 = require("./build");
7
+ Object.defineProperty(exports, "rnxBuild", { enumerable: true, get: function () { return build_1.rnxBuild; } });
8
+ Object.defineProperty(exports, "rnxBuildCommand", { enumerable: true, get: function () { return build_1.rnxBuildCommand; } });
7
9
  const bundle_1 = require("./bundle");
10
+ Object.defineProperty(exports, "rnxBundle", { enumerable: true, get: function () { return bundle_1.rnxBundle; } });
11
+ Object.defineProperty(exports, "rnxBundleCommand", { enumerable: true, get: function () { return bundle_1.rnxBundleCommand; } });
8
12
  const clean_1 = require("./clean");
13
+ Object.defineProperty(exports, "rnxClean", { enumerable: true, get: function () { return clean_1.rnxClean; } });
14
+ Object.defineProperty(exports, "rnxCleanCommand", { enumerable: true, get: function () { return clean_1.rnxCleanCommand; } });
9
15
  const copy_assets_1 = require("./copy-assets");
16
+ Object.defineProperty(exports, "copyProjectAssets", { enumerable: true, get: function () { return copy_assets_1.copyProjectAssets; } });
17
+ Object.defineProperty(exports, "rnxCopyAssetsCommand", { enumerable: true, get: function () { return copy_assets_1.rnxCopyAssetsCommand; } });
10
18
  const ram_bundle_1 = require("./ram-bundle");
19
+ Object.defineProperty(exports, "rnxRamBundle", { enumerable: true, get: function () { return ram_bundle_1.rnxRamBundle; } });
20
+ Object.defineProperty(exports, "rnxRamBundleCommand", { enumerable: true, get: function () { return ram_bundle_1.rnxRamBundleCommand; } });
11
21
  const run_1 = require("./run");
22
+ Object.defineProperty(exports, "rnxRun", { enumerable: true, get: function () { return run_1.rnxRun; } });
23
+ Object.defineProperty(exports, "rnxRunCommand", { enumerable: true, get: function () { return run_1.rnxRunCommand; } });
12
24
  const start_1 = require("./start");
25
+ Object.defineProperty(exports, "rnxStart", { enumerable: true, get: function () { return start_1.rnxStart; } });
26
+ Object.defineProperty(exports, "rnxStartCommand", { enumerable: true, get: function () { return start_1.rnxStartCommand; } });
13
27
  const test_1 = require("./test");
28
+ Object.defineProperty(exports, "rnxTest", { enumerable: true, get: function () { return test_1.rnxTest; } });
29
+ Object.defineProperty(exports, "rnxTestCommand", { enumerable: true, get: function () { return test_1.rnxTestCommand; } });
14
30
  exports.reactNativeConfig = {
15
31
  commands: [
16
32
  bundle_1.rnxBundleCommand,
@@ -31,28 +47,4 @@ exports.rnxAlignDepsCommand = align_deps_1.alignDepsCommand;
31
47
  // @rnx-kit/third-party-notices
32
48
  exports.rnxWriteThirdPartyNotices = third_party_notices_1.writeThirdPartyNoticesCommand.func;
33
49
  exports.rnxWriteThirdPartyNoticesCommand = third_party_notices_1.writeThirdPartyNoticesCommand;
34
- var build_2 = require("./build");
35
- Object.defineProperty(exports, "rnxBuild", { enumerable: true, get: function () { return build_2.rnxBuild; } });
36
- Object.defineProperty(exports, "rnxBuildCommand", { enumerable: true, get: function () { return build_2.rnxBuildCommand; } });
37
- var bundle_2 = require("./bundle");
38
- Object.defineProperty(exports, "rnxBundle", { enumerable: true, get: function () { return bundle_2.rnxBundle; } });
39
- Object.defineProperty(exports, "rnxBundleCommand", { enumerable: true, get: function () { return bundle_2.rnxBundleCommand; } });
40
- var clean_2 = require("./clean");
41
- Object.defineProperty(exports, "rnxClean", { enumerable: true, get: function () { return clean_2.rnxClean; } });
42
- Object.defineProperty(exports, "rnxCleanCommand", { enumerable: true, get: function () { return clean_2.rnxCleanCommand; } });
43
- var copy_assets_2 = require("./copy-assets");
44
- Object.defineProperty(exports, "copyProjectAssets", { enumerable: true, get: function () { return copy_assets_2.copyProjectAssets; } });
45
- Object.defineProperty(exports, "rnxCopyAssetsCommand", { enumerable: true, get: function () { return copy_assets_2.rnxCopyAssetsCommand; } });
46
- var ram_bundle_2 = require("./ram-bundle");
47
- Object.defineProperty(exports, "rnxRamBundle", { enumerable: true, get: function () { return ram_bundle_2.rnxRamBundle; } });
48
- Object.defineProperty(exports, "rnxRamBundleCommand", { enumerable: true, get: function () { return ram_bundle_2.rnxRamBundleCommand; } });
49
- var run_2 = require("./run");
50
- Object.defineProperty(exports, "rnxRun", { enumerable: true, get: function () { return run_2.rnxRun; } });
51
- Object.defineProperty(exports, "rnxRunCommand", { enumerable: true, get: function () { return run_2.rnxRunCommand; } });
52
- var start_2 = require("./start");
53
- Object.defineProperty(exports, "rnxStart", { enumerable: true, get: function () { return start_2.rnxStart; } });
54
- Object.defineProperty(exports, "rnxStartCommand", { enumerable: true, get: function () { return start_2.rnxStartCommand; } });
55
- var test_2 = require("./test");
56
- Object.defineProperty(exports, "rnxTest", { enumerable: true, get: function () { return test_2.rnxTest; } });
57
- Object.defineProperty(exports, "rnxTestCommand", { enumerable: true, get: function () { return test_2.rnxTestCommand; } });
58
50
  //# sourceMappingURL=index.js.map
package/lib/run.d.ts CHANGED
@@ -8,13 +8,8 @@ export declare const rnxRunCommand: {
8
8
  options: ({
9
9
  name: string;
10
10
  description: string;
11
- parse: (platform: string) => InputParams["platform"];
12
11
  default?: undefined;
13
- } | {
14
- name: string;
15
- description: string;
16
12
  parse?: undefined;
17
- default?: undefined;
18
13
  } | {
19
14
  name: string;
20
15
  description: string;
@@ -25,6 +20,11 @@ export declare const rnxRunCommand: {
25
20
  description: string;
26
21
  default: string;
27
22
  parse: (destination: string) => import("./build/types").DeviceType;
23
+ } | {
24
+ name: string;
25
+ description: string;
26
+ parse: typeof import("./build/ccache").setCcacheDir;
27
+ default?: undefined;
28
28
  })[];
29
29
  };
30
30
  //# sourceMappingURL=run.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
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",
@@ -34,24 +34,23 @@
34
34
  },
35
35
  "scripts": {
36
36
  "build": "rnx-kit-scripts build",
37
- "depcheck": "rnx-kit-scripts depcheck",
38
37
  "format": "rnx-kit-scripts format",
39
38
  "lint": "rnx-kit-scripts lint",
40
39
  "test": "rnx-kit-scripts test"
41
40
  },
42
41
  "dependencies": {
43
- "@rnx-kit/align-deps": "^3.0.0",
42
+ "@rnx-kit/align-deps": "^3.0.1",
44
43
  "@rnx-kit/config": "^0.7.0",
45
44
  "@rnx-kit/console": "^2.0.0",
46
45
  "@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^2.0.0",
47
46
  "@rnx-kit/metro-plugin-duplicates-checker": "^3.0.0",
48
47
  "@rnx-kit/metro-plugin-typescript": "^0.5.0",
49
48
  "@rnx-kit/metro-serializer": "^2.0.0",
50
- "@rnx-kit/metro-serializer-esbuild": "^0.2.0",
51
- "@rnx-kit/metro-service": "^4.0.0",
49
+ "@rnx-kit/metro-serializer-esbuild": "^0.2.1",
50
+ "@rnx-kit/metro-service": "^4.0.1",
52
51
  "@rnx-kit/third-party-notices": "^2.0.0",
53
52
  "@rnx-kit/tools-android": "^0.2.0",
54
- "@rnx-kit/tools-apple": "^0.2.0",
53
+ "@rnx-kit/tools-apple": "^0.2.1",
55
54
  "@rnx-kit/tools-language": "^3.0.0",
56
55
  "@rnx-kit/tools-node": "^3.0.0",
57
56
  "@rnx-kit/tools-react-native": "^2.0.0",
@@ -100,11 +99,6 @@
100
99
  "engines": {
101
100
  "node": ">=16.17"
102
101
  },
103
- "depcheck": {
104
- "ignoreMatches": [
105
- "connect"
106
- ]
107
- },
108
102
  "jest": {
109
103
  "preset": "@rnx-kit/jest-preset/private"
110
104
  }