@expo/eas-json 3.6.1 → 3.8.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.
@@ -14,6 +14,8 @@ const AllowedIosResourceClasses = [
14
14
  ...AllowedCommonResourceClasses,
15
15
  types_1.ResourceClass.M1_MEDIUM,
16
16
  types_1.ResourceClass.INTEL_MEDIUM,
17
+ types_1.ResourceClass.M_MEDIUM,
18
+ types_1.ResourceClass.M_LARGE,
17
19
  ];
18
20
  const CacheSchema = joi_1.default.object({
19
21
  disabled: joi_1.default.boolean(),
@@ -22,52 +24,67 @@ const CacheSchema = joi_1.default.object({
22
24
  customPaths: joi_1.default.array().items(joi_1.default.string()),
23
25
  });
24
26
  const CommonBuildProfileSchema = joi_1.default.object({
27
+ // builder
28
+ resourceClass: joi_1.default.string().valid(...AllowedCommonResourceClasses),
29
+ // build environment
30
+ env: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string().empty(null)),
31
+ node: joi_1.default.string().empty(null).custom(semverCheck),
32
+ yarn: joi_1.default.string().empty(null).custom(semverCheck),
33
+ expoCli: joi_1.default.string().empty(null).custom(semverCheck),
34
+ // credentials
25
35
  credentialsSource: joi_1.default.string().valid('local', 'remote').default('remote'),
26
36
  distribution: joi_1.default.string().valid('store', 'internal').default('store'),
27
- cache: CacheSchema,
37
+ // updates
28
38
  releaseChannel: joi_1.default.string().regex(/^[a-z\d][a-z\d._-]*$/),
29
39
  channel: joi_1.default.string().regex(/^[a-z\d][a-z\d._-]*$/),
40
+ // build configuration
30
41
  developmentClient: joi_1.default.boolean(),
31
42
  prebuildCommand: joi_1.default.string(),
32
- buildArtifactPaths: joi_1.default.array().items(joi_1.default.string()),
33
- node: joi_1.default.string().empty(null).custom(semverCheck),
34
- yarn: joi_1.default.string().empty(null).custom(semverCheck),
35
- expoCli: joi_1.default.string().empty(null).custom(semverCheck),
36
- env: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string().empty(null)),
43
+ // versions
37
44
  autoIncrement: joi_1.default.alternatives().try(joi_1.default.boolean()),
38
- resourceClass: joi_1.default.string().valid(...AllowedCommonResourceClasses),
45
+ // artifacts
46
+ buildArtifactPaths: joi_1.default.array().items(joi_1.default.string()),
47
+ // cache
48
+ cache: CacheSchema,
49
+ // custom build configuration
50
+ config: joi_1.default.string(),
39
51
  });
40
- const AndroidBuildProfileSchema = CommonBuildProfileSchema.concat(joi_1.default.object({
41
- credentialsSource: joi_1.default.string().valid('local', 'remote'),
42
- distribution: joi_1.default.string().valid('store', 'internal'),
43
- withoutCredentials: joi_1.default.boolean(),
52
+ const PlatformBuildProfileSchema = CommonBuildProfileSchema.concat(joi_1.default.object({
53
+ // build environment
44
54
  image: joi_1.default.string(),
45
- ndk: joi_1.default.string().empty(null).custom(semverCheck),
46
- autoIncrement: joi_1.default.alternatives().try(joi_1.default.boolean(), joi_1.default.string().valid('version', 'versionCode')),
47
- resourceClass: joi_1.default.string().valid(...AllowedAndroidResourceClasses),
55
+ // artifacts
48
56
  artifactPath: joi_1.default.string(),
49
57
  applicationArchivePath: joi_1.default.string(),
50
- buildArtifactPaths: joi_1.default.array().items(joi_1.default.string()),
58
+ }).oxor('artifactPath', 'applicationArchivePath'));
59
+ const AndroidBuildProfileSchema = PlatformBuildProfileSchema.concat(joi_1.default.object({
60
+ // builder
61
+ resourceClass: joi_1.default.string().valid(...AllowedAndroidResourceClasses),
62
+ // build environment
63
+ ndk: joi_1.default.string().empty(null).custom(semverCheck),
64
+ // credentials
65
+ withoutCredentials: joi_1.default.boolean(),
66
+ // build configuration
51
67
  gradleCommand: joi_1.default.string(),
52
68
  buildType: joi_1.default.string().valid('apk', 'app-bundle'),
53
- }).oxor('artifactPath', 'applicationArchivePath'));
54
- const IosBuildProfileSchema = CommonBuildProfileSchema.concat(joi_1.default.object({
55
- credentialsSource: joi_1.default.string().valid('local', 'remote'),
56
- distribution: joi_1.default.string().valid('store', 'internal'),
57
- enterpriseProvisioning: joi_1.default.string().valid('adhoc', 'universal'),
58
- autoIncrement: joi_1.default.alternatives().try(joi_1.default.boolean(), joi_1.default.string().valid('version', 'buildNumber')),
59
- simulator: joi_1.default.boolean(),
69
+ // versions
70
+ autoIncrement: joi_1.default.alternatives().try(joi_1.default.boolean(), joi_1.default.string().valid('version', 'versionCode')),
71
+ }));
72
+ const IosBuildProfileSchema = PlatformBuildProfileSchema.concat(joi_1.default.object({
73
+ // builder
60
74
  resourceClass: joi_1.default.string().valid(...AllowedIosResourceClasses),
61
- image: joi_1.default.string(),
75
+ // build environment
62
76
  bundler: joi_1.default.string().empty(null).custom(semverCheck),
63
77
  fastlane: joi_1.default.string().empty(null).custom(semverCheck),
64
78
  cocoapods: joi_1.default.string().empty(null).custom(semverCheck),
65
- artifactPath: joi_1.default.string(),
66
- applicationArchivePath: joi_1.default.string(),
67
- buildArtifactPaths: joi_1.default.array().items(joi_1.default.string()),
79
+ // credentials
80
+ enterpriseProvisioning: joi_1.default.string().valid('adhoc', 'universal'),
81
+ // build configuration
82
+ simulator: joi_1.default.boolean(),
68
83
  scheme: joi_1.default.string(),
69
84
  buildConfiguration: joi_1.default.string(),
70
- }).oxor('artifactPath', 'applicationArchivePath'));
85
+ // versions
86
+ autoIncrement: joi_1.default.alternatives().try(joi_1.default.boolean(), joi_1.default.string().valid('version', 'buildNumber')),
87
+ }));
71
88
  exports.BuildProfileSchema = CommonBuildProfileSchema.concat(joi_1.default.object({
72
89
  extends: joi_1.default.string(),
73
90
  android: AndroidBuildProfileSchema,
@@ -7,15 +7,21 @@ export declare enum ResourceClass {
7
7
  DEFAULT = "default",
8
8
  LARGE = "large",
9
9
  /**
10
- * @deprecated use M1_MEDIUM instead
11
- * @experimental
12
- * This resource class is not yet ready to be used in production. For testing purposes only. Might be deprecated / deleted at any time.
10
+ * @deprecated use M_MEDIUM instead
13
11
  */
14
12
  M1_EXPERIMENTAL = "m1-experimental",
13
+ /**
14
+ * @deprecated use M_MEDIUM instead
15
+ */
15
16
  M1_MEDIUM = "m1-medium",
17
+ /**
18
+ * @deprecated use M_LARGE instead
19
+ */
16
20
  M1_LARGE = "m1-large",
17
21
  INTEL_MEDIUM = "intel-medium",
18
- MEDIUM = "medium"
22
+ MEDIUM = "medium",
23
+ M_MEDIUM = "m-medium",
24
+ M_LARGE = "m-large"
19
25
  }
20
26
  export type DistributionType = 'store' | 'internal';
21
27
  export type IosEnterpriseProvisioning = 'adhoc' | 'universal';
@@ -23,49 +29,47 @@ export type VersionAutoIncrement = boolean | 'version';
23
29
  export type IosVersionAutoIncrement = VersionAutoIncrement | 'buildNumber';
24
30
  export type AndroidVersionAutoIncrement = VersionAutoIncrement | 'versionCode';
25
31
  export interface CommonBuildProfile {
32
+ resourceClass?: ResourceClass;
33
+ env?: Record<string, string>;
34
+ node?: string;
35
+ yarn?: string;
36
+ expoCli?: string;
26
37
  credentialsSource: CredentialsSource;
27
38
  distribution: DistributionType;
28
- cache?: Omit<Cache, 'clear'>;
29
39
  releaseChannel?: string;
30
40
  channel?: string;
31
41
  developmentClient?: boolean;
32
42
  prebuildCommand?: string;
33
43
  autoIncrement?: boolean;
34
- resourceClass?: ResourceClass;
35
44
  buildArtifactPaths?: string[];
36
- node?: string;
37
- yarn?: string;
38
- expoCli?: string;
39
- env?: Record<string, string>;
45
+ cache?: Omit<Cache, 'clear'>;
46
+ config?: string;
40
47
  }
41
- export interface AndroidBuildProfile extends Omit<CommonBuildProfile, 'autoIncrement'> {
42
- withoutCredentials?: boolean;
43
- image?: Android.BuilderEnvironment['image'];
44
- ndk?: string;
45
- autoIncrement?: AndroidVersionAutoIncrement;
46
- buildType?: Android.BuildType.APK | Android.BuildType.APP_BUNDLE;
47
- gradleCommand?: string;
48
+ interface PlatformBuildProfile extends Omit<CommonBuildProfile, 'autoIncrement'> {
48
49
  /**
49
50
  * @deprecated use applicationArchivePath
50
51
  */
51
52
  artifactPath?: string;
52
53
  applicationArchivePath?: string;
53
54
  }
54
- export interface IosBuildProfile extends Omit<CommonBuildProfile, 'autoIncrement'> {
55
- enterpriseProvisioning?: IosEnterpriseProvisioning;
56
- autoIncrement?: IosVersionAutoIncrement;
57
- simulator?: boolean;
55
+ export interface AndroidBuildProfile extends PlatformBuildProfile {
56
+ image?: Android.BuilderEnvironment['image'];
57
+ ndk?: string;
58
+ withoutCredentials?: boolean;
59
+ gradleCommand?: string;
60
+ buildType?: Android.BuildType.APK | Android.BuildType.APP_BUNDLE;
61
+ autoIncrement?: AndroidVersionAutoIncrement;
62
+ }
63
+ export interface IosBuildProfile extends PlatformBuildProfile {
58
64
  image?: Ios.BuilderEnvironment['image'];
59
65
  bundler?: string;
60
66
  fastlane?: string;
61
67
  cocoapods?: string;
62
- /**
63
- * @deprecated use applicationArchivePath
64
- */
65
- artifactPath?: string;
66
- applicationArchivePath?: string;
68
+ enterpriseProvisioning?: IosEnterpriseProvisioning;
69
+ simulator?: boolean;
67
70
  scheme?: string;
68
71
  buildConfiguration?: string;
72
+ autoIncrement?: IosVersionAutoIncrement;
69
73
  }
70
74
  export type BuildProfile<TPlatform extends Platform = Platform> = TPlatform extends Platform.ANDROID ? AndroidBuildProfile : IosBuildProfile;
71
75
  export interface EasJsonBuildProfile extends Partial<CommonBuildProfile> {
@@ -73,3 +77,4 @@ export interface EasJsonBuildProfile extends Partial<CommonBuildProfile> {
73
77
  [Platform.ANDROID]?: Partial<AndroidBuildProfile>;
74
78
  [Platform.IOS]?: Partial<IosBuildProfile>;
75
79
  }
80
+ export {};
@@ -12,13 +12,19 @@ var ResourceClass;
12
12
  ResourceClass["DEFAULT"] = "default";
13
13
  ResourceClass["LARGE"] = "large";
14
14
  /**
15
- * @deprecated use M1_MEDIUM instead
16
- * @experimental
17
- * This resource class is not yet ready to be used in production. For testing purposes only. Might be deprecated / deleted at any time.
15
+ * @deprecated use M_MEDIUM instead
18
16
  */
19
17
  ResourceClass["M1_EXPERIMENTAL"] = "m1-experimental";
18
+ /**
19
+ * @deprecated use M_MEDIUM instead
20
+ */
20
21
  ResourceClass["M1_MEDIUM"] = "m1-medium";
22
+ /**
23
+ * @deprecated use M_LARGE instead
24
+ */
21
25
  ResourceClass["M1_LARGE"] = "m1-large";
22
26
  ResourceClass["INTEL_MEDIUM"] = "intel-medium";
23
27
  ResourceClass["MEDIUM"] = "medium";
28
+ ResourceClass["M_MEDIUM"] = "m-medium";
29
+ ResourceClass["M_LARGE"] = "m-large";
24
30
  })(ResourceClass = exports.ResourceClass || (exports.ResourceClass = {}));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@expo/eas-json",
3
3
  "description": "A library for interacting with eas.json",
4
- "version": "3.6.1",
4
+ "version": "3.8.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bugs": "https://github.com/expo/eas-cli/issues",
7
7
  "dependencies": {
8
8
  "@babel/code-frame": "7.18.6",
9
- "@expo/eas-build-job": "0.2.102",
9
+ "@expo/eas-build-job": "0.2.106",
10
10
  "chalk": "4.1.2",
11
11
  "env-string": "1.0.1",
12
12
  "fs-extra": "10.1.0",
@@ -51,5 +51,5 @@
51
51
  "node": "18.6.0",
52
52
  "yarn": "1.22.19"
53
53
  },
54
- "gitHead": "ce954cdecca8423f5867db6626155553f538b456"
54
+ "gitHead": "843ec7407b3bfec8ea3e97b5ae9d8f0873d5881f"
55
55
  }