@rnx-kit/cli 0.17.5 → 0.17.6
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/build/android.js +3 -1
- package/lib/build/ios.js +5 -2
- package/lib/build/macos.js +3 -1
- package/package.json +2 -2
package/lib/build/android.js
CHANGED
|
@@ -4,13 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.buildAndroid = buildAndroid;
|
|
7
|
+
const cache_1 = require("@rnx-kit/tools-react-native/cache");
|
|
7
8
|
const ora_1 = __importDefault(require("ora"));
|
|
8
9
|
const watcher_1 = require("./watcher");
|
|
9
10
|
function buildAndroid(config, buildParams, logger = (0, ora_1.default)()) {
|
|
10
11
|
const { sourceDir } = config.project.android ?? {};
|
|
11
12
|
if (!sourceDir) {
|
|
12
|
-
|
|
13
|
+
(0, cache_1.invalidateState)();
|
|
13
14
|
process.exitCode = 1;
|
|
15
|
+
logger.fail("No Android project was found");
|
|
14
16
|
return Promise.resolve(null);
|
|
15
17
|
}
|
|
16
18
|
return import("@rnx-kit/tools-android").then(({ assemble }) => {
|
package/lib/build/ios.js
CHANGED
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.buildIOS = buildIOS;
|
|
30
|
+
const cache_1 = require("@rnx-kit/tools-react-native/cache");
|
|
30
31
|
const path = __importStar(require("node:path"));
|
|
31
32
|
const ora_1 = __importDefault(require("ora"));
|
|
32
33
|
const apple_1 = require("./apple");
|
|
@@ -34,15 +35,17 @@ function buildIOS(config, buildParams, logger = (0, ora_1.default)()) {
|
|
|
34
35
|
const { platform } = buildParams;
|
|
35
36
|
const { sourceDir, xcodeProject } = config.project[platform] ?? {};
|
|
36
37
|
if (!sourceDir || !xcodeProject) {
|
|
38
|
+
(0, cache_1.invalidateState)();
|
|
39
|
+
process.exitCode = 1;
|
|
37
40
|
const root = platform.substring(0, platform.length - 2);
|
|
38
41
|
logger.fail(`No ${root}OS project was found; did you forget to run 'pod install'?`);
|
|
39
|
-
process.exitCode = 1;
|
|
40
42
|
return Promise.resolve(1);
|
|
41
43
|
}
|
|
42
44
|
const { name, path: projectDir } = xcodeProject;
|
|
43
45
|
if (!name?.endsWith(".xcworkspace")) {
|
|
44
|
-
|
|
46
|
+
(0, cache_1.invalidateState)();
|
|
45
47
|
process.exitCode = 1;
|
|
48
|
+
logger.fail("No Xcode workspaces were found; did you forget to run `pod install`?");
|
|
46
49
|
return Promise.resolve(1);
|
|
47
50
|
}
|
|
48
51
|
const xcworkspace = projectDir
|
package/lib/build/macos.js
CHANGED
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.buildMacOS = buildMacOS;
|
|
30
|
+
const cache_1 = require("@rnx-kit/tools-react-native/cache");
|
|
30
31
|
const fs = __importStar(require("node:fs"));
|
|
31
32
|
const path = __importStar(require("node:path"));
|
|
32
33
|
const ora_1 = __importDefault(require("ora"));
|
|
@@ -43,8 +44,9 @@ function buildMacOS(_config, { workspace, ...buildParams }, logger = (0, ora_1.d
|
|
|
43
44
|
const sourceDir = "macos";
|
|
44
45
|
const workspaces = findXcodeWorkspaces(sourceDir);
|
|
45
46
|
if (workspaces.length === 0) {
|
|
46
|
-
|
|
47
|
+
(0, cache_1.invalidateState)();
|
|
47
48
|
process.exitCode = 1;
|
|
49
|
+
logger.fail("No Xcode workspaces were found; specify an Xcode workspace with `--workspace`");
|
|
48
50
|
return Promise.resolve(1);
|
|
49
51
|
}
|
|
50
52
|
if (workspaces.length > 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@rnx-kit/tools-apple": "^0.1.2",
|
|
55
55
|
"@rnx-kit/tools-language": "^2.0.0",
|
|
56
56
|
"@rnx-kit/tools-node": "^2.1.1",
|
|
57
|
-
"@rnx-kit/tools-react-native": "^1.4.
|
|
57
|
+
"@rnx-kit/tools-react-native": "^1.4.2",
|
|
58
58
|
"commander": "^11.1.0",
|
|
59
59
|
"ora": "^5.4.1",
|
|
60
60
|
"qrcode": "^1.5.0"
|