@expo/eas-build-job 18.6.0 → 18.12.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/android.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LoggerLevel } from '@expo/logger';
2
2
  import Joi from 'joi';
3
- import { ArchiveSource, BuildMode, BuildTrigger, Cache, Env, EnvironmentSecret, Hooks, Platform, StaticWorkflowInterpolationContext, Workflow } from './common';
3
+ import { ArchiveSource, BuildMode, BuildTrigger, Cache, Env, EnvironmentSecret, Hooks, JobOutputs, Platform, StaticWorkflowInterpolationContext, Workflow } from './common';
4
4
  import { Step } from './step';
5
5
  export interface Keystore {
6
6
  dataBase64: string;
@@ -65,7 +65,7 @@ export interface Job {
65
65
  };
66
66
  hooks?: Hooks;
67
67
  steps?: Step[];
68
- outputs?: Record<string, string>;
68
+ outputs?: JobOutputs;
69
69
  experimental?: {
70
70
  prebuildCommand?: string;
71
71
  };
package/dist/android.js CHANGED
@@ -71,6 +71,7 @@ exports.JobSchema = joi_1.default.object({
71
71
  buildType: joi_1.default.string().valid(...Object.values(BuildType)),
72
72
  username: joi_1.default.string(),
73
73
  hooks: common_1.HooksSchema,
74
+ outputs: common_1.JobOutputsSchema,
74
75
  experimental: joi_1.default.object({
75
76
  prebuildCommand: joi_1.default.string(),
76
77
  }),
package/dist/common.d.ts CHANGED
@@ -235,6 +235,10 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
235
235
  processing: "processing";
236
236
  complete: "complete";
237
237
  }>;
238
+ cf_bundle_version: z.ZodOptional<z.ZodString>;
239
+ build: z.ZodOptional<z.ZodObject<{
240
+ id: z.ZodString;
241
+ }, z.core.$loose>>;
238
242
  }, z.core.$loose>>;
239
243
  external_beta: z.ZodOptional<z.ZodObject<{
240
244
  id: z.ZodString;
@@ -280,6 +284,9 @@ export type DynamicInterpolationContext = {
280
284
  substring: (input: string, start: number, end?: number) => string;
281
285
  };
282
286
  export type WorkflowInterpolationContext = StaticWorkflowInterpolationContext & DynamicInterpolationContext;
287
+ export type JobOutputs = Record<string, string>;
288
+ export declare const JobOutputsSchema: Joi.ObjectSchema<JobOutputs>;
289
+ export declare const JobOutputsSchemaZ: z.ZodRecord<z.ZodString, z.ZodString>;
283
290
  export declare const CustomBuildConfigSchema: Joi.ObjectSchema<any>;
284
291
  export declare enum EasCliNpmTags {
285
292
  STAGING = "latest-eas-build-staging",
package/dist/common.js CHANGED
@@ -3,7 +3,7 @@ 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.EasCliNpmTags = exports.CustomBuildConfigSchema = exports.StaticWorkflowInterpolationContextZ = exports.CacheSchema = exports.HooksZ = exports.HooksSchema = exports.EnvironmentSecretZ = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0;
6
+ exports.EasCliNpmTags = exports.CustomBuildConfigSchema = exports.JobOutputsSchemaZ = exports.JobOutputsSchema = exports.StaticWorkflowInterpolationContextZ = exports.CacheSchema = exports.HooksZ = exports.HooksSchema = 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
8
  const zod_1 = require("zod");
9
9
  const step_1 = require("./step");
@@ -197,6 +197,12 @@ const AppStoreConnectContextZ = zod_1.z.looseObject({
197
197
  .looseObject({
198
198
  id: zod_1.z.string(),
199
199
  state: zod_1.z.enum(['awaiting_upload', 'processing', 'failed', 'complete']),
200
+ cf_bundle_version: zod_1.z.string().optional(),
201
+ build: zod_1.z
202
+ .looseObject({
203
+ id: zod_1.z.string(),
204
+ })
205
+ .optional(),
200
206
  })
201
207
  .optional(),
202
208
  external_beta: zod_1.z
@@ -256,6 +262,8 @@ exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
256
262
  // We need to .optional() to support jobs that are not triggered by an App Store Connect event.
257
263
  app_store_connect: AppStoreConnectContextZ.optional(),
258
264
  });
265
+ exports.JobOutputsSchema = joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string());
266
+ exports.JobOutputsSchemaZ = zod_1.z.record(zod_1.z.string(), zod_1.z.string());
259
267
  exports.CustomBuildConfigSchema = joi_1.default.object().when('.mode', {
260
268
  is: [BuildMode.CUSTOM, BuildMode.REPACK],
261
269
  then: joi_1.default.object().when('.customBuildConfig.path', {
@@ -265,7 +273,6 @@ exports.CustomBuildConfigSchema = joi_1.default.object().when('.mode', {
265
273
  path: joi_1.default.string().required(),
266
274
  }).required(),
267
275
  steps: joi_1.default.any().strip(),
268
- outputs: joi_1.default.any().strip(),
269
276
  }),
270
277
  otherwise: joi_1.default.object({
271
278
  customBuildConfig: joi_1.default.any().strip(),
@@ -273,13 +280,11 @@ exports.CustomBuildConfigSchema = joi_1.default.object().when('.mode', {
273
280
  .items(joi_1.default.any())
274
281
  .required()
275
282
  .custom(steps => (0, step_1.validateSteps)(steps), 'steps validation'),
276
- outputs: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string()).required(),
277
283
  }),
278
284
  }),
279
285
  otherwise: joi_1.default.object({
280
286
  customBuildConfig: joi_1.default.any().strip(),
281
287
  steps: joi_1.default.any().strip(),
282
- outputs: joi_1.default.any().strip(),
283
288
  }),
284
289
  });
285
290
  var EasCliNpmTags;
package/dist/generic.d.ts CHANGED
@@ -136,6 +136,10 @@ export declare namespace Generic {
136
136
  processing: "processing";
137
137
  complete: "complete";
138
138
  }>;
139
+ cf_bundle_version: z.ZodOptional<z.ZodString>;
140
+ build: z.ZodOptional<z.ZodObject<{
141
+ id: z.ZodString;
142
+ }, z.core.$loose>>;
139
143
  }, z.core.$loose>>;
140
144
  external_beta: z.ZodOptional<z.ZodObject<{
141
145
  id: z.ZodString;
@@ -364,6 +368,10 @@ export declare namespace Generic {
364
368
  processing: "processing";
365
369
  complete: "complete";
366
370
  }>;
371
+ cf_bundle_version: z.ZodOptional<z.ZodString>;
372
+ build: z.ZodOptional<z.ZodObject<{
373
+ id: z.ZodString;
374
+ }, z.core.$loose>>;
367
375
  }, z.core.$loose>>;
368
376
  external_beta: z.ZodOptional<z.ZodObject<{
369
377
  id: z.ZodString;
package/dist/generic.js CHANGED
@@ -40,7 +40,7 @@ var Generic;
40
40
  appId: zod_1.z.string(),
41
41
  hooks: common_1.HooksZ.optional(),
42
42
  steps: zod_1.z.array(step_1.StepZ).min(1),
43
- outputs: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
43
+ outputs: common_1.JobOutputsSchemaZ.optional(),
44
44
  });
45
45
  Generic.PartialJobZ = Generic.JobZ.partial();
46
46
  })(Generic || (exports.Generic = Generic = {}));
package/dist/ios.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LoggerLevel } from '@expo/logger';
2
2
  import Joi from 'joi';
3
- import { ArchiveSource, BuildMode, BuildTrigger, Cache, Env, EnvironmentSecret, Hooks, Platform, StaticWorkflowInterpolationContext, Workflow } from './common';
3
+ import { ArchiveSource, BuildMode, BuildTrigger, Cache, Env, EnvironmentSecret, Hooks, JobOutputs, Platform, StaticWorkflowInterpolationContext, Workflow } from './common';
4
4
  import { Step } from './step';
5
5
  export type DistributionType = 'store' | 'internal' | 'simulator';
6
6
  export interface TargetCredentials {
@@ -70,7 +70,7 @@ export interface Job {
70
70
  };
71
71
  hooks?: Hooks;
72
72
  steps?: Step[];
73
- outputs?: Record<string, string>;
73
+ outputs?: JobOutputs;
74
74
  experimental?: {
75
75
  prebuildCommand?: string;
76
76
  };
package/dist/ios.js CHANGED
@@ -90,6 +90,7 @@ exports.JobSchema = joi_1.default.object({
90
90
  applicationArchivePath: joi_1.default.string(),
91
91
  username: joi_1.default.string(),
92
92
  hooks: common_1.HooksSchema,
93
+ outputs: common_1.JobOutputsSchema,
93
94
  experimental: joi_1.default.object({
94
95
  prebuildCommand: joi_1.default.string(),
95
96
  }),
package/dist/logs.d.ts CHANGED
@@ -37,6 +37,7 @@ export declare enum BuildPhase {
37
37
  INSTALL_PODS = "INSTALL_PODS",
38
38
  CONFIGURE_XCODE_PROJECT = "CONFIGURE_XCODE_PROJECT",
39
39
  RUN_FASTLANE = "RUN_FASTLANE",
40
+ PARSE_XCACTIVITYLOG = "PARSE_XCACTIVITYLOG",
40
41
  PRE_INSTALL_HOOK = "PRE_INSTALL_HOOK",
41
42
  POST_INSTALL_HOOK = "POST_INSTALL_HOOK",
42
43
  PRE_UPLOAD_ARTIFACTS_HOOK = "PRE_UPLOAD_ARTIFACTS_HOOK",
package/dist/logs.js CHANGED
@@ -43,6 +43,7 @@ var BuildPhase;
43
43
  BuildPhase["INSTALL_PODS"] = "INSTALL_PODS";
44
44
  BuildPhase["CONFIGURE_XCODE_PROJECT"] = "CONFIGURE_XCODE_PROJECT";
45
45
  BuildPhase["RUN_FASTLANE"] = "RUN_FASTLANE";
46
+ BuildPhase["PARSE_XCACTIVITYLOG"] = "PARSE_XCACTIVITYLOG";
46
47
  // HOOKS
47
48
  BuildPhase["PRE_INSTALL_HOOK"] = "PRE_INSTALL_HOOK";
48
49
  BuildPhase["POST_INSTALL_HOOK"] = "POST_INSTALL_HOOK";
@@ -104,6 +105,7 @@ exports.buildPhaseDisplayName = {
104
105
  [BuildPhase.INSTALL_PODS]: 'Install pods',
105
106
  [BuildPhase.CONFIGURE_XCODE_PROJECT]: 'Configure Xcode project',
106
107
  [BuildPhase.RUN_FASTLANE]: 'Run fastlane',
108
+ [BuildPhase.PARSE_XCACTIVITYLOG]: 'Analyze build performance',
107
109
  // HOOKS
108
110
  [BuildPhase.PRE_INSTALL_HOOK]: 'Pre-install hook',
109
111
  [BuildPhase.POST_INSTALL_HOOK]: 'Post-install hook',
@@ -162,6 +164,7 @@ exports.buildPhaseWebsiteId = {
162
164
  [BuildPhase.INSTALL_PODS]: 'install-pods',
163
165
  [BuildPhase.CONFIGURE_XCODE_PROJECT]: 'configure-xcode-project',
164
166
  [BuildPhase.RUN_FASTLANE]: 'run-fastlane',
167
+ [BuildPhase.PARSE_XCACTIVITYLOG]: 'parse-xcactivitylog',
165
168
  // HOOKS
166
169
  [BuildPhase.PRE_INSTALL_HOOK]: 'pre-install-hook',
167
170
  [BuildPhase.POST_INSTALL_HOOK]: 'post-install-hook',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "18.6.0",
3
+ "version": "18.12.0",
4
4
  "bugs": "https://github.com/expo/eas-cli/issues",
5
5
  "license": "MIT",
6
6
  "author": "Expo <support@expo.io>",
@@ -38,5 +38,5 @@
38
38
  "ts-jest": "^29.1.4",
39
39
  "typescript": "^5.5.4"
40
40
  },
41
- "gitHead": "0fb6dfc334f0e496d701ff2afad0d15da9a83478"
41
+ "gitHead": "53d294330de9c63eb792f646c0603224def9a1b0"
42
42
  }