@expo/eas-build-job 18.2.0 → 18.5.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/dist/common.d.ts +14 -0
- package/dist/common.js +13 -0
- package/dist/errors.d.ts +20 -10
- package/dist/errors.js +29 -23
- package/dist/generic.d.ts +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +6 -5
package/dist/common.d.ts
CHANGED
|
@@ -203,6 +203,20 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
|
|
|
203
203
|
id: z.ZodString;
|
|
204
204
|
name: z.ZodString;
|
|
205
205
|
}, z.core.$loose>;
|
|
206
|
+
app_store_connect: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
app: z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
}, z.core.$loose>;
|
|
210
|
+
build_upload: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
state: z.ZodEnum<{
|
|
213
|
+
failed: "failed";
|
|
214
|
+
awaiting_upload: "awaiting_upload";
|
|
215
|
+
processing: "processing";
|
|
216
|
+
complete: "complete";
|
|
217
|
+
}>;
|
|
218
|
+
}, z.core.$loose>>;
|
|
219
|
+
}, z.core.$loose>>;
|
|
206
220
|
}, z.core.$strip>;
|
|
207
221
|
export type StaticWorkflowInterpolationContext = z.infer<typeof StaticWorkflowInterpolationContextZ>;
|
|
208
222
|
export type DynamicInterpolationContext = {
|
package/dist/common.js
CHANGED
|
@@ -194,6 +194,19 @@ exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
|
|
|
194
194
|
id: zod_1.z.string(),
|
|
195
195
|
name: zod_1.z.string(),
|
|
196
196
|
}),
|
|
197
|
+
app_store_connect: zod_1.z
|
|
198
|
+
.looseObject({
|
|
199
|
+
app: zod_1.z.looseObject({
|
|
200
|
+
id: zod_1.z.string(),
|
|
201
|
+
}),
|
|
202
|
+
build_upload: zod_1.z
|
|
203
|
+
.looseObject({
|
|
204
|
+
id: zod_1.z.string(),
|
|
205
|
+
state: zod_1.z.enum(['awaiting_upload', 'processing', 'failed', 'complete']),
|
|
206
|
+
})
|
|
207
|
+
.optional(),
|
|
208
|
+
})
|
|
209
|
+
.optional(),
|
|
197
210
|
});
|
|
198
211
|
exports.CustomBuildConfigSchema = joi_1.default.object().when('.mode', {
|
|
199
212
|
is: [BuildMode.CUSTOM, BuildMode.REPACK],
|
package/dist/errors.d.ts
CHANGED
|
@@ -38,30 +38,40 @@ export declare abstract class ExpoError<TMetadata extends ErrorMetadata = ErrorM
|
|
|
38
38
|
readonly metadata?: TMetadata;
|
|
39
39
|
buildPhase?: BuildPhase;
|
|
40
40
|
constructor(message: string, details: ExpoErrorDetails<TMetadata>);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Serialized error payload used by the orchestrator-worker API.
|
|
43
|
+
*/
|
|
44
|
+
toExternalExpoError(): ExternalBuildError;
|
|
45
45
|
}
|
|
46
|
-
export declare class
|
|
46
|
+
export declare class UserError<TMetadata extends ErrorMetadata = ErrorMetadata> extends ExpoError<TMetadata> {
|
|
47
47
|
errorCode: string;
|
|
48
|
-
message: string;
|
|
49
48
|
constructor(errorCode: string, message: string, options?: {
|
|
49
|
+
trackingCode?: string;
|
|
50
|
+
docsUrl?: string;
|
|
51
|
+
buildPhase?: BuildPhase;
|
|
52
|
+
metadata?: TMetadata;
|
|
53
|
+
cause?: unknown;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export declare class SystemError<TMetadata extends ErrorMetadata = ErrorMetadata> extends ExpoError<TMetadata> {
|
|
57
|
+
constructor(message: string, options?: {
|
|
58
|
+
trackingCode?: string;
|
|
50
59
|
docsUrl?: string;
|
|
60
|
+
buildPhase?: BuildPhase;
|
|
51
61
|
metadata?: TMetadata;
|
|
52
62
|
cause?: unknown;
|
|
53
63
|
});
|
|
54
64
|
}
|
|
55
|
-
export declare class UnknownError extends
|
|
65
|
+
export declare class UnknownError extends UserError {
|
|
56
66
|
constructor(buildPhase?: BuildPhase);
|
|
57
67
|
}
|
|
58
|
-
export declare class UnknownBuildError extends
|
|
68
|
+
export declare class UnknownBuildError extends UserError {
|
|
59
69
|
constructor();
|
|
60
70
|
}
|
|
61
|
-
export declare class UnknownCustomBuildError extends
|
|
71
|
+
export declare class UnknownCustomBuildError extends UserError {
|
|
62
72
|
constructor();
|
|
63
73
|
}
|
|
64
|
-
export declare class CredentialsDistCertMismatchError extends
|
|
74
|
+
export declare class CredentialsDistCertMismatchError extends UserError {
|
|
65
75
|
constructor(message: string);
|
|
66
76
|
}
|
|
67
77
|
export {};
|
package/dist/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CredentialsDistCertMismatchError = exports.UnknownCustomBuildError = exports.UnknownBuildError = exports.UnknownError = exports.
|
|
3
|
+
exports.CredentialsDistCertMismatchError = exports.UnknownCustomBuildError = exports.UnknownBuildError = exports.UnknownError = exports.SystemError = exports.UserError = exports.ExpoError = exports.ErrorCode = void 0;
|
|
4
4
|
const logs_1 = require("./logs");
|
|
5
5
|
var ErrorCode;
|
|
6
6
|
(function (ErrorCode) {
|
|
@@ -28,7 +28,10 @@ class ExpoError extends Error {
|
|
|
28
28
|
this.metadata = details.metadata;
|
|
29
29
|
this.buildPhase = details.buildPhase;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Serialized error payload used by the orchestrator-worker API.
|
|
33
|
+
*/
|
|
34
|
+
toExternalExpoError() {
|
|
32
35
|
return {
|
|
33
36
|
errorCode: this.errorCode,
|
|
34
37
|
message: this.message,
|
|
@@ -38,56 +41,59 @@ class ExpoError extends Error {
|
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
exports.ExpoError = ExpoError;
|
|
41
|
-
class
|
|
42
|
-
constructor(message, details) {
|
|
43
|
-
super(message, details);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.BuildError = BuildError;
|
|
47
|
-
class UserFacingError extends ExpoError {
|
|
44
|
+
class UserError extends ExpoError {
|
|
48
45
|
errorCode;
|
|
49
|
-
message;
|
|
50
46
|
constructor(errorCode, message, options) {
|
|
51
47
|
super(message, {
|
|
52
48
|
errorCode,
|
|
49
|
+
trackingCode: options?.trackingCode,
|
|
53
50
|
docsUrl: options?.docsUrl,
|
|
51
|
+
buildPhase: options?.buildPhase,
|
|
54
52
|
metadata: options?.metadata,
|
|
55
53
|
cause: options?.cause,
|
|
56
54
|
});
|
|
57
55
|
this.errorCode = errorCode;
|
|
58
|
-
this.message = message;
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
|
-
exports.
|
|
62
|
-
class
|
|
58
|
+
exports.UserError = UserError;
|
|
59
|
+
class SystemError extends ExpoError {
|
|
60
|
+
constructor(message, options) {
|
|
61
|
+
super(message, {
|
|
62
|
+
errorCode: ErrorCode.SERVER_ERROR,
|
|
63
|
+
trackingCode: options?.trackingCode,
|
|
64
|
+
docsUrl: options?.docsUrl,
|
|
65
|
+
buildPhase: options?.buildPhase,
|
|
66
|
+
metadata: options?.metadata,
|
|
67
|
+
cause: options?.cause,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.SystemError = SystemError;
|
|
72
|
+
class UnknownError extends UserError {
|
|
63
73
|
constructor(buildPhase) {
|
|
64
74
|
super(ErrorCode.UNKNOWN_ERROR, buildPhase
|
|
65
75
|
? `Unknown error. See logs of the ${logs_1.buildPhaseDisplayName[buildPhase]} build phase for more information.`
|
|
66
|
-
: 'Unknown error. See logs for more information.');
|
|
76
|
+
: 'Unknown error. See logs for more information.', { buildPhase });
|
|
67
77
|
}
|
|
68
78
|
}
|
|
69
79
|
exports.UnknownError = UnknownError;
|
|
70
|
-
class UnknownBuildError extends
|
|
80
|
+
class UnknownBuildError extends UserError {
|
|
71
81
|
constructor() {
|
|
72
82
|
const errorCode = ErrorCode.UNKNOWN_ERROR;
|
|
73
83
|
const message = 'Unknown error. See logs for more information.';
|
|
74
|
-
super(
|
|
75
|
-
errorCode,
|
|
76
|
-
});
|
|
84
|
+
super(errorCode, message);
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
87
|
exports.UnknownBuildError = UnknownBuildError;
|
|
80
|
-
class UnknownCustomBuildError extends
|
|
88
|
+
class UnknownCustomBuildError extends UserError {
|
|
81
89
|
constructor() {
|
|
82
90
|
const errorCode = ErrorCode.UNKNOWN_CUSTOM_BUILD_ERROR;
|
|
83
91
|
const message = 'Unknown custom build error. See logs for more information.';
|
|
84
|
-
super(
|
|
85
|
-
errorCode,
|
|
86
|
-
});
|
|
92
|
+
super(errorCode, message);
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
exports.UnknownCustomBuildError = UnknownCustomBuildError;
|
|
90
|
-
class CredentialsDistCertMismatchError extends
|
|
96
|
+
class CredentialsDistCertMismatchError extends UserError {
|
|
91
97
|
constructor(message) {
|
|
92
98
|
super('EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH', message);
|
|
93
99
|
}
|
package/dist/generic.d.ts
CHANGED
|
@@ -104,6 +104,20 @@ export declare namespace Generic {
|
|
|
104
104
|
id: z.ZodString;
|
|
105
105
|
name: z.ZodString;
|
|
106
106
|
}, z.core.$loose>;
|
|
107
|
+
app_store_connect: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
app: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
}, z.core.$loose>;
|
|
111
|
+
build_upload: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
state: z.ZodEnum<{
|
|
114
|
+
failed: "failed";
|
|
115
|
+
awaiting_upload: "awaiting_upload";
|
|
116
|
+
processing: "processing";
|
|
117
|
+
complete: "complete";
|
|
118
|
+
}>;
|
|
119
|
+
}, z.core.$loose>>;
|
|
120
|
+
}, z.core.$loose>>;
|
|
107
121
|
}, z.core.$strip>>;
|
|
108
122
|
initiatingUserId: z.ZodString;
|
|
109
123
|
appId: z.ZodString;
|
|
@@ -273,6 +287,20 @@ export declare namespace Generic {
|
|
|
273
287
|
id: z.ZodString;
|
|
274
288
|
name: z.ZodString;
|
|
275
289
|
}, z.core.$loose>;
|
|
290
|
+
app_store_connect: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
app: z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
}, z.core.$loose>;
|
|
294
|
+
build_upload: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
state: z.ZodEnum<{
|
|
297
|
+
failed: "failed";
|
|
298
|
+
awaiting_upload: "awaiting_upload";
|
|
299
|
+
processing: "processing";
|
|
300
|
+
complete: "complete";
|
|
301
|
+
}>;
|
|
302
|
+
}, z.core.$loose>>;
|
|
303
|
+
}, z.core.$loose>>;
|
|
276
304
|
}, z.core.$strip>>>;
|
|
277
305
|
initiatingUserId: z.ZodOptional<z.ZodString>;
|
|
278
306
|
appId: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { ArchiveSourceType, ArchiveSource, ArchiveSourceSchemaZ, BuildMode, Buil
|
|
|
4
4
|
export { Metadata, sanitizeMetadata } from './metadata';
|
|
5
5
|
export * from './job';
|
|
6
6
|
export * from './logs';
|
|
7
|
+
export * from './errors';
|
|
7
8
|
export * as errors from './errors';
|
|
8
9
|
export * from './artifacts';
|
|
9
10
|
export * from './context';
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ var metadata_1 = require("./metadata");
|
|
|
52
52
|
Object.defineProperty(exports, "sanitizeMetadata", { enumerable: true, get: function () { return metadata_1.sanitizeMetadata; } });
|
|
53
53
|
__exportStar(require("./job"), exports);
|
|
54
54
|
__exportStar(require("./logs"), exports);
|
|
55
|
+
__exportStar(require("./errors"), exports);
|
|
55
56
|
exports.errors = __importStar(require("./errors"));
|
|
56
57
|
__exportStar(require("./artifacts"), exports);
|
|
57
58
|
__exportStar(require("./context"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-build-job",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.5.0",
|
|
4
4
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Expo <support@expo.io>",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"watch": "tsc --watch --preserveWatchOutput",
|
|
20
20
|
"build": "tsc",
|
|
21
21
|
"typecheck": "tsc",
|
|
22
|
-
"prepack": "
|
|
22
|
+
"prepack": "rimraf dist \"*.tsbuildinfo\" && tsc -p tsconfig.build.json",
|
|
23
23
|
"test": "jest --config jest.config.ts",
|
|
24
24
|
"test:watch": "jest --config jest.config.ts --watch",
|
|
25
|
-
"clean": "
|
|
25
|
+
"clean": "rimraf node_modules dist coverage \"*.tsbuildinfo\""
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@expo/logger": "18.0
|
|
28
|
+
"@expo/logger": "18.5.0",
|
|
29
29
|
"joi": "^17.13.1",
|
|
30
30
|
"semver": "^7.6.2",
|
|
31
31
|
"zod": "^4.3.5"
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
"@types/jest": "^29.5.12",
|
|
35
35
|
"@types/node": "20.14.2",
|
|
36
36
|
"jest": "^29.7.0",
|
|
37
|
+
"rimraf": "3.0.2",
|
|
37
38
|
"ts-jest": "^29.1.4",
|
|
38
39
|
"typescript": "^5.5.4"
|
|
39
40
|
},
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2e2dddb59ae9df5ad2395c74f77701341103b62e"
|
|
41
42
|
}
|