@expo/eas-json 0.53.0 → 0.55.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/build/resolver.d.ts +1 -1
- package/build/build/resolver.js +1 -1
- package/build/reader.d.ts +2 -2
- package/build/submit/resolver.d.ts +1 -1
- package/build/submit/resolver.js +17 -7
- package/build/submit/schema.js +1 -0
- package/build/submit/types.d.ts +1 -0
- package/package.json +4 -4
- package/src/build/resolver.ts +2 -2
- package/src/reader.ts +2 -2
- package/src/submit/resolver.ts +16 -8
- package/src/submit/schema.ts +1 -0
- package/src/submit/types.ts +1 -0
package/build/build/resolver.js
CHANGED
|
@@ -7,7 +7,7 @@ function resolveBuildProfile({ easJson, platform, profileName, }) {
|
|
|
7
7
|
var _a;
|
|
8
8
|
const easJsonProfile = resolveProfile({
|
|
9
9
|
easJson,
|
|
10
|
-
profileName,
|
|
10
|
+
profileName: profileName !== null && profileName !== void 0 ? profileName : 'production',
|
|
11
11
|
});
|
|
12
12
|
const { android, ios, ...base } = easJsonProfile;
|
|
13
13
|
const withoutDefaults = mergeProfiles(base, (_a = easJsonProfile[platform]) !== null && _a !== void 0 ? _a : {});
|
package/build/reader.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export declare class EasJsonReader {
|
|
|
9
9
|
static formatEasJsonPath(projectDir: string): string;
|
|
10
10
|
readAsync(): Promise<EasJson>;
|
|
11
11
|
getBuildProfileNamesAsync(): Promise<string[]>;
|
|
12
|
-
getBuildProfileAsync<T extends Platform>(platform: T, profileName
|
|
12
|
+
getBuildProfileAsync<T extends Platform>(platform: T, profileName?: string): Promise<BuildProfile<T>>;
|
|
13
13
|
getCliConfigAsync(): Promise<EasJson['cli'] | null>;
|
|
14
14
|
getSubmitProfileNamesAsync(): Promise<string[]>;
|
|
15
|
-
getSubmitProfileAsync<T extends Platform>(platform: T, profileName
|
|
15
|
+
getSubmitProfileAsync<T extends Platform>(platform: T, profileName?: string): Promise<SubmitProfile<T>>;
|
|
16
16
|
}
|
|
@@ -4,6 +4,6 @@ import { SubmitProfile } from './types';
|
|
|
4
4
|
export declare function resolveSubmitProfile<T extends Platform>({ easJson, platform, profileName, }: {
|
|
5
5
|
easJson: EasJson;
|
|
6
6
|
platform: T;
|
|
7
|
-
profileName
|
|
7
|
+
profileName?: string;
|
|
8
8
|
}): SubmitProfile<T>;
|
|
9
9
|
export declare function getDefaultProfile<T extends Platform>(platform: T): SubmitProfile<T>;
|
package/build/submit/resolver.js
CHANGED
|
@@ -8,13 +8,23 @@ const errors_1 = require("../errors");
|
|
|
8
8
|
const schema_1 = require("./schema");
|
|
9
9
|
const types_1 = require("./types");
|
|
10
10
|
function resolveSubmitProfile({ easJson, platform, profileName, }) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
try {
|
|
12
|
+
const submitProfile = resolveProfile({
|
|
13
|
+
easJson,
|
|
14
|
+
platform,
|
|
15
|
+
profileName: profileName !== null && profileName !== void 0 ? profileName : 'production',
|
|
16
|
+
});
|
|
17
|
+
const unevaluatedProfile = mergeProfiles(getDefaultProfile(platform), submitProfile);
|
|
18
|
+
return evaluateFields(platform, unevaluatedProfile);
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
if (err instanceof errors_1.MissingProfileError && !profileName) {
|
|
22
|
+
return getDefaultProfile(platform);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
throw err;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
}
|
|
19
29
|
exports.resolveSubmitProfile = resolveSubmitProfile;
|
|
20
30
|
function resolveProfile({ easJson, profileName, depth = 0, platform, }) {
|
package/build/submit/schema.js
CHANGED
|
@@ -27,6 +27,7 @@ exports.IosSubmitProfileSchema = joi_1.default.object({
|
|
|
27
27
|
companyName: joi_1.default.string(),
|
|
28
28
|
appName: joi_1.default.string(),
|
|
29
29
|
bundleIdentifier: joi_1.default.string(),
|
|
30
|
+
metadataPath: joi_1.default.string(),
|
|
30
31
|
});
|
|
31
32
|
exports.SubmitProfileSchema = joi_1.default.object({
|
|
32
33
|
extends: joi_1.default.string(),
|
package/build/submit/types.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export interface IosSubmitProfile {
|
|
|
31
31
|
companyName?: string;
|
|
32
32
|
appName?: string;
|
|
33
33
|
bundleIdentifier?: string;
|
|
34
|
+
metadataPath?: string;
|
|
34
35
|
}
|
|
35
36
|
export declare const IosSubmitProfileFieldsToEvaluate: (keyof IosSubmitProfile)[];
|
|
36
37
|
export declare type SubmitProfile<TPlatform extends Platform = Platform> = TPlatform extends Platform.ANDROID ? AndroidSubmitProfile : IosSubmitProfile;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-json",
|
|
3
3
|
"description": "A library for interacting with eas.json",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.55.0",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@expo/eas-build-job": "0.2.
|
|
8
|
+
"@expo/eas-build-job": "0.2.77",
|
|
9
9
|
"@expo/json-file": "8.2.36",
|
|
10
10
|
"chalk": "4.1.2",
|
|
11
11
|
"env-string": "1.0.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/fs-extra": "9.0.13",
|
|
20
20
|
"memfs": "3.4.3",
|
|
21
|
-
"typescript": "4.
|
|
21
|
+
"typescript": "4.7.4"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=14.0.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "be38117012a25011044440d48b6125cfed8aac2a"
|
|
43
43
|
}
|
package/src/build/resolver.ts
CHANGED
|
@@ -14,11 +14,11 @@ export function resolveBuildProfile<T extends Platform>({
|
|
|
14
14
|
}: {
|
|
15
15
|
easJson: EasJson;
|
|
16
16
|
platform: T;
|
|
17
|
-
profileName
|
|
17
|
+
profileName?: string;
|
|
18
18
|
}): BuildProfile<T> {
|
|
19
19
|
const easJsonProfile = resolveProfile({
|
|
20
20
|
easJson,
|
|
21
|
-
profileName,
|
|
21
|
+
profileName: profileName ?? 'production',
|
|
22
22
|
});
|
|
23
23
|
const { android, ios, ...base } = easJsonProfile;
|
|
24
24
|
const withoutDefaults = mergeProfiles(base, easJsonProfile[platform] ?? {});
|
package/src/reader.ts
CHANGED
|
@@ -59,7 +59,7 @@ export class EasJsonReader {
|
|
|
59
59
|
|
|
60
60
|
public async getBuildProfileAsync<T extends Platform>(
|
|
61
61
|
platform: T,
|
|
62
|
-
profileName
|
|
62
|
+
profileName?: string
|
|
63
63
|
): Promise<BuildProfile<T>> {
|
|
64
64
|
const easJson = await this.readAsync();
|
|
65
65
|
return resolveBuildProfile({ easJson, platform, profileName });
|
|
@@ -84,7 +84,7 @@ export class EasJsonReader {
|
|
|
84
84
|
|
|
85
85
|
public async getSubmitProfileAsync<T extends Platform>(
|
|
86
86
|
platform: T,
|
|
87
|
-
profileName
|
|
87
|
+
profileName?: string
|
|
88
88
|
): Promise<SubmitProfile<T>> {
|
|
89
89
|
const easJson = await this.readAsync();
|
|
90
90
|
return resolveSubmitProfile({ easJson, platform, profileName });
|
package/src/submit/resolver.ts
CHANGED
|
@@ -17,15 +17,23 @@ export function resolveSubmitProfile<T extends Platform>({
|
|
|
17
17
|
}: {
|
|
18
18
|
easJson: EasJson;
|
|
19
19
|
platform: T;
|
|
20
|
-
profileName
|
|
20
|
+
profileName?: string;
|
|
21
21
|
}): SubmitProfile<T> {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
try {
|
|
23
|
+
const submitProfile = resolveProfile({
|
|
24
|
+
easJson,
|
|
25
|
+
platform,
|
|
26
|
+
profileName: profileName ?? 'production',
|
|
27
|
+
});
|
|
28
|
+
const unevaluatedProfile = mergeProfiles(getDefaultProfile(platform), submitProfile);
|
|
29
|
+
return evaluateFields(platform, unevaluatedProfile);
|
|
30
|
+
} catch (err: any) {
|
|
31
|
+
if (err instanceof MissingProfileError && !profileName) {
|
|
32
|
+
return getDefaultProfile(platform);
|
|
33
|
+
} else {
|
|
34
|
+
throw err;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
function resolveProfile<T extends Platform>({
|
package/src/submit/schema.ts
CHANGED
package/src/submit/types.ts
CHANGED