@expo/eas-json 6.0.0 → 7.0.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/build/accessor.js +2 -3
- package/build/build/types.js +2 -2
- package/build/submit/resolver.d.ts +1 -1
- package/build/submit/resolver.js +1 -1
- package/build/submit/types.js +2 -2
- package/build/types.js +2 -2
- package/package.json +7 -7
package/build/accessor.js
CHANGED
|
@@ -14,7 +14,6 @@ const schema_1 = require("./schema");
|
|
|
14
14
|
const customErrorMessageHandlers = [
|
|
15
15
|
// Ask user to upgrade eas-cli version or check the docs when image is invalid.
|
|
16
16
|
(err) => {
|
|
17
|
-
var _a;
|
|
18
17
|
for (const detail of err.details) {
|
|
19
18
|
// image should be only placed under 'build.profilename.platform.image' key
|
|
20
19
|
// if it's not the case show standard Joi error
|
|
@@ -22,7 +21,7 @@ const customErrorMessageHandlers = [
|
|
|
22
21
|
detail.path[0] === 'build' &&
|
|
23
22
|
['ios', 'android'].includes(detail.path[2].toString()) &&
|
|
24
23
|
detail.path[3] === 'image') {
|
|
25
|
-
throw new errors_1.InvalidEasJsonError(chalk_1.default.red(`Specified build image '${
|
|
24
|
+
throw new errors_1.InvalidEasJsonError(chalk_1.default.red(`Specified build image '${detail === null || detail === void 0 ? void 0 : detail.context}' is not recognized. Please update your EAS CLI and see ${(0, log_1.link)('https://docs.expo.dev/build-reference/infrastructure/')} for supported build images.`));
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
},
|
|
@@ -68,7 +67,7 @@ class EasJsonAccessor {
|
|
|
68
67
|
if (!this.easJsonPath) {
|
|
69
68
|
throw new Error('Updates are not supported for EasJsonAccessor created from string.');
|
|
70
69
|
}
|
|
71
|
-
if (!this.easJsonPatched) {
|
|
70
|
+
if (!this.easJsonPatched || !this.easJsonRawContents) {
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
73
|
await fs_extra_1.default.writeFile(this.easJsonPath, this.easJsonRawContents);
|
package/build/build/types.js
CHANGED
|
@@ -6,7 +6,7 @@ var CredentialsSource;
|
|
|
6
6
|
(function (CredentialsSource) {
|
|
7
7
|
CredentialsSource["LOCAL"] = "local";
|
|
8
8
|
CredentialsSource["REMOTE"] = "remote";
|
|
9
|
-
})(CredentialsSource
|
|
9
|
+
})(CredentialsSource || (exports.CredentialsSource = CredentialsSource = {}));
|
|
10
10
|
var ResourceClass;
|
|
11
11
|
(function (ResourceClass) {
|
|
12
12
|
ResourceClass["DEFAULT"] = "default";
|
|
@@ -21,4 +21,4 @@ var ResourceClass;
|
|
|
21
21
|
* @deprecated use LARGE instead
|
|
22
22
|
*/
|
|
23
23
|
ResourceClass["M_LARGE"] = "m-large";
|
|
24
|
-
})(ResourceClass
|
|
24
|
+
})(ResourceClass || (exports.ResourceClass = ResourceClass = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
|
-
import { EasJson } from '../types';
|
|
3
2
|
import { SubmitProfile } from './types';
|
|
3
|
+
import { EasJson } from '../types';
|
|
4
4
|
export declare function resolveSubmitProfile<T extends Platform>({ easJson, platform, profileName, }: {
|
|
5
5
|
easJson: EasJson;
|
|
6
6
|
platform: T;
|
package/build/submit/resolver.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.getDefaultProfile = exports.resolveSubmitProfile = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const env_string_1 = tslib_1.__importDefault(require("env-string"));
|
|
7
|
-
const errors_1 = require("../errors");
|
|
8
7
|
const schema_1 = require("./schema");
|
|
9
8
|
const types_1 = require("./types");
|
|
9
|
+
const errors_1 = require("../errors");
|
|
10
10
|
function resolveSubmitProfile({ easJson, platform, profileName, }) {
|
|
11
11
|
try {
|
|
12
12
|
const submitProfile = resolveProfile({
|
package/build/submit/types.js
CHANGED
|
@@ -8,14 +8,14 @@ var AndroidReleaseStatus;
|
|
|
8
8
|
AndroidReleaseStatus["draft"] = "draft";
|
|
9
9
|
AndroidReleaseStatus["halted"] = "halted";
|
|
10
10
|
AndroidReleaseStatus["inProgress"] = "inProgress";
|
|
11
|
-
})(AndroidReleaseStatus
|
|
11
|
+
})(AndroidReleaseStatus || (exports.AndroidReleaseStatus = AndroidReleaseStatus = {}));
|
|
12
12
|
var AndroidReleaseTrack;
|
|
13
13
|
(function (AndroidReleaseTrack) {
|
|
14
14
|
AndroidReleaseTrack["production"] = "production";
|
|
15
15
|
AndroidReleaseTrack["beta"] = "beta";
|
|
16
16
|
AndroidReleaseTrack["alpha"] = "alpha";
|
|
17
17
|
AndroidReleaseTrack["internal"] = "internal";
|
|
18
|
-
})(AndroidReleaseTrack
|
|
18
|
+
})(AndroidReleaseTrack || (exports.AndroidReleaseTrack = AndroidReleaseTrack = {}));
|
|
19
19
|
exports.AndroidSubmitProfileFieldsToEvaluate = [
|
|
20
20
|
'serviceAccountKeyPath',
|
|
21
21
|
];
|
package/build/types.js
CHANGED
|
@@ -5,9 +5,9 @@ var CredentialsSource;
|
|
|
5
5
|
(function (CredentialsSource) {
|
|
6
6
|
CredentialsSource["LOCAL"] = "local";
|
|
7
7
|
CredentialsSource["REMOTE"] = "remote";
|
|
8
|
-
})(CredentialsSource
|
|
8
|
+
})(CredentialsSource || (exports.CredentialsSource = CredentialsSource = {}));
|
|
9
9
|
var AppVersionSource;
|
|
10
10
|
(function (AppVersionSource) {
|
|
11
11
|
AppVersionSource["LOCAL"] = "local";
|
|
12
12
|
AppVersionSource["REMOTE"] = "remote";
|
|
13
|
-
})(AppVersionSource
|
|
13
|
+
})(AppVersionSource || (exports.AppVersionSource = AppVersionSource = {}));
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-json",
|
|
3
3
|
"description": "A library for interacting with eas.json",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@babel/code-frame": "7.
|
|
8
|
+
"@babel/code-frame": "7.23.5",
|
|
9
9
|
"@expo/eas-build-job": "1.0.56",
|
|
10
10
|
"chalk": "4.1.2",
|
|
11
11
|
"env-string": "1.0.1",
|
|
12
|
-
"fs-extra": "
|
|
12
|
+
"fs-extra": "11.2.0",
|
|
13
13
|
"golden-fleece": "1.0.9",
|
|
14
|
-
"joi": "17.
|
|
14
|
+
"joi": "17.11.0",
|
|
15
15
|
"log-symbols": "4.1.0",
|
|
16
16
|
"semver": "7.5.2",
|
|
17
17
|
"terminal-link": "2.1.1",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/babel__code-frame": "7.0.3",
|
|
22
|
-
"@types/fs-extra": "
|
|
22
|
+
"@types/fs-extra": "11.0.4",
|
|
23
23
|
"memfs": "3.4.13",
|
|
24
24
|
"rimraf": "3.0.2",
|
|
25
|
-
"typescript": "
|
|
25
|
+
"typescript": "5.3.3"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=16.0.0"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"node": "20.11.0",
|
|
54
54
|
"yarn": "1.22.21"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "fe1a1f14d1d38c5e72aa60dd365d912a9ee67650"
|
|
57
57
|
}
|