@expo/eas-build-job 1.0.87 → 1.0.88
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 +57 -0
- package/dist/common.js +27 -1
- package/dist/common.js.map +1 -1
- package/dist/generic.d.ts +206 -0
- package/dist/generic.js +36 -0
- package/dist/generic.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import { BuildPhase, BuildPhaseResult } from './logs';
|
|
3
4
|
export declare enum BuildMode {
|
|
4
5
|
BUILD = "build",
|
|
@@ -50,6 +51,49 @@ export type ArchiveSource = {
|
|
|
50
51
|
gitRef: string;
|
|
51
52
|
};
|
|
52
53
|
export declare const ArchiveSourceSchema: Joi.ObjectSchema<ArchiveSource>;
|
|
54
|
+
export declare const ArchiveSourceSchemaZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<ArchiveSourceType.GIT>;
|
|
56
|
+
repositoryUrl: z.ZodString;
|
|
57
|
+
gitRef: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: ArchiveSourceType.GIT;
|
|
60
|
+
repositoryUrl: string;
|
|
61
|
+
gitRef: string;
|
|
62
|
+
}, {
|
|
63
|
+
type: ArchiveSourceType.GIT;
|
|
64
|
+
repositoryUrl: string;
|
|
65
|
+
gitRef: string;
|
|
66
|
+
}>, z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<ArchiveSourceType.PATH>;
|
|
68
|
+
path: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
type: ArchiveSourceType.PATH;
|
|
71
|
+
path: string;
|
|
72
|
+
}, {
|
|
73
|
+
type: ArchiveSourceType.PATH;
|
|
74
|
+
path: string;
|
|
75
|
+
}>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<ArchiveSourceType.URL>;
|
|
77
|
+
url: z.ZodString;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
type: ArchiveSourceType.URL;
|
|
80
|
+
url: string;
|
|
81
|
+
}, {
|
|
82
|
+
type: ArchiveSourceType.URL;
|
|
83
|
+
url: string;
|
|
84
|
+
}>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<ArchiveSourceType.GCS>;
|
|
86
|
+
bucketKey: z.ZodString;
|
|
87
|
+
metadataLocation: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
type: ArchiveSourceType.GCS;
|
|
90
|
+
bucketKey: string;
|
|
91
|
+
metadataLocation?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
type: ArchiveSourceType.GCS;
|
|
94
|
+
bucketKey: string;
|
|
95
|
+
metadataLocation?: string | undefined;
|
|
96
|
+
}>]>;
|
|
53
97
|
export type Env = Record<string, string>;
|
|
54
98
|
export declare const EnvSchema: Joi.ObjectSchema<any>;
|
|
55
99
|
export type EnvironmentSecret = {
|
|
@@ -62,6 +106,19 @@ export declare enum EnvironmentSecretType {
|
|
|
62
106
|
FILE = "file"
|
|
63
107
|
}
|
|
64
108
|
export declare const EnvironmentSecretsSchema: Joi.ArraySchema<any[]>;
|
|
109
|
+
export declare const EnvironmentSecretZ: z.ZodObject<{
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
value: z.ZodString;
|
|
112
|
+
type: z.ZodNativeEnum<typeof EnvironmentSecretType>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
type: EnvironmentSecretType;
|
|
115
|
+
value: string;
|
|
116
|
+
name: string;
|
|
117
|
+
}, {
|
|
118
|
+
type: EnvironmentSecretType;
|
|
119
|
+
value: string;
|
|
120
|
+
name: string;
|
|
121
|
+
}>;
|
|
65
122
|
export interface Cache {
|
|
66
123
|
disabled: boolean;
|
|
67
124
|
clear: boolean;
|
package/dist/common.js
CHANGED
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CacheSchema = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0;
|
|
6
|
+
exports.CacheSchema = exports.EnvironmentSecretZ = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
|
+
const zod_1 = require("zod");
|
|
8
9
|
var BuildMode;
|
|
9
10
|
(function (BuildMode) {
|
|
10
11
|
BuildMode["BUILD"] = "build";
|
|
@@ -66,6 +67,26 @@ exports.ArchiveSourceSchema = joi_1.default.object({
|
|
|
66
67
|
path: joi_1.default.string().required(),
|
|
67
68
|
}),
|
|
68
69
|
});
|
|
70
|
+
exports.ArchiveSourceSchemaZ = zod_1.z.discriminatedUnion('type', [
|
|
71
|
+
zod_1.z.object({
|
|
72
|
+
type: zod_1.z.literal(ArchiveSourceType.GIT),
|
|
73
|
+
repositoryUrl: zod_1.z.string().url(),
|
|
74
|
+
gitRef: zod_1.z.string(),
|
|
75
|
+
}),
|
|
76
|
+
zod_1.z.object({
|
|
77
|
+
type: zod_1.z.literal(ArchiveSourceType.PATH),
|
|
78
|
+
path: zod_1.z.string(),
|
|
79
|
+
}),
|
|
80
|
+
zod_1.z.object({
|
|
81
|
+
type: zod_1.z.literal(ArchiveSourceType.URL),
|
|
82
|
+
url: zod_1.z.string().url(),
|
|
83
|
+
}),
|
|
84
|
+
zod_1.z.object({
|
|
85
|
+
type: zod_1.z.literal(ArchiveSourceType.GCS),
|
|
86
|
+
bucketKey: zod_1.z.string(),
|
|
87
|
+
metadataLocation: zod_1.z.string().optional(),
|
|
88
|
+
}),
|
|
89
|
+
]);
|
|
69
90
|
exports.EnvSchema = joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string());
|
|
70
91
|
var EnvironmentSecretType;
|
|
71
92
|
(function (EnvironmentSecretType) {
|
|
@@ -79,6 +100,11 @@ exports.EnvironmentSecretsSchema = joi_1.default.array().items(joi_1.default.obj
|
|
|
79
100
|
.valid(...Object.values(EnvironmentSecretType))
|
|
80
101
|
.required(),
|
|
81
102
|
}));
|
|
103
|
+
exports.EnvironmentSecretZ = zod_1.z.object({
|
|
104
|
+
name: zod_1.z.string(),
|
|
105
|
+
value: zod_1.z.string(),
|
|
106
|
+
type: zod_1.z.nativeEnum(EnvironmentSecretType),
|
|
107
|
+
});
|
|
82
108
|
exports.CacheSchema = joi_1.default.object({
|
|
83
109
|
disabled: joi_1.default.boolean().default(false),
|
|
84
110
|
clear: joi_1.default.boolean().default(false),
|
package/dist/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AAIxB,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,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,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAC1C,CAAC,CAAC;AAiBU,QAAA,WAAW,GAAG,aAAG,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACtC,KAAK,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,WAAW,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC;IAC5C,KAAK,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnD,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { z } from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\n\nexport enum BuildMode {\n BUILD = 'build',\n RESIGN = 'resign',\n CUSTOM = 'custom',\n}\n\nexport enum Workflow {\n GENERIC = 'generic',\n MANAGED = 'managed',\n UNKNOWN = 'unknown',\n}\n\nexport enum Platform {\n ANDROID = 'android',\n IOS = 'ios',\n}\n\nexport enum ArchiveSourceType {\n NONE = 'NONE',\n URL = 'URL',\n PATH = 'PATH',\n GCS = 'GCS',\n GIT = 'GIT',\n}\n\nexport enum BuildTrigger {\n EAS_CLI = 'EAS_CLI',\n GIT_BASED_INTEGRATION = 'GIT_BASED_INTEGRATION',\n}\n\nexport type ArchiveSource =\n | { type: ArchiveSourceType.NONE }\n | { type: ArchiveSourceType.GCS; bucketKey: string; metadataLocation?: string }\n | { type: ArchiveSourceType.URL; url: string }\n | { type: ArchiveSourceType.PATH; path: string }\n | {\n type: ArchiveSourceType.GIT;\n /**\n * Url that can be used to clone repository.\n * It should contain embedded credentials for private registries.\n */\n repositoryUrl: string;\n /**\n * Git commit hash, branch, or tag\n */\n gitRef: string;\n };\n\nexport const ArchiveSourceSchema = Joi.object<ArchiveSource>({\n type: Joi.string()\n .valid(...Object.values(ArchiveSourceType))\n .required(),\n})\n .when(Joi.object({ type: ArchiveSourceType.GCS }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GCS).required(),\n bucketKey: Joi.string().required(),\n metadataLocation: Joi.string(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.URL }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.URL).required(),\n url: Joi.string().uri().required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.GIT }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GIT).required(),\n repositoryUrl: Joi.string().required(),\n gitRef: Joi.string().required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.PATH }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.PATH).required(),\n path: Joi.string().required(),\n }),\n });\n\nexport const ArchiveSourceSchemaZ = z.discriminatedUnion('type', [\n z.object({\n type: z.literal(ArchiveSourceType.GIT),\n repositoryUrl: z.string().url(),\n gitRef: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.PATH),\n path: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.URL),\n url: z.string().url(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.GCS),\n bucketKey: z.string(),\n metadataLocation: z.string().optional(),\n }),\n]);\n\nexport type Env = Record<string, string>;\nexport const EnvSchema = Joi.object().pattern(Joi.string(), Joi.string());\n\nexport type EnvironmentSecret = {\n name: string;\n type: EnvironmentSecretType;\n value: string;\n};\nexport enum EnvironmentSecretType {\n STRING = 'string',\n FILE = 'file',\n}\nexport const EnvironmentSecretsSchema = Joi.array().items(\n Joi.object({\n name: Joi.string().required(),\n value: Joi.string().allow('').required(),\n type: Joi.string()\n .valid(...Object.values(EnvironmentSecretType))\n .required(),\n })\n);\nexport const EnvironmentSecretZ = z.object({\n name: z.string(),\n value: z.string(),\n type: z.nativeEnum(EnvironmentSecretType),\n});\n\nexport interface Cache {\n disabled: boolean;\n clear: boolean;\n key?: string;\n /**\n * @deprecated We don't cache anything by default anymore.\n */\n cacheDefaultPaths?: boolean;\n /**\n * @deprecated We use paths now since there is no default caching anymore.\n */\n customPaths?: string[];\n paths: string[];\n}\n\nexport const CacheSchema = Joi.object({\n disabled: Joi.boolean().default(false),\n clear: Joi.boolean().default(false),\n key: Joi.string().allow('').max(128),\n cacheDefaultPaths: Joi.boolean(),\n customPaths: Joi.array().items(Joi.string()),\n paths: Joi.array().items(Joi.string()).default([]),\n});\n\nexport interface BuildPhaseStats {\n buildPhase: BuildPhase;\n result: BuildPhaseResult;\n durationMs: number;\n}\n"]}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace Generic {
|
|
3
|
+
type Job = z.infer<typeof JobZ>;
|
|
4
|
+
const JobZ: z.ZodObject<{
|
|
5
|
+
projectArchive: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<import("./common").ArchiveSourceType.GIT>;
|
|
7
|
+
repositoryUrl: z.ZodString;
|
|
8
|
+
gitRef: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: import("./common").ArchiveSourceType.GIT;
|
|
11
|
+
repositoryUrl: string;
|
|
12
|
+
gitRef: string;
|
|
13
|
+
}, {
|
|
14
|
+
type: import("./common").ArchiveSourceType.GIT;
|
|
15
|
+
repositoryUrl: string;
|
|
16
|
+
gitRef: string;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<import("./common").ArchiveSourceType.PATH>;
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: import("./common").ArchiveSourceType.PATH;
|
|
22
|
+
path: string;
|
|
23
|
+
}, {
|
|
24
|
+
type: import("./common").ArchiveSourceType.PATH;
|
|
25
|
+
path: string;
|
|
26
|
+
}>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<import("./common").ArchiveSourceType.URL>;
|
|
28
|
+
url: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
type: import("./common").ArchiveSourceType.URL;
|
|
31
|
+
url: string;
|
|
32
|
+
}, {
|
|
33
|
+
type: import("./common").ArchiveSourceType.URL;
|
|
34
|
+
url: string;
|
|
35
|
+
}>, z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<import("./common").ArchiveSourceType.GCS>;
|
|
37
|
+
bucketKey: z.ZodString;
|
|
38
|
+
metadataLocation: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
type: import("./common").ArchiveSourceType.GCS;
|
|
41
|
+
bucketKey: string;
|
|
42
|
+
metadataLocation?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
type: import("./common").ArchiveSourceType.GCS;
|
|
45
|
+
bucketKey: string;
|
|
46
|
+
metadataLocation?: string | undefined;
|
|
47
|
+
}>]>;
|
|
48
|
+
customBuildConfig: z.ZodObject<{
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
path: string;
|
|
52
|
+
}, {
|
|
53
|
+
path: string;
|
|
54
|
+
}>;
|
|
55
|
+
secrets: z.ZodObject<{
|
|
56
|
+
robotAccessToken: z.ZodString;
|
|
57
|
+
environmentSecrets: z.ZodArray<z.ZodObject<{
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
value: z.ZodString;
|
|
60
|
+
type: z.ZodNativeEnum<typeof import("./common").EnvironmentSecretType>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
type: import("./common").EnvironmentSecretType;
|
|
63
|
+
value: string;
|
|
64
|
+
name: string;
|
|
65
|
+
}, {
|
|
66
|
+
type: import("./common").EnvironmentSecretType;
|
|
67
|
+
value: string;
|
|
68
|
+
name: string;
|
|
69
|
+
}>, "many">;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
environmentSecrets: {
|
|
72
|
+
type: import("./common").EnvironmentSecretType;
|
|
73
|
+
value: string;
|
|
74
|
+
name: string;
|
|
75
|
+
}[];
|
|
76
|
+
robotAccessToken: string;
|
|
77
|
+
}, {
|
|
78
|
+
environmentSecrets: {
|
|
79
|
+
type: import("./common").EnvironmentSecretType;
|
|
80
|
+
value: string;
|
|
81
|
+
name: string;
|
|
82
|
+
}[];
|
|
83
|
+
robotAccessToken: string;
|
|
84
|
+
}>;
|
|
85
|
+
expoDevUrl: z.ZodString;
|
|
86
|
+
builderEnvironment: z.ZodObject<{
|
|
87
|
+
image: z.ZodString;
|
|
88
|
+
node: z.ZodOptional<z.ZodString>;
|
|
89
|
+
yarn: z.ZodOptional<z.ZodString>;
|
|
90
|
+
pnpm: z.ZodOptional<z.ZodString>;
|
|
91
|
+
bun: z.ZodOptional<z.ZodString>;
|
|
92
|
+
expoCli: z.ZodOptional<z.ZodString>;
|
|
93
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
94
|
+
ndk: z.ZodOptional<z.ZodString>;
|
|
95
|
+
bundler: z.ZodOptional<z.ZodString>;
|
|
96
|
+
fastlane: z.ZodOptional<z.ZodString>;
|
|
97
|
+
cocoapods: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
env: Record<string, string>;
|
|
100
|
+
image: string;
|
|
101
|
+
node?: string | undefined;
|
|
102
|
+
yarn?: string | undefined;
|
|
103
|
+
pnpm?: string | undefined;
|
|
104
|
+
bun?: string | undefined;
|
|
105
|
+
expoCli?: string | undefined;
|
|
106
|
+
ndk?: string | undefined;
|
|
107
|
+
bundler?: string | undefined;
|
|
108
|
+
fastlane?: string | undefined;
|
|
109
|
+
cocoapods?: string | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
env: Record<string, string>;
|
|
112
|
+
image: string;
|
|
113
|
+
node?: string | undefined;
|
|
114
|
+
yarn?: string | undefined;
|
|
115
|
+
pnpm?: string | undefined;
|
|
116
|
+
bun?: string | undefined;
|
|
117
|
+
expoCli?: string | undefined;
|
|
118
|
+
ndk?: string | undefined;
|
|
119
|
+
bundler?: string | undefined;
|
|
120
|
+
fastlane?: string | undefined;
|
|
121
|
+
cocoapods?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
builderEnvironment: {
|
|
125
|
+
env: Record<string, string>;
|
|
126
|
+
image: string;
|
|
127
|
+
node?: string | undefined;
|
|
128
|
+
yarn?: string | undefined;
|
|
129
|
+
pnpm?: string | undefined;
|
|
130
|
+
bun?: string | undefined;
|
|
131
|
+
expoCli?: string | undefined;
|
|
132
|
+
ndk?: string | undefined;
|
|
133
|
+
bundler?: string | undefined;
|
|
134
|
+
fastlane?: string | undefined;
|
|
135
|
+
cocoapods?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
projectArchive: {
|
|
138
|
+
type: import("./common").ArchiveSourceType.GIT;
|
|
139
|
+
repositoryUrl: string;
|
|
140
|
+
gitRef: string;
|
|
141
|
+
} | {
|
|
142
|
+
type: import("./common").ArchiveSourceType.PATH;
|
|
143
|
+
path: string;
|
|
144
|
+
} | {
|
|
145
|
+
type: import("./common").ArchiveSourceType.URL;
|
|
146
|
+
url: string;
|
|
147
|
+
} | {
|
|
148
|
+
type: import("./common").ArchiveSourceType.GCS;
|
|
149
|
+
bucketKey: string;
|
|
150
|
+
metadataLocation?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
secrets: {
|
|
153
|
+
environmentSecrets: {
|
|
154
|
+
type: import("./common").EnvironmentSecretType;
|
|
155
|
+
value: string;
|
|
156
|
+
name: string;
|
|
157
|
+
}[];
|
|
158
|
+
robotAccessToken: string;
|
|
159
|
+
};
|
|
160
|
+
customBuildConfig: {
|
|
161
|
+
path: string;
|
|
162
|
+
};
|
|
163
|
+
expoDevUrl: string;
|
|
164
|
+
}, {
|
|
165
|
+
builderEnvironment: {
|
|
166
|
+
env: Record<string, string>;
|
|
167
|
+
image: string;
|
|
168
|
+
node?: string | undefined;
|
|
169
|
+
yarn?: string | undefined;
|
|
170
|
+
pnpm?: string | undefined;
|
|
171
|
+
bun?: string | undefined;
|
|
172
|
+
expoCli?: string | undefined;
|
|
173
|
+
ndk?: string | undefined;
|
|
174
|
+
bundler?: string | undefined;
|
|
175
|
+
fastlane?: string | undefined;
|
|
176
|
+
cocoapods?: string | undefined;
|
|
177
|
+
};
|
|
178
|
+
projectArchive: {
|
|
179
|
+
type: import("./common").ArchiveSourceType.GIT;
|
|
180
|
+
repositoryUrl: string;
|
|
181
|
+
gitRef: string;
|
|
182
|
+
} | {
|
|
183
|
+
type: import("./common").ArchiveSourceType.PATH;
|
|
184
|
+
path: string;
|
|
185
|
+
} | {
|
|
186
|
+
type: import("./common").ArchiveSourceType.URL;
|
|
187
|
+
url: string;
|
|
188
|
+
} | {
|
|
189
|
+
type: import("./common").ArchiveSourceType.GCS;
|
|
190
|
+
bucketKey: string;
|
|
191
|
+
metadataLocation?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
secrets: {
|
|
194
|
+
environmentSecrets: {
|
|
195
|
+
type: import("./common").EnvironmentSecretType;
|
|
196
|
+
value: string;
|
|
197
|
+
name: string;
|
|
198
|
+
}[];
|
|
199
|
+
robotAccessToken: string;
|
|
200
|
+
};
|
|
201
|
+
customBuildConfig: {
|
|
202
|
+
path: string;
|
|
203
|
+
};
|
|
204
|
+
expoDevUrl: string;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
package/dist/generic.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Generic = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
var Generic;
|
|
7
|
+
(function (Generic) {
|
|
8
|
+
const BuilderEnvironmentSchemaZ = zod_1.z.object({
|
|
9
|
+
image: zod_1.z.string(),
|
|
10
|
+
node: zod_1.z.string().optional(),
|
|
11
|
+
yarn: zod_1.z.string().optional(),
|
|
12
|
+
pnpm: zod_1.z.string().optional(),
|
|
13
|
+
bun: zod_1.z.string().optional(),
|
|
14
|
+
expoCli: zod_1.z.string().optional(),
|
|
15
|
+
env: zod_1.z.record(zod_1.z.string()),
|
|
16
|
+
// Linux
|
|
17
|
+
ndk: zod_1.z.string().optional(),
|
|
18
|
+
// macOS
|
|
19
|
+
bundler: zod_1.z.string().optional(),
|
|
20
|
+
fastlane: zod_1.z.string().optional(),
|
|
21
|
+
cocoapods: zod_1.z.string().optional(),
|
|
22
|
+
});
|
|
23
|
+
Generic.JobZ = zod_1.z.object({
|
|
24
|
+
projectArchive: common_1.ArchiveSourceSchemaZ,
|
|
25
|
+
customBuildConfig: zod_1.z.object({
|
|
26
|
+
path: zod_1.z.string(),
|
|
27
|
+
}),
|
|
28
|
+
secrets: zod_1.z.object({
|
|
29
|
+
robotAccessToken: zod_1.z.string(),
|
|
30
|
+
environmentSecrets: zod_1.z.array(common_1.EnvironmentSecretZ),
|
|
31
|
+
}),
|
|
32
|
+
expoDevUrl: zod_1.z.string().url(),
|
|
33
|
+
builderEnvironment: BuilderEnvironmentSchemaZ,
|
|
34
|
+
});
|
|
35
|
+
})(Generic || (exports.Generic = Generic = {}));
|
|
36
|
+
//# sourceMappingURL=generic.js.map
|
|
@@ -0,0 +1 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AkB,CAAC;SAChD,CAAC;QACF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;QAC5B,kBAAkB,EAAE,yBAAyB;KAC9C,CAAC,CAAC;AACL,CAAC,EA9BgB,OAAO,uBAAP,OAAO,QA8BvB","sourcesContent":["import { z } from 'zod';\n\nimport { ArchiveSourceSchemaZ, EnvironmentSecretZ } from './common';\n\nexport namespace Generic {\n const BuilderEnvironmentSchemaZ = z.object({\n image: z.string(),\n node: z.string().optional(),\n yarn: z.string().optional(),\n pnpm: z.string().optional(),\n bun: z.string().optional(),\n expoCli: z.string().optional(),\n env: z.record(z.string()),\n // Linux\n ndk: z.string().optional(),\n // macOS\n bundler: z.string().optional(),\n fastlane: z.string().optional(),\n cocoapods: z.string().optional(),\n });\n\n export type Job = z.infer<typeof JobZ>;\n export const JobZ = z.object({\n projectArchive: ArchiveSourceSchemaZ,\n customBuildConfig: z.object({\n path: z.string(),\n }),\n secrets: z.object({\n robotAccessToken: z.string(),\n environmentSecrets: z.array(EnvironmentSecretZ),\n }),\n expoDevUrl: z.string().url(),\n builderEnvironment: BuilderEnvironmentSchemaZ,\n });\n}\n"]}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -44,4 +44,5 @@ __exportStar(require("./logs"), exports);
|
|
|
44
44
|
exports.errors = __importStar(require("./errors"));
|
|
45
45
|
__exportStar(require("./artifacts"), exports);
|
|
46
46
|
__exportStar(require("./context"), exports);
|
|
47
|
+
__exportStar(require("./generic"), exports);
|
|
47
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAYkB;AAXhB,2GAAA,iBAAiB,OAAA;AAEjB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAGV,6BAAyC;AAA3B,kGAAA,WAAW,OAAA;AACzB,uCAAwD;AAArC,4GAAA,gBAAgB,OAAA;AACnC,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n} from './common';\nexport { Job, sanitizeJob } from './job';\nexport { Metadata, sanitizeMetadata } from './metadata';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAYkB;AAXhB,2GAAA,iBAAiB,OAAA;AAEjB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAGV,6BAAyC;AAA3B,kGAAA,WAAW,OAAA;AACzB,uCAAwD;AAArC,4GAAA,gBAAgB,OAAA;AACnC,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n} from './common';\nexport { Job, sanitizeJob } from './job';\nexport { Metadata, sanitizeMetadata } from './metadata';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\nexport * from './generic';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-build-job",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"joi": "^17.11.0",
|
|
30
|
-
"semver": "^7.5.4"
|
|
30
|
+
"semver": "^7.5.4",
|
|
31
|
+
"zod": "^3.22.4"
|
|
31
32
|
},
|
|
32
33
|
"volta": {
|
|
33
34
|
"node": "20.11.0",
|
|
34
35
|
"yarn": "1.22.21"
|
|
35
36
|
},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6b45ac04bc89ec878ab67d3e6cbca13615798f5a"
|
|
37
38
|
}
|