eas-cli 3.2.1 → 3.3.1
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/README.md +61 -104
- package/build/build/runBuildAndSubmit.d.ts +2 -2
- package/build/build/runBuildAndSubmit.js +40 -16
- package/build/build/types.d.ts +0 -9
- package/build/build/types.js +1 -11
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -0
- package/build/commands/build/index.d.ts +2 -2
- package/build/commands/build/index.js +6 -10
- package/build/commands/project/init.js +1 -1
- package/build/graphql/generated.d.ts +401 -25
- package/build/graphql/generated.js +25 -3
- package/build/project/projectUtils.js +2 -0
- package/build/user/User.js +2 -0
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/build/build/types.d.ts
CHANGED
|
@@ -11,12 +11,3 @@ export declare enum BuildDistributionType {
|
|
|
11
11
|
INTERNAL = "internal",
|
|
12
12
|
SIMULATOR = "simulator"
|
|
13
13
|
}
|
|
14
|
-
export declare enum UserInputResourceClass {
|
|
15
|
-
DEFAULT = "default",
|
|
16
|
-
LARGE = "large",
|
|
17
|
-
/**
|
|
18
|
-
* @experimental
|
|
19
|
-
* This resource class is not yet ready to be used in production. For testing purposes only. Might be deprecated / deleted at any time.
|
|
20
|
-
*/
|
|
21
|
-
M1_EXPERIMENTAL = "m1-experimental"
|
|
22
|
-
}
|
package/build/build/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BuildDistributionType = exports.BuildStatus = void 0;
|
|
4
4
|
var BuildStatus;
|
|
5
5
|
(function (BuildStatus) {
|
|
6
6
|
BuildStatus["NEW"] = "new";
|
|
@@ -16,13 +16,3 @@ var BuildDistributionType;
|
|
|
16
16
|
BuildDistributionType["INTERNAL"] = "internal";
|
|
17
17
|
BuildDistributionType["SIMULATOR"] = "simulator";
|
|
18
18
|
})(BuildDistributionType = exports.BuildDistributionType || (exports.BuildDistributionType = {}));
|
|
19
|
-
var UserInputResourceClass;
|
|
20
|
-
(function (UserInputResourceClass) {
|
|
21
|
-
UserInputResourceClass["DEFAULT"] = "default";
|
|
22
|
-
UserInputResourceClass["LARGE"] = "large";
|
|
23
|
-
/**
|
|
24
|
-
* @experimental
|
|
25
|
-
* This resource class is not yet ready to be used in production. For testing purposes only. Might be deprecated / deleted at any time.
|
|
26
|
-
*/
|
|
27
|
-
UserInputResourceClass["M1_EXPERIMENTAL"] = "m1-experimental";
|
|
28
|
-
})(UserInputResourceClass = exports.UserInputResourceClass || (exports.UserInputResourceClass = {}));
|
|
@@ -89,6 +89,8 @@ async function getProjectIdAsync(sessionManager, exp, options) {
|
|
|
89
89
|
return user.username;
|
|
90
90
|
case 'Robot':
|
|
91
91
|
throw new Error('The "owner" manifest property is required when using robot users. See: https://docs.expo.dev/versions/latest/config/app/#owner');
|
|
92
|
+
case 'SSOUser':
|
|
93
|
+
throw new Error('SSO users are not supported yet.');
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
96
|
const projectId = await (0, fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync_1.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync)(graphqlClient, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResourceClass } from '@expo/eas-json';
|
|
2
2
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
3
|
export default class Build extends EasCommand {
|
|
4
4
|
static description: string;
|
|
@@ -15,7 +15,7 @@ export default class Build extends EasCommand {
|
|
|
15
15
|
'clear-cache': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
'auto-submit': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
'auto-submit-with-profile': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
18
|
-
'resource-class': import("@oclif/core/lib/interfaces").OptionFlag<
|
|
18
|
+
'resource-class': import("@oclif/core/lib/interfaces").OptionFlag<ResourceClass | undefined>;
|
|
19
19
|
message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
20
20
|
};
|
|
21
21
|
static contextDefinition: {
|
|
@@ -11,7 +11,6 @@ const figures_1 = tslib_1.__importDefault(require("figures"));
|
|
|
11
11
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
12
12
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
13
13
|
const runBuildAndSubmit_1 = require("../../build/runBuildAndSubmit");
|
|
14
|
-
const types_1 = require("../../build/types");
|
|
15
14
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
16
15
|
const flags_1 = require("../../commandUtils/flags");
|
|
17
16
|
const generated_1 = require("../../graphql/generated");
|
|
@@ -41,7 +40,7 @@ class Build extends EasCommand_1.default {
|
|
|
41
40
|
await (0, runBuildAndSubmit_1.runBuildAndSubmitAsync)(graphqlClient, analytics, projectDir, flagsWithPlatform, actor, getDynamicProjectConfigAsync);
|
|
42
41
|
}
|
|
43
42
|
sanitizeFlags(flags) {
|
|
44
|
-
var _b
|
|
43
|
+
var _b;
|
|
45
44
|
const nonInteractive = flags['non-interactive'];
|
|
46
45
|
if (!flags.local && flags.output) {
|
|
47
46
|
core_1.Errors.error('--output is allowed only for local builds', { exit: 1 });
|
|
@@ -52,12 +51,6 @@ class Build extends EasCommand_1.default {
|
|
|
52
51
|
if (flags.json && !nonInteractive) {
|
|
53
52
|
core_1.Errors.error('--json is allowed only when building in non-interactive mode', { exit: 1 });
|
|
54
53
|
}
|
|
55
|
-
if (flags['resource-class'] === types_1.UserInputResourceClass.M1_EXPERIMENTAL &&
|
|
56
|
-
flags.platform !== eas_build_job_1.Platform.IOS) {
|
|
57
|
-
core_1.Errors.error(`Resource class ${types_1.UserInputResourceClass.M1_EXPERIMENTAL} is only available for iOS builds`, {
|
|
58
|
-
exit: 1,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
54
|
const requestedPlatform = flags.platform &&
|
|
62
55
|
Object.values(platform_1.RequestedPlatform).includes(flags.platform.toLowerCase())
|
|
63
56
|
? flags.platform.toLowerCase()
|
|
@@ -93,7 +86,7 @@ class Build extends EasCommand_1.default {
|
|
|
93
86
|
json: flags['json'],
|
|
94
87
|
autoSubmit: flags['auto-submit'] || flags['auto-submit-with-profile'] !== undefined,
|
|
95
88
|
submitProfile: (_b = flags['auto-submit-with-profile']) !== null && _b !== void 0 ? _b : profile,
|
|
96
|
-
|
|
89
|
+
resourceClass: flags['resource-class'],
|
|
97
90
|
message,
|
|
98
91
|
};
|
|
99
92
|
}
|
|
@@ -167,8 +160,11 @@ Build.flags = {
|
|
|
167
160
|
exclusive: ['auto-submit'],
|
|
168
161
|
}),
|
|
169
162
|
'resource-class': core_1.Flags.enum({
|
|
170
|
-
options: Object.values(
|
|
163
|
+
options: Object.values(eas_json_1.ResourceClass),
|
|
171
164
|
hidden: true,
|
|
165
|
+
deprecated: {
|
|
166
|
+
message: chalk_1.default.yellow('The --resource-class flag has been deprecated. Define the resource class in eas.json.\nLearn more: https://docs.expo.dev/build-reference/eas-json/'),
|
|
167
|
+
},
|
|
172
168
|
description: 'The instance type that will be used to run this build [experimental]',
|
|
173
169
|
}),
|
|
174
170
|
message: core_1.Flags.string({
|
|
@@ -154,7 +154,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
154
154
|
// if regular user, put primary account first
|
|
155
155
|
const sortedAccounts = actor.__typename === 'Robot'
|
|
156
156
|
? allAccounts
|
|
157
|
-
: [...allAccounts].sort((a, _b) => (a.name === actor.username ? -1 : 1));
|
|
157
|
+
: [...allAccounts].sort((a, _b) => actor.__typename === 'User' ? (a.name === actor.username ? -1 : 1) : 0);
|
|
158
158
|
const choices = sortedAccounts.map(account => ({
|
|
159
159
|
title: account.name,
|
|
160
160
|
value: account,
|