@expo/eas-build-job 1.0.227 → 1.0.231
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/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/metadata.d.ts +1 -22
- package/dist/metadata.js +2 -35
- package/dist/metadata.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as Android from './android';
|
|
2
2
|
export * as Ios from './ios';
|
|
3
3
|
export { ArchiveSourceType, ArchiveSource, ArchiveSourceSchemaZ, BuildMode, BuildPhaseStats, BuildTrigger, Env, EnvironmentSecret, EnvironmentSecretType, Workflow, Platform, Cache, WorkflowInterpolationContext, } from './common';
|
|
4
|
-
export { Metadata, sanitizeMetadata
|
|
4
|
+
export { Metadata, sanitizeMetadata } from './metadata';
|
|
5
5
|
export * from './job';
|
|
6
6
|
export * from './logs';
|
|
7
7
|
export * as errors from './errors';
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.errors = exports.
|
|
29
|
+
exports.errors = exports.sanitizeMetadata = exports.Platform = exports.Workflow = exports.EnvironmentSecretType = exports.BuildTrigger = exports.BuildMode = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceType = exports.Ios = exports.Android = void 0;
|
|
30
30
|
exports.Android = __importStar(require("./android"));
|
|
31
31
|
exports.Ios = __importStar(require("./ios"));
|
|
32
32
|
var common_1 = require("./common");
|
|
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "Workflow", { enumerable: true, get: function ()
|
|
|
39
39
|
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return common_1.Platform; } });
|
|
40
40
|
var metadata_1 = require("./metadata");
|
|
41
41
|
Object.defineProperty(exports, "sanitizeMetadata", { enumerable: true, get: function () { return metadata_1.sanitizeMetadata; } });
|
|
42
|
-
Object.defineProperty(exports, "FingerprintSourceType", { enumerable: true, get: function () { return metadata_1.FingerprintSourceType; } });
|
|
43
42
|
__exportStar(require("./job"), exports);
|
|
44
43
|
__exportStar(require("./logs"), exports);
|
|
45
44
|
exports.errors = __importStar(require("./errors"));
|
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,mCAckB;AAbhB,2GAAA,iBAAiB,OAAA;AAEjB,8GAAA,oBAAoB,OAAA;AACpB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAIV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAckB;AAbhB,2GAAA,iBAAiB,OAAA;AAEjB,8GAAA,oBAAoB,OAAA;AACpB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAIV,uCAAwD;AAArC,4GAAA,gBAAgB,OAAA;AACnC,wCAAsB;AACtB,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB;AACvB,sDAAoC","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n ArchiveSourceSchemaZ,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n WorkflowInterpolationContext,\n} from './common';\nexport { Metadata, sanitizeMetadata } from './metadata';\nexport * from './job';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\nexport * from './generic';\nexport * from './step';\nexport * from './submission-config';\n"]}
|
package/dist/metadata.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
import Joi from 'joi';
|
|
2
2
|
import { Workflow } from './common';
|
|
3
|
-
export declare enum FingerprintSourceType {
|
|
4
|
-
'GCS' = "GCS",
|
|
5
|
-
'PATH' = "PATH",
|
|
6
|
-
'URL' = "URL"
|
|
7
|
-
}
|
|
8
|
-
export type FingerprintSource = {
|
|
9
|
-
isDebugFingerprint?: boolean;
|
|
10
|
-
} & ({
|
|
11
|
-
type: FingerprintSourceType.GCS;
|
|
12
|
-
bucketKey: string;
|
|
13
|
-
} | {
|
|
14
|
-
type: FingerprintSourceType.PATH;
|
|
15
|
-
path: string;
|
|
16
|
-
} | {
|
|
17
|
-
type: FingerprintSourceType.URL;
|
|
18
|
-
url: string;
|
|
19
|
-
});
|
|
20
3
|
export type Metadata = {
|
|
21
4
|
/**
|
|
22
5
|
* Tracking context
|
|
23
6
|
* It's used to track build process across different Expo services and tools.
|
|
24
7
|
*/
|
|
25
|
-
trackingContext
|
|
8
|
+
trackingContext?: Record<string, string | number | boolean>;
|
|
26
9
|
/**
|
|
27
10
|
* Application version:
|
|
28
11
|
* - managed projects: expo.version in app.json/app.config.js
|
|
@@ -65,10 +48,6 @@ export type Metadata = {
|
|
|
65
48
|
* Fingerprint hash of a project's native dependencies
|
|
66
49
|
*/
|
|
67
50
|
fingerprintHash?: string;
|
|
68
|
-
/**
|
|
69
|
-
* The location of the fingerprint file if one exists
|
|
70
|
-
*/
|
|
71
|
-
fingerprintSource?: FingerprintSource;
|
|
72
51
|
/**
|
|
73
52
|
* Version of the react-native package used in the project.
|
|
74
53
|
*/
|
package/dist/metadata.js
CHANGED
|
@@ -3,43 +3,11 @@ 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.MetadataSchema =
|
|
6
|
+
exports.MetadataSchema = void 0;
|
|
7
7
|
exports.sanitizeMetadata = sanitizeMetadata;
|
|
8
8
|
const joi_1 = __importDefault(require("joi"));
|
|
9
|
-
var FingerprintSourceType;
|
|
10
|
-
(function (FingerprintSourceType) {
|
|
11
|
-
FingerprintSourceType["GCS"] = "GCS";
|
|
12
|
-
FingerprintSourceType["PATH"] = "PATH";
|
|
13
|
-
FingerprintSourceType["URL"] = "URL";
|
|
14
|
-
})(FingerprintSourceType || (exports.FingerprintSourceType = FingerprintSourceType = {}));
|
|
15
|
-
const FingerprintSourceSchema = joi_1.default.object({
|
|
16
|
-
type: joi_1.default.string()
|
|
17
|
-
.valid(...Object.values(FingerprintSourceType))
|
|
18
|
-
.required(),
|
|
19
|
-
isDebugFingerprint: joi_1.default.boolean(),
|
|
20
|
-
})
|
|
21
|
-
.when(joi_1.default.object({ type: FingerprintSourceType.GCS }).unknown(), {
|
|
22
|
-
then: joi_1.default.object({
|
|
23
|
-
type: joi_1.default.string().valid(FingerprintSourceType.GCS).required(),
|
|
24
|
-
bucketKey: joi_1.default.string().required(),
|
|
25
|
-
}),
|
|
26
|
-
})
|
|
27
|
-
.when(joi_1.default.object({ type: FingerprintSourceType.PATH }).unknown(), {
|
|
28
|
-
then: joi_1.default.object({
|
|
29
|
-
type: joi_1.default.string().valid(FingerprintSourceType.PATH).required(),
|
|
30
|
-
path: joi_1.default.string().required(),
|
|
31
|
-
}),
|
|
32
|
-
})
|
|
33
|
-
.when(joi_1.default.object({ type: FingerprintSourceType.URL }).unknown(), {
|
|
34
|
-
then: joi_1.default.object({
|
|
35
|
-
type: joi_1.default.string().valid(FingerprintSourceType.URL).required(),
|
|
36
|
-
url: joi_1.default.string().uri().required(),
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
9
|
exports.MetadataSchema = joi_1.default.object({
|
|
40
|
-
trackingContext: joi_1.default.object()
|
|
41
|
-
.pattern(joi_1.default.string(), [joi_1.default.string(), joi_1.default.number(), joi_1.default.boolean()])
|
|
42
|
-
.required(),
|
|
10
|
+
trackingContext: joi_1.default.object().pattern(joi_1.default.string(), [joi_1.default.string(), joi_1.default.number(), joi_1.default.boolean()]),
|
|
43
11
|
appVersion: joi_1.default.string(),
|
|
44
12
|
appBuildVersion: joi_1.default.string(),
|
|
45
13
|
cliVersion: joi_1.default.string(),
|
|
@@ -49,7 +17,6 @@ exports.MetadataSchema = joi_1.default.object({
|
|
|
49
17
|
sdkVersion: joi_1.default.string(),
|
|
50
18
|
runtimeVersion: joi_1.default.string(),
|
|
51
19
|
fingerprintHash: joi_1.default.string(),
|
|
52
|
-
fingerprintSource: FingerprintSourceSchema,
|
|
53
20
|
reactNativeVersion: joi_1.default.string(),
|
|
54
21
|
channel: joi_1.default.string(),
|
|
55
22
|
appName: joi_1.default.string(),
|
package/dist/metadata.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":";;;;;;AA2PA,4CAWC;AAtQD,8CAAsB;AAItB,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,oCAAa,CAAA;IACb,sCAAe,CAAA;IACf,oCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAsLD,MAAM,uBAAuB,GAAG,aAAG,CAAC,MAAM,CAAoB;IAC5D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;SACf,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,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,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IACnE,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC/B,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IACxB,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;IACxE,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IACxB,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;IAC3B,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE;IAC/B,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,aAAa,CAAC;CACxE,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,sBAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACzD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IACH,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,KAAK,CAAC;IACd,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport { Workflow } from './common';\n\nexport enum FingerprintSourceType {\n 'GCS' = 'GCS',\n 'PATH' = 'PATH',\n 'URL' = 'URL',\n}\n\nexport type FingerprintSource = { isDebugFingerprint?: boolean } & (\n | { type: FingerprintSourceType.GCS; bucketKey: string }\n | { type: FingerprintSourceType.PATH; path: string }\n | { type: FingerprintSourceType.URL; url: string }\n);\n\nexport type Metadata = {\n /**\n * Tracking context\n * It's used to track build process across different Expo services and tools.\n */\n trackingContext: Record<string, string | number | boolean>;\n\n /**\n * Application version:\n * - managed projects: expo.version in app.json/app.config.js\n * - generic projects:\n * * iOS: CFBundleShortVersionString in Info.plist\n * * Android: versionName in build.gradle\n */\n appVersion?: string;\n\n /**\n * Application build version:\n * - Android: version code\n * - iOS: build number\n */\n appBuildVersion?: string;\n\n /**\n * EAS CLI version\n */\n cliVersion?: string;\n\n /**\n * Build workflow\n * It's either 'generic' or 'managed'\n */\n workflow?: Workflow;\n\n /**\n * Credentials source\n * Credentials could be obtained either from credential.json or EAS servers.\n */\n credentialsSource?: 'local' | 'remote';\n\n /**\n * Expo SDK version\n * It's determined by the expo package version in package.json.\n * It's undefined if the expo package is not installed for the project.\n */\n sdkVersion?: string;\n\n /**\n * Runtime version (for Expo Updates)\n */\n runtimeVersion?: string;\n\n /**\n * Fingerprint hash of a project's native dependencies\n */\n fingerprintHash?: string;\n\n /**\n * The location of the fingerprint file if one exists\n */\n fingerprintSource?: FingerprintSource;\n\n /**\n * Version of the react-native package used in the project.\n */\n reactNativeVersion?: string;\n\n /**\n * Channel (for Expo Updates when it is configured for for use with EAS)\n * It's undefined if the expo-updates package is not configured for use with EAS.\n */\n channel?: string;\n\n /**\n * Distribution type\n * Indicates whether this is a build for store, internal distribution, or simulator (iOS).\n * simulator is deprecated, use simulator flag instead\n */\n distribution?: 'store' | 'internal' | 'simulator';\n\n /**\n * App name (expo.name in app.json/app.config.js)\n */\n appName?: string;\n\n /**\n * App identifier:\n * - iOS builds: the bundle identifier (expo.ios.bundleIdentifier in app.json/app.config.js)\n * - Android builds: the application id (expo.android.package in app.json/app.config.js)\n */\n appIdentifier?: string;\n\n /**\n * Build profile name (e.g. release)\n */\n buildProfile?: string;\n\n /**\n * Git commit hash (e.g. aab03fbdabb6e536ea78b28df91575ad488f5f21)\n */\n gitCommitHash?: string;\n\n /**\n * Git commit message\n */\n gitCommitMessage?: string;\n\n /**\n * State of the git working tree\n */\n isGitWorkingTreeDirty?: boolean;\n\n /**\n * Username of the initiating user\n */\n username?: string;\n\n /**\n * Indicates what type of an enterprise provisioning profile was used to build the app.\n * It's either adhoc or universal\n */\n iosEnterpriseProvisioning?: 'adhoc' | 'universal';\n\n /**\n * Message attached to the build.\n */\n message?: string;\n\n /**\n * Indicates whether the build was run from CI.\n */\n runFromCI?: boolean;\n\n /**\n * Indicates whether the build was run with --no-wait flag.\n */\n runWithNoWaitFlag?: boolean;\n\n /**\n * Workflow name available for custom builds.\n */\n customWorkflowName?: string;\n\n /**\n * Indicates whether this is (likely, we can't be 100% sure) development client build.\n */\n developmentClient?: boolean;\n\n /**\n * Which package manager will be used for the build. Determined based on lockfiles in the project directory.\n */\n requiredPackageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun';\n\n /**\n * Indicates if this is an iOS build for a simulator\n */\n simulator?: boolean;\n\n /**\n * Image selected by user for the build. If user didn't select any image and wants to use default for the given RN and SDK version it will undefined.\n */\n selectedImage?: string;\n\n /**\n * Custom node version selected by user for the build. If user didn't select any node version and wants to use default it will be undefined.\n */\n customNodeVersion?: string;\n\n /**\n * EAS env vars environment chosen for the job\n */\n environment?: 'production' | 'preview' | 'development';\n};\n\nconst FingerprintSourceSchema = Joi.object<FingerprintSource>({\n type: Joi.string()\n .valid(...Object.values(FingerprintSourceType))\n .required(),\n isDebugFingerprint: Joi.boolean(),\n})\n .when(Joi.object({ type: FingerprintSourceType.GCS }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(FingerprintSourceType.GCS).required(),\n bucketKey: Joi.string().required(),\n }),\n })\n .when(Joi.object({ type: FingerprintSourceType.PATH }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(FingerprintSourceType.PATH).required(),\n path: Joi.string().required(),\n }),\n })\n .when(Joi.object({ type: FingerprintSourceType.URL }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(FingerprintSourceType.URL).required(),\n url: Joi.string().uri().required(),\n }),\n });\n\nexport const MetadataSchema = Joi.object({\n trackingContext: Joi.object()\n .pattern(Joi.string(), [Joi.string(), Joi.number(), Joi.boolean()])\n .required(),\n appVersion: Joi.string(),\n appBuildVersion: Joi.string(),\n cliVersion: Joi.string(),\n workflow: Joi.string().valid('generic', 'managed'),\n distribution: Joi.string().valid('store', 'internal', 'simulator'),\n credentialsSource: Joi.string().valid('local', 'remote'),\n sdkVersion: Joi.string(),\n runtimeVersion: Joi.string(),\n fingerprintHash: Joi.string(),\n fingerprintSource: FingerprintSourceSchema,\n reactNativeVersion: Joi.string(),\n channel: Joi.string(),\n appName: Joi.string(),\n appIdentifier: Joi.string(),\n buildProfile: Joi.string(),\n gitCommitHash: Joi.string().length(40).hex(),\n gitCommitMessage: Joi.string().max(4096),\n isGitWorkingTreeDirty: Joi.boolean(),\n username: Joi.string(),\n iosEnterpriseProvisioning: Joi.string().valid('adhoc', 'universal'),\n message: Joi.string().max(1024),\n runFromCI: Joi.boolean(),\n runWithNoWaitFlag: Joi.boolean(),\n customWorkflowName: Joi.string(),\n developmentClient: Joi.boolean(),\n requiredPackageManager: Joi.string().valid('npm', 'pnpm', 'yarn', 'bun'),\n simulator: Joi.boolean(),\n selectedImage: Joi.string(),\n customNodeVersion: Joi.string(),\n environment: Joi.string().valid('production', 'preview', 'development'),\n});\n\nexport function sanitizeMetadata(metadata: object): Metadata {\n const { value, error } = MetadataSchema.validate(metadata, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n if (error) {\n throw error;\n } else {\n return value;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":";;;;;;AA8MA,4CAWC;AAzND,8CAAsB;AA6KT,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAG,CAAC,MAAM,E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AAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC/B,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IACxB,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;IACxE,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IACxB,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;IAC3B,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE;IAC/B,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,aAAa,CAAC;CACxE,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,sBAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACzD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IACH,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,KAAK,CAAC;IACd,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport { Workflow } from './common';\n\nexport type Metadata = {\n /**\n * Tracking context\n * It's used to track build process across different Expo services and tools.\n */\n trackingContext?: Record<string, string | number | boolean>;\n\n /**\n * Application version:\n * - managed projects: expo.version in app.json/app.config.js\n * - generic projects:\n * * iOS: CFBundleShortVersionString in Info.plist\n * * Android: versionName in build.gradle\n */\n appVersion?: string;\n\n /**\n * Application build version:\n * - Android: version code\n * - iOS: build number\n */\n appBuildVersion?: string;\n\n /**\n * EAS CLI version\n */\n cliVersion?: string;\n\n /**\n * Build workflow\n * It's either 'generic' or 'managed'\n */\n workflow?: Workflow;\n\n /**\n * Credentials source\n * Credentials could be obtained either from credential.json or EAS servers.\n */\n credentialsSource?: 'local' | 'remote';\n\n /**\n * Expo SDK version\n * It's determined by the expo package version in package.json.\n * It's undefined if the expo package is not installed for the project.\n */\n sdkVersion?: string;\n\n /**\n * Runtime version (for Expo Updates)\n */\n runtimeVersion?: string;\n\n /**\n * Fingerprint hash of a project's native dependencies\n */\n fingerprintHash?: string;\n\n /**\n * Version of the react-native package used in the project.\n */\n reactNativeVersion?: string;\n\n /**\n * Channel (for Expo Updates when it is configured for for use with EAS)\n * It's undefined if the expo-updates package is not configured for use with EAS.\n */\n channel?: string;\n\n /**\n * Distribution type\n * Indicates whether this is a build for store, internal distribution, or simulator (iOS).\n * simulator is deprecated, use simulator flag instead\n */\n distribution?: 'store' | 'internal' | 'simulator';\n\n /**\n * App name (expo.name in app.json/app.config.js)\n */\n appName?: string;\n\n /**\n * App identifier:\n * - iOS builds: the bundle identifier (expo.ios.bundleIdentifier in app.json/app.config.js)\n * - Android builds: the application id (expo.android.package in app.json/app.config.js)\n */\n appIdentifier?: string;\n\n /**\n * Build profile name (e.g. release)\n */\n buildProfile?: string;\n\n /**\n * Git commit hash (e.g. aab03fbdabb6e536ea78b28df91575ad488f5f21)\n */\n gitCommitHash?: string;\n\n /**\n * Git commit message\n */\n gitCommitMessage?: string;\n\n /**\n * State of the git working tree\n */\n isGitWorkingTreeDirty?: boolean;\n\n /**\n * Username of the initiating user\n */\n username?: string;\n\n /**\n * Indicates what type of an enterprise provisioning profile was used to build the app.\n * It's either adhoc or universal\n */\n iosEnterpriseProvisioning?: 'adhoc' | 'universal';\n\n /**\n * Message attached to the build.\n */\n message?: string;\n\n /**\n * Indicates whether the build was run from CI.\n */\n runFromCI?: boolean;\n\n /**\n * Indicates whether the build was run with --no-wait flag.\n */\n runWithNoWaitFlag?: boolean;\n\n /**\n * Workflow name available for custom builds.\n */\n customWorkflowName?: string;\n\n /**\n * Indicates whether this is (likely, we can't be 100% sure) development client build.\n */\n developmentClient?: boolean;\n\n /**\n * Which package manager will be used for the build. Determined based on lockfiles in the project directory.\n */\n requiredPackageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun';\n\n /**\n * Indicates if this is an iOS build for a simulator\n */\n simulator?: boolean;\n\n /**\n * Image selected by user for the build. If user didn't select any image and wants to use default for the given RN and SDK version it will undefined.\n */\n selectedImage?: string;\n\n /**\n * Custom node version selected by user for the build. If user didn't select any node version and wants to use default it will be undefined.\n */\n customNodeVersion?: string;\n\n /**\n * EAS env vars environment chosen for the job\n */\n environment?: 'production' | 'preview' | 'development';\n};\n\nexport const MetadataSchema = Joi.object({\n trackingContext: Joi.object().pattern(Joi.string(), [Joi.string(), Joi.number(), Joi.boolean()]),\n appVersion: Joi.string(),\n appBuildVersion: Joi.string(),\n cliVersion: Joi.string(),\n workflow: Joi.string().valid('generic', 'managed'),\n distribution: Joi.string().valid('store', 'internal', 'simulator'),\n credentialsSource: Joi.string().valid('local', 'remote'),\n sdkVersion: Joi.string(),\n runtimeVersion: Joi.string(),\n fingerprintHash: Joi.string(),\n reactNativeVersion: Joi.string(),\n channel: Joi.string(),\n appName: Joi.string(),\n appIdentifier: Joi.string(),\n buildProfile: Joi.string(),\n gitCommitHash: Joi.string().length(40).hex(),\n gitCommitMessage: Joi.string().max(4096),\n isGitWorkingTreeDirty: Joi.boolean(),\n username: Joi.string(),\n iosEnterpriseProvisioning: Joi.string().valid('adhoc', 'universal'),\n message: Joi.string().max(1024),\n runFromCI: Joi.boolean(),\n runWithNoWaitFlag: Joi.boolean(),\n customWorkflowName: Joi.string(),\n developmentClient: Joi.boolean(),\n requiredPackageManager: Joi.string().valid('npm', 'pnpm', 'yarn', 'bun'),\n simulator: Joi.boolean(),\n selectedImage: Joi.string(),\n customNodeVersion: Joi.string(),\n environment: Joi.string().valid('production', 'preview', 'development'),\n});\n\nexport function sanitizeMetadata(metadata: object): Metadata {\n const { value, error } = MetadataSchema.validate(metadata, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n if (error) {\n throw error;\n } else {\n return value;\n }\n}\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.231",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"node": "20.14.0",
|
|
36
36
|
"yarn": "1.22.21"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c466db5ad8520a8b93d34f5d3f6a4187c7496b73"
|
|
39
39
|
}
|