@expo/eas-json
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -42,3 +42,3 @@ import { Android, Cache, Ios, Workflow } from '@expo/eas-build-job'; | ||
scheme?: string; | ||
schemeBuildConfiguration?: Ios.SchemeBuildConfiguration; | ||
schemeBuildConfiguration?: Ios.SchemeBuildConfiguration | 'Auto'; | ||
releaseChannel?: string; | ||
@@ -49,2 +49,3 @@ artifactPath?: string; | ||
cache: Cache | null; | ||
disableIosBundleIdentifierValidation?: boolean; | ||
} | ||
@@ -51,0 +52,0 @@ export declare type AndroidBuildProfile = AndroidManagedBuildProfile | AndroidGenericBuildProfile; |
import { Workflow } from '@expo/eas-build-job'; | ||
import { EasConfig } from './Config.types'; | ||
interface EasJson { | ||
experimental?: { | ||
disableIosBundleIdentifierValidation?: boolean; | ||
}; | ||
builds: { | ||
@@ -5,0 +8,0 @@ android?: { |
@@ -15,3 +15,3 @@ "use strict"; | ||
async readAsync(buildProfileName) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const easJson = await this.readRawAsync(); | ||
@@ -26,4 +26,8 @@ let androidConfig; | ||
} | ||
const iosExperimental = ((_c = easJson.experimental) === null || _c === void 0 ? void 0 : _c.disableIosBundleIdentifierValidation) ? { | ||
disableIosBundleIdentifierValidation: easJson.experimental.disableIosBundleIdentifierValidation, | ||
} | ||
: {}; | ||
return { | ||
builds: Object.assign(Object.assign({}, (androidConfig ? { android: androidConfig } : {})), (iosConfig ? { ios: iosConfig } : {})), | ||
builds: Object.assign(Object.assign({}, (androidConfig ? { android: androidConfig } : {})), (iosConfig ? { ios: Object.assign(Object.assign({}, iosConfig), iosExperimental) } : {})), | ||
}; | ||
@@ -30,0 +34,0 @@ } |
@@ -69,3 +69,3 @@ "use strict"; | ||
scheme: joi_1.default.string(), | ||
schemeBuildConfiguration: joi_1.default.string().valid('Debug', 'Release'), | ||
schemeBuildConfiguration: joi_1.default.string().valid('Debug', 'Release', 'Auto').default('Release'), | ||
releaseChannel: joi_1.default.string(), | ||
@@ -102,2 +102,5 @@ artifactPath: joi_1.default.string(), | ||
const EasJsonSchema = joi_1.default.object({ | ||
experimental: joi_1.default.object({ | ||
disableIosBundleIdentifierValidation: joi_1.default.boolean(), | ||
}), | ||
builds: joi_1.default.object({ | ||
@@ -104,0 +107,0 @@ android: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.object({ |
{ | ||
"name": "@expo/eas-json", | ||
"description": "A library for interacting with the eas.json", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"author": "Expo <support@expo.io>", | ||
"bugs": "https://github.com/expo/eas-cli/issues", | ||
"dependencies": { | ||
"@expo/eas-build-job": "0.2.14", | ||
"@expo/eas-build-job": "0.2.16", | ||
"@hapi/joi": "^17.1.1", | ||
@@ -41,3 +41,3 @@ "fs-extra": "^9.0.1", | ||
}, | ||
"gitHead": "dd85d559d74e3dcbe797886477e727b5a0b93bc4" | ||
"gitHead": "7b202f2aa74f0670d1089f71f7cfeef184d38db6" | ||
} |
@@ -60,2 +60,3 @@ import fs from 'fs-extra'; | ||
image: 'default', | ||
schemeBuildConfiguration: 'Release', | ||
}, | ||
@@ -99,2 +100,3 @@ }, | ||
image: 'default', | ||
schemeBuildConfiguration: 'Release', | ||
}, | ||
@@ -101,0 +103,0 @@ }, |
@@ -49,3 +49,3 @@ import { Android, Cache, Ios, Workflow } from '@expo/eas-build-job'; | ||
scheme?: string; | ||
schemeBuildConfiguration?: Ios.SchemeBuildConfiguration; | ||
schemeBuildConfiguration?: Ios.SchemeBuildConfiguration | 'Auto'; | ||
releaseChannel?: string; | ||
@@ -56,2 +56,3 @@ artifactPath?: string; | ||
cache: Cache | null; | ||
disableIosBundleIdentifierValidation?: boolean; | ||
} | ||
@@ -58,0 +59,0 @@ |
@@ -9,2 +9,5 @@ import { Platform, Workflow } from '@expo/eas-build-job'; | ||
interface EasJson { | ||
experimental?: { | ||
disableIosBundleIdentifierValidation?: boolean; | ||
}; | ||
builds: { | ||
@@ -43,6 +46,12 @@ android?: { [key: string]: BuildProfilePreValidation }; | ||
} | ||
const iosExperimental = easJson.experimental?.disableIosBundleIdentifierValidation | ||
? { | ||
disableIosBundleIdentifierValidation: | ||
easJson.experimental.disableIosBundleIdentifierValidation, | ||
} | ||
: {}; | ||
return { | ||
builds: { | ||
...(androidConfig ? { android: androidConfig } : {}), | ||
...(iosConfig ? { ios: iosConfig } : {}), | ||
...(iosConfig ? { ios: { ...iosConfig, ...iosExperimental } } : {}), | ||
}, | ||
@@ -49,0 +58,0 @@ }; |
@@ -71,3 +71,3 @@ import { Android, Ios } from '@expo/eas-build-job'; | ||
scheme: Joi.string(), | ||
schemeBuildConfiguration: Joi.string().valid('Debug', 'Release'), | ||
schemeBuildConfiguration: Joi.string().valid('Debug', 'Release', 'Auto').default('Release'), | ||
releaseChannel: Joi.string(), | ||
@@ -106,2 +106,5 @@ artifactPath: Joi.string(), | ||
const EasJsonSchema = Joi.object({ | ||
experimental: Joi.object({ | ||
disableIosBundleIdentifierValidation: Joi.boolean(), | ||
}), | ||
builds: Joi.object({ | ||
@@ -108,0 +111,0 @@ android: Joi.object().pattern( |
43297
1099
+ Added@expo/eas-build-job@0.2.16(transitive)
- Removed@expo/eas-build-job@0.2.14(transitive)
Updated@expo/eas-build-job@0.2.16