eas-cli 24.8.0 → 24.10.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/README.md +249 -204
- package/build/commandUtils/workflow/validation.js +11 -2
- package/build/commands/simulator/events.js +4 -2
- package/build/commands/simulator/get.js +1 -0
- package/build/commands/simulator/index.d.ts +2 -0
- package/build/commands/simulator/index.js +36 -10
- package/build/commands/simulator/list.js +4 -2
- package/build/commands/submit/internal.d.ts +4 -1
- package/build/commands/submit/internal.js +20 -2
- package/build/commands/update/index.d.ts +2 -0
- package/build/commands/update/index.js +45 -4
- package/build/commands/update/republish.d.ts +1 -0
- package/build/commands/update/republish.js +6 -0
- package/build/commands/update/roll-back-to-embedded.d.ts +1 -0
- package/build/commands/update/roll-back-to-embedded.js +7 -1
- package/build/commands/update/rollback.d.ts +1 -0
- package/build/commands/update/rollback.js +11 -3
- package/build/commands/workflow/validate.js +1 -0
- package/build/graphql/generated.d.ts +193 -19
- package/build/graphql/generated.js +30 -3
- package/build/ora.js +12 -2
- package/build/project/maybeUploadSourceMapsAsync.d.ts +34 -0
- package/build/project/maybeUploadSourceMapsAsync.js +156 -0
- package/build/simulator/egress.d.ts +11 -4
- package/build/simulator/egress.js +72 -10
- package/build/simulator/env.d.ts +1 -0
- package/build/simulator/env.js +4 -1
- package/build/simulator/networkCapture.d.ts +7 -0
- package/build/simulator/networkCapture.js +22 -0
- package/build/simulator/utils.d.ts +15 -5
- package/build/simulator/utils.js +33 -11
- package/build/update/active-rollout.d.ts +8 -0
- package/build/update/active-rollout.js +82 -0
- package/build/update/republish.d.ts +4 -1
- package/build/update/republish.js +13 -3
- package/build/update/roll-back-to-embedded.d.ts +4 -1
- package/build/update/roll-back-to-embedded.js +14 -3
- package/build/uploads.js +5 -1
- package/build/user/expoBrowserAuthFlowLauncher.js +0 -1
- package/oclif.manifest.json +334 -262
- package/package.json +5 -5
|
@@ -85,7 +85,8 @@ async function validateWorkflowOnServerAsync(graphqlClient, projectId, workflowF
|
|
|
85
85
|
}
|
|
86
86
|
async function validateWorkflowBuildJobsAsync(parsedYaml, projectDir) {
|
|
87
87
|
const jobs = jobsFromWorkflow(parsedYaml);
|
|
88
|
-
|
|
88
|
+
// `profile` is optional (e.g. on `repack`), so only jobs that set one can be checked against eas.json.
|
|
89
|
+
const buildJobs = jobs.filter(job => jobTypesWithBuildProfile.has(job.value.type) && typeof job.value.params?.profile === 'string');
|
|
89
90
|
if (buildJobs.length === 0) {
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
@@ -103,6 +104,11 @@ async function validateWorkflowBuildJobsAsync(parsedYaml, projectDir) {
|
|
|
103
104
|
function validateWorkflowJobTypes(parsedYaml, workflowJsonSchema) {
|
|
104
105
|
const jobs = jobsFromWorkflow(parsedYaml);
|
|
105
106
|
const jobTypes = jobTypesFromWorkflowSchema(workflowJsonSchema);
|
|
107
|
+
if (jobTypes.length === 0) {
|
|
108
|
+
// The schema no longer lists job types where we expect them; leave job validation to the schema.
|
|
109
|
+
log_1.default.debug('No job types found in the workflow schema, skipping job type validation.');
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
106
112
|
const invalidJobs = jobs.filter(job => job.value.type && !jobTypes.includes(job.value.type));
|
|
107
113
|
if (invalidJobs.length > 0) {
|
|
108
114
|
throw new Error(`The following jobs have invalid types: ${invalidJobs
|
|
@@ -163,5 +169,8 @@ function jobsFromWorkflow(parsedYaml) {
|
|
|
163
169
|
});
|
|
164
170
|
}
|
|
165
171
|
function jobTypesFromWorkflowSchema(workflowJsonSchema) {
|
|
166
|
-
|
|
172
|
+
// Not every job variant has a `type` (e.g. a job that calls a reusable workflow with `uses`).
|
|
173
|
+
return (workflowJsonSchema?.properties?.jobs?.additionalProperties?.anyOf ?? [])
|
|
174
|
+
.map((props) => props?.properties?.type?.const)
|
|
175
|
+
.filter((jobType) => typeof jobType === 'string');
|
|
167
176
|
}
|
|
@@ -89,8 +89,10 @@ class SimulatorEvents extends EasCommand_1.default {
|
|
|
89
89
|
(0, json_1.printJsonOnlyOutput)({ deviceRunSessionId, events });
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// Any status that isn't final counts as running, so statuses added later (such as queued
|
|
93
|
+
// and starting) keep follow mode going.
|
|
94
|
+
const isRunning = session.status !== generated_1.DeviceRunSessionStatus.Stopped &&
|
|
95
|
+
session.status !== generated_1.DeviceRunSessionStatus.Errored;
|
|
94
96
|
if (isRunning) {
|
|
95
97
|
observedRunningSession = true;
|
|
96
98
|
remainingPostStopRefreshes = 0;
|
|
@@ -79,6 +79,7 @@ class SimulatorGet extends EasCommand_1.default {
|
|
|
79
79
|
if (session.remoteConfig) {
|
|
80
80
|
log_1.default.log((0, utils_1.formatRemoteSessionInstructions)(session.remoteConfig, 'env', {
|
|
81
81
|
sessionUrl: deviceRunSessionUrl,
|
|
82
|
+
platform: session.platform,
|
|
82
83
|
}));
|
|
83
84
|
}
|
|
84
85
|
else {
|
|
@@ -19,6 +19,8 @@ export default class Simulator extends EasCommand {
|
|
|
19
19
|
'open-url': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
20
20
|
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
21
21
|
'package-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
22
|
+
'network-capture': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
'network-capture-field': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
22
24
|
'max-duration-minutes': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
23
25
|
'max-idle-time-minutes': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
24
26
|
'resource-class': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -15,6 +15,7 @@ const log_1 = tslib_1.__importStar(require("../../log"));
|
|
|
15
15
|
const ora_1 = require("../../ora");
|
|
16
16
|
const prompts_1 = require("../../prompts");
|
|
17
17
|
const egress_1 = require("../../simulator/egress");
|
|
18
|
+
const networkCapture_1 = require("../../simulator/networkCapture");
|
|
18
19
|
const env_1 = require("../../simulator/env");
|
|
19
20
|
const expoGo_1 = require("../../simulator/expoGo");
|
|
20
21
|
const utils_1 = require("../../simulator/utils");
|
|
@@ -80,14 +81,22 @@ class Simulator extends EasCommand_1.default {
|
|
|
80
81
|
}),
|
|
81
82
|
type: core_1.Flags.option({
|
|
82
83
|
description: 'Type of simulator session to create. All session types include a web preview. agent-device, appium, and argent also include an automation interface; web-preview-only includes no automation interface.',
|
|
83
|
-
options:
|
|
84
|
+
options: utils_1.DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS,
|
|
84
85
|
default: utils_1.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES[generated_1.DeviceRunSessionType.AgentDevice],
|
|
85
86
|
})(),
|
|
86
87
|
'package-version': core_1.Flags.string({
|
|
87
88
|
description: 'Version of the package backing the simulator session (e.g. "0.1.3-alpha.3"). Defaults to "latest" when omitted.',
|
|
88
89
|
}),
|
|
90
|
+
'network-capture': core_1.Flags.boolean({
|
|
91
|
+
description: 'Record HTTP(S) traffic from apps on the device (iOS only). HTTPS is decrypted, so recordings contain credentials in cleartext and certificate-pinned apps fail to connect.',
|
|
92
|
+
}),
|
|
93
|
+
'network-capture-field': core_1.Flags.string({
|
|
94
|
+
description: 'What a recording may keep beyond method, URL, status, timing and size: header, query, request-body, response-body. Repeatable or comma-separated. Defaults to none of them, because each can carry credentials.',
|
|
95
|
+
multiple: true,
|
|
96
|
+
dependsOn: ['network-capture'],
|
|
97
|
+
}),
|
|
89
98
|
'max-duration-minutes': core_1.Flags.integer({
|
|
90
|
-
description:
|
|
99
|
+
description: "Maximum duration of the simulator session in minutes before it is automatically stopped. Defaults to, and cannot exceed, the maximum session duration of the account's plan.",
|
|
91
100
|
min: 0,
|
|
92
101
|
}),
|
|
93
102
|
'max-idle-time-minutes': core_1.Flags.integer({
|
|
@@ -100,11 +109,11 @@ class Simulator extends EasCommand_1.default {
|
|
|
100
109
|
options: Object.values(utils_1.DEVICE_RUN_SESSION_RESOURCE_CLASS_FLAG_VALUES),
|
|
101
110
|
})(),
|
|
102
111
|
egress: core_1.Flags.option({
|
|
103
|
-
description: 'With "local", the simulator system proxy points at this machine: HTTP(S) and WebSocket requests that honor it (WebKit, URLSession) and clients that read proxy environment variables (gRPC, libcurl)
|
|
112
|
+
description: 'With "local", the simulator\'s network traffic exits from this machine and fails while the egress client is disconnected. On iOS, the simulator system proxy points at this machine: HTTP(S) and WebSocket requests that honor it (WebKit, URLSession) and clients that read proxy environment variables (gRPC, libcurl) use it, and connections that ignore both are refused inside the simulator and listed, with the library that tried, in the Logs section of the session page on expo.dev. On Android, all TCP traffic from the emulator goes through its proxy to this machine; traffic that cannot (UDP, such as QUIC) is refused and listed in the same Logs section, and DNS for apps that ignore the system proxy resolves on the device host. The egress client must keep running for the life of the session.',
|
|
104
113
|
options: EGRESS_FLAG_VALUES,
|
|
105
114
|
})(),
|
|
106
115
|
'egress-allow': core_1.Flags.string({
|
|
107
|
-
description: 'Destination on this machine or its network that the simulator may reach through local egress, as an exact host:port (for example localhost:3000). Repeat for multiple destinations. A localhost or 127.0.0.1 entry also forwards that port from the simulator host to this machine (like adb reverse), so dev server URLs that use 127.0.0.1 work. Requires --egress local.',
|
|
116
|
+
description: 'Destination on this machine or its network that the simulator may reach through local egress, as an exact host:port (for example localhost:3000). Repeat for multiple destinations. A localhost or 127.0.0.1 entry also forwards that port from the simulator host to this machine (like adb reverse), so dev server URLs that use 127.0.0.1 work. On Android, such an entry also covers 10.0.2.2 on the same port. Requires --egress local.',
|
|
108
117
|
multiple: true,
|
|
109
118
|
dependsOn: ['egress'],
|
|
110
119
|
}),
|
|
@@ -172,11 +181,16 @@ class Simulator extends EasCommand_1.default {
|
|
|
172
181
|
if (existingDeviceRunSessionId && !flags.force) {
|
|
173
182
|
throw new Error(`Existing simulator session in environment. Use --force to create a new simulator session.`);
|
|
174
183
|
}
|
|
184
|
+
// Before the platform prompt: a typo here does not depend on the answer.
|
|
185
|
+
let networkCaptureFields = [];
|
|
186
|
+
try {
|
|
187
|
+
networkCaptureFields = (0, networkCapture_1.parseNetworkCaptureFields)(flags['network-capture-field'] ?? []);
|
|
188
|
+
}
|
|
189
|
+
catch (err) {
|
|
190
|
+
throw new errors_1.EasCommandError(err instanceof Error ? err.message : String(err));
|
|
191
|
+
}
|
|
175
192
|
const platform = await resolvePlatformAsync(flags.platform, nonInteractive);
|
|
176
193
|
const egress = flags.egress === 'local' ? generated_1.DeviceRunSessionEgress.Local : undefined;
|
|
177
|
-
if (egress && platform !== generated_1.AppPlatform.Ios) {
|
|
178
|
-
throw new errors_1.EasCommandError('--egress local is only supported with --platform ios.');
|
|
179
|
-
}
|
|
180
194
|
let egressAllow = [];
|
|
181
195
|
try {
|
|
182
196
|
egressAllow = (0, egress_1.parseEgressAllowList)(flags['egress-allow'] ?? []);
|
|
@@ -184,6 +198,9 @@ class Simulator extends EasCommand_1.default {
|
|
|
184
198
|
catch (err) {
|
|
185
199
|
throw new errors_1.EasCommandError(err instanceof Error ? err.message : String(err));
|
|
186
200
|
}
|
|
201
|
+
if (flags['network-capture'] && platform !== generated_1.AppPlatform.Ios) {
|
|
202
|
+
throw new errors_1.EasCommandError('Network capture is only supported on iOS simulator sessions. Re-run without --network-capture, or pass --platform ios.');
|
|
203
|
+
}
|
|
187
204
|
if (platform === generated_1.AppPlatform.Android) {
|
|
188
205
|
log_1.default.warn('Android emulator support in EAS Simulator is still in development. Some features available on iOS may not work on Android yet. Full parity with iOS is coming soon.');
|
|
189
206
|
log_1.default.newLine();
|
|
@@ -209,6 +226,8 @@ class Simulator extends EasCommand_1.default {
|
|
|
209
226
|
platform,
|
|
210
227
|
type: utils_1.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE[flags.type],
|
|
211
228
|
packageVersion: flags['package-version'],
|
|
229
|
+
networkCapture: flags['network-capture'],
|
|
230
|
+
...(networkCaptureFields.length ? { networkCaptureFields } : {}),
|
|
212
231
|
...(deviceIdentifier
|
|
213
232
|
? platform === generated_1.AppPlatform.Ios
|
|
214
233
|
? { ios: { deviceIdentifier } }
|
|
@@ -237,6 +256,9 @@ class Simulator extends EasCommand_1.default {
|
|
|
237
256
|
})
|
|
238
257
|
: false;
|
|
239
258
|
createSpinner.succeed(`Simulator session created (id: ${deviceRunSessionId}${simulatorEnvWritten ? `, saved to ${env_1.SIMULATOR_DOTENV_FILE_NAME}` : ''}) ${(0, log_1.link)(deviceRunSessionUrl)}`);
|
|
259
|
+
if (flags['network-capture']) {
|
|
260
|
+
log_1.default.warn('Network capture was requested. HTTPS is decrypted, so recordings contain credentials in cleartext. Relaunch an installed app to record its traffic.');
|
|
261
|
+
}
|
|
240
262
|
}
|
|
241
263
|
catch (err) {
|
|
242
264
|
createSpinner.fail('Failed to create simulator session');
|
|
@@ -308,7 +330,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
308
330
|
}
|
|
309
331
|
if (flags['out-config-type'] === OUT_CONFIG_TYPE_VALUES.Dotenv) {
|
|
310
332
|
await writeSimulatorEnvSafelyAsync(projectDir, {
|
|
311
|
-
...(0, utils_1.getRemoteSessionEnvironmentVariables)(remoteConfig, { egressAllow }),
|
|
333
|
+
...(0, utils_1.getRemoteSessionEnvironmentVariables)(remoteConfig, { egressAllow, platform }),
|
|
312
334
|
[env_1.EAS_SIMULATOR_SESSION_ID]: deviceRunSessionId,
|
|
313
335
|
});
|
|
314
336
|
}
|
|
@@ -338,9 +360,10 @@ class Simulator extends EasCommand_1.default {
|
|
|
338
360
|
egressAllow,
|
|
339
361
|
egressClientRunsInline: !nonInteractive,
|
|
340
362
|
sessionUrl: deviceRunSessionUrl,
|
|
363
|
+
platform,
|
|
341
364
|
}));
|
|
342
365
|
log_1.default.newLine();
|
|
343
|
-
const localEgress = (0, utils_1.getLocalEgressConfig)(remoteConfig, egressAllow);
|
|
366
|
+
const localEgress = (0, utils_1.getLocalEgressConfig)(remoteConfig, egressAllow, platform);
|
|
344
367
|
if (nonInteractive) {
|
|
345
368
|
sessionInterrupt.dispose();
|
|
346
369
|
// The instructions above already tell the reader to run eas simulator:egress.
|
|
@@ -419,7 +442,10 @@ async function writeSimulatorEnvSafelyAsync(projectDir, environmentVariables) {
|
|
|
419
442
|
}
|
|
420
443
|
}
|
|
421
444
|
async function waitForSessionEndOrInterruptAsync({ graphqlClient, deviceRunSessionId, deviceRunSessionUrl, projectDir, sessionInterrupt, }) {
|
|
422
|
-
|
|
445
|
+
log_1.default.log(`To stop the session from another shell, run: eas simulator:stop --id ${deviceRunSessionId}`);
|
|
446
|
+
// Keep the spinner text short so it fits on one line. When the text wraps, resizing the
|
|
447
|
+
// terminal can leave copies of the spinner line behind.
|
|
448
|
+
const spinner = (0, ora_1.ora)('Simulator session active — press Ctrl+C to stop').start();
|
|
423
449
|
const { signal } = sessionInterrupt;
|
|
424
450
|
try {
|
|
425
451
|
while (!signal.aborted) {
|
|
@@ -18,6 +18,8 @@ const DEFAULT_LIMIT = 10;
|
|
|
18
18
|
const MAX_LIMIT = 100;
|
|
19
19
|
const STATUS_FLAG_VALUES = {
|
|
20
20
|
[generated_1.DeviceRunSessionStatus.New]: 'new',
|
|
21
|
+
[generated_1.DeviceRunSessionStatus.Queued]: 'queued',
|
|
22
|
+
[generated_1.DeviceRunSessionStatus.Starting]: 'starting',
|
|
21
23
|
[generated_1.DeviceRunSessionStatus.InProgress]: 'in-progress',
|
|
22
24
|
[generated_1.DeviceRunSessionStatus.Stopped]: 'stopped',
|
|
23
25
|
[generated_1.DeviceRunSessionStatus.Errored]: 'errored',
|
|
@@ -42,7 +44,7 @@ class SimulatorList extends EasCommand_1.default {
|
|
|
42
44
|
})(),
|
|
43
45
|
type: core_1.Flags.option({
|
|
44
46
|
description: 'Filter by session type (repeatable). All session types include a web preview. agent-device, appium, and argent also include an automation interface; web-preview-only includes no automation interface.',
|
|
45
|
-
options:
|
|
47
|
+
options: utils_1.DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS,
|
|
46
48
|
multiple: true,
|
|
47
49
|
})(),
|
|
48
50
|
platform: core_1.Flags.option({
|
|
@@ -81,7 +83,7 @@ class SimulatorList extends EasCommand_1.default {
|
|
|
81
83
|
filter.statuses = flags.status.map(value => STATUS_BY_FLAG_VALUE[value]);
|
|
82
84
|
}
|
|
83
85
|
if (flags.type && flags.type.length > 0) {
|
|
84
|
-
filter.types = flags.type.
|
|
86
|
+
filter.types = flags.type.flatMap(utils_1.deviceRunSessionTypesForFlagValue);
|
|
85
87
|
}
|
|
86
88
|
if (flags.platform && flags.platform.length > 0) {
|
|
87
89
|
filter.platforms = flags.platform.map(value => PLATFORM_BY_FLAG_VALUE[value]);
|
|
@@ -14,13 +14,16 @@ export default class SubmitInternal extends EasCommand {
|
|
|
14
14
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
15
|
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
16
|
id: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
|
+
'project-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
18
|
+
'application-identifier': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
19
|
};
|
|
18
20
|
static contextDefinition: {
|
|
19
21
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
20
22
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
21
23
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
24
|
+
getDynamicPublicProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
25
|
+
getDynamicPrivateProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
22
26
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
23
|
-
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
24
27
|
};
|
|
25
28
|
runAsync(): Promise<void>;
|
|
26
29
|
}
|
|
@@ -9,6 +9,7 @@ const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
|
9
9
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
10
10
|
const generated_1 = require("../../graphql/generated");
|
|
11
11
|
const AppStoreConnectApiKeyQuery_1 = require("../../graphql/queries/AppStoreConnectApiKeyQuery");
|
|
12
|
+
const AppQuery_1 = require("../../graphql/queries/AppQuery");
|
|
12
13
|
const GoogleServiceAccountKeyQuery_1 = require("../../graphql/queries/GoogleServiceAccountKeyQuery");
|
|
13
14
|
const AndroidSubmitCommand_1 = tslib_1.__importDefault(require("../../submit/android/AndroidSubmitCommand"));
|
|
14
15
|
const context_1 = require("../../submit/context");
|
|
@@ -35,10 +36,18 @@ class SubmitInternal extends EasCommand_1.default {
|
|
|
35
36
|
description: 'ID of the build to submit',
|
|
36
37
|
required: true,
|
|
37
38
|
}),
|
|
39
|
+
'project-id': core_1.Flags.string({
|
|
40
|
+
description: 'EAS project ID. With --application-identifier, skips loading app config.',
|
|
41
|
+
dependsOn: ['application-identifier'],
|
|
42
|
+
}),
|
|
43
|
+
'application-identifier': core_1.Flags.string({
|
|
44
|
+
description: 'Bundle identifier or Android package name read from the build artifact.',
|
|
45
|
+
dependsOn: ['project-id'],
|
|
46
|
+
}),
|
|
38
47
|
};
|
|
39
48
|
static contextDefinition = {
|
|
40
49
|
...this.ContextOptions.LoggedIn,
|
|
41
|
-
...this.ContextOptions.
|
|
50
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
42
51
|
...this.ContextOptions.ProjectDir,
|
|
43
52
|
...this.ContextOptions.Analytics,
|
|
44
53
|
...this.ContextOptions.Vcs,
|
|
@@ -47,10 +56,18 @@ class SubmitInternal extends EasCommand_1.default {
|
|
|
47
56
|
const { flags } = await this.parse(SubmitInternal);
|
|
48
57
|
// This command is always run with implicit --non-interactive and --json options
|
|
49
58
|
(0, json_1.enableJsonOutput)();
|
|
50
|
-
const { loggedIn: { actor, graphqlClient },
|
|
59
|
+
const { loggedIn: { actor, graphqlClient }, projectDir, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(SubmitInternal, {
|
|
51
60
|
nonInteractive: true,
|
|
52
61
|
withServerSideEnvironment: null,
|
|
53
62
|
});
|
|
63
|
+
const project = flags['project-id']
|
|
64
|
+
? await AppQuery_1.AppQuery.byIdAsync(graphqlClient, flags['project-id'])
|
|
65
|
+
: undefined;
|
|
66
|
+
// Worker submissions already know the project and artifact identifiers.
|
|
67
|
+
// The existing submission code only needs the project name and slug here.
|
|
68
|
+
const { exp, projectId } = project
|
|
69
|
+
? { exp: { name: project.name, slug: project.slug }, projectId: project.id }
|
|
70
|
+
: await getDynamicPrivateProjectConfigAsync();
|
|
54
71
|
if (vcsClient instanceof git_1.default) {
|
|
55
72
|
// `build:internal` is run on EAS workers and the repo may have been changed
|
|
56
73
|
// by pre-install hooks or other scripts. We don't want to require committing changes
|
|
@@ -72,6 +89,7 @@ class SubmitInternal extends EasCommand_1.default {
|
|
|
72
89
|
analytics,
|
|
73
90
|
exp,
|
|
74
91
|
projectId,
|
|
92
|
+
applicationIdentifier: flags['application-identifier'],
|
|
75
93
|
vcsClient,
|
|
76
94
|
specifiedProfile: flags.profile,
|
|
77
95
|
groups: undefined, // use groups from submit profile
|
|
@@ -20,8 +20,10 @@ export default class UpdatePublish extends EasCommand {
|
|
|
20
20
|
'clear-cache': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
'no-bytecode': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
'source-maps': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
23
|
+
'upload-source-maps': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
23
24
|
'emit-metadata': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
24
25
|
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
26
|
+
'force-end-active-rollout': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
25
27
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
26
28
|
auto: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
27
29
|
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -21,10 +21,12 @@ const log_1 = tslib_1.__importStar(require("../../log"));
|
|
|
21
21
|
const ora_1 = require("../../ora");
|
|
22
22
|
const platform_1 = require("../../platform");
|
|
23
23
|
const maybeUploadAssetMapAsync_1 = require("../../project/maybeUploadAssetMapAsync");
|
|
24
|
+
const maybeUploadSourceMapsAsync_1 = require("../../project/maybeUploadSourceMapsAsync");
|
|
24
25
|
const maybeUploadFingerprintAsync_1 = require("../../project/maybeUploadFingerprintAsync");
|
|
25
26
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
26
27
|
const publish_1 = require("../../project/publish");
|
|
27
28
|
const workflow_1 = require("../../project/workflow");
|
|
29
|
+
const active_rollout_1 = require("../../update/active-rollout");
|
|
28
30
|
const configure_1 = require("../../update/configure");
|
|
29
31
|
const utils_2 = require("../../update/utils");
|
|
30
32
|
const code_signing_1 = require("../../utils/code-signing");
|
|
@@ -93,6 +95,10 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
93
95
|
default: 'true',
|
|
94
96
|
hidden: true,
|
|
95
97
|
}),
|
|
98
|
+
'upload-source-maps': core_1.Flags.boolean({
|
|
99
|
+
description: `Upload the generated source maps to EAS so that stack traces from this update can be symbolicated`,
|
|
100
|
+
default: false,
|
|
101
|
+
}),
|
|
96
102
|
'emit-metadata': core_1.Flags.boolean({
|
|
97
103
|
description: `Emit "eas-update-metadata.json" in the bundle folder with detailed information about the generated updates`,
|
|
98
104
|
default: false,
|
|
@@ -103,6 +109,10 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
103
109
|
min: 0,
|
|
104
110
|
max: 100,
|
|
105
111
|
}),
|
|
112
|
+
'force-end-active-rollout': core_1.Flags.boolean({
|
|
113
|
+
description: 'End an in-progress rollout on the runtime version being published, so this update supersedes it.',
|
|
114
|
+
default: false,
|
|
115
|
+
}),
|
|
106
116
|
platform: core_1.Flags.option({
|
|
107
117
|
char: 'p',
|
|
108
118
|
options: Object.values(platform_1.RequestedPlatform), // TODO: Add web when it's fully supported
|
|
@@ -131,7 +141,7 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
131
141
|
const preprocessedArgv = preprocessSourceMapsArg(this.argv);
|
|
132
142
|
const { flags: rawFlags } = await this.parse(UpdatePublish, preprocessedArgv);
|
|
133
143
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(rawFlags);
|
|
134
|
-
const { auto: autoFlag, platform: requestedPlatform, channelName: channelNameArg, updateMessage: updateMessageArg, inputDir, skipBundler, clearCache, noBytecode, sourceMaps, privateKeyPath, json: jsonFlag, nonInteractive, branchName: branchNameArg, emitMetadata, rolloutPercentage, environment: environmentFromFlags, } = this.sanitizeFlags(rawFlags);
|
|
144
|
+
const { auto: autoFlag, platform: requestedPlatform, channelName: channelNameArg, updateMessage: updateMessageArg, inputDir, skipBundler, clearCache, noBytecode, sourceMaps, uploadSourceMaps, privateKeyPath, json: jsonFlag, nonInteractive, branchName: branchNameArg, emitMetadata, rolloutPercentage, forceEndActiveRollout, environment: environmentFromFlags, } = this.sanitizeFlags(rawFlags);
|
|
135
145
|
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, getServerSideEnvironmentVariablesAsync, } = await this.getContextAsync(UpdatePublish, {
|
|
136
146
|
nonInteractive,
|
|
137
147
|
withServerSideEnvironment: environmentFromFlags ?? null,
|
|
@@ -224,12 +234,15 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
224
234
|
let assetLimitPerUpdateGroup = 0;
|
|
225
235
|
let realizedPlatforms = [];
|
|
226
236
|
let assetMapSource = null;
|
|
237
|
+
let sourceMapSources = null;
|
|
227
238
|
try {
|
|
228
|
-
const [collectedAssets, maybeAssetMapSource] = await Promise.all([
|
|
239
|
+
const [collectedAssets, maybeAssetMapSource, maybeSourceMapSources] = await Promise.all([
|
|
229
240
|
(0, publish_1.collectAssetsAsync)(distRoot),
|
|
230
241
|
(0, maybeUploadAssetMapAsync_1.maybeUploadAssetMapAsync)(distRoot, graphqlClient),
|
|
242
|
+
uploadSourceMaps ? (0, maybeUploadSourceMapsAsync_1.maybeUploadSourceMapsAsync)(distRoot, graphqlClient) : null,
|
|
231
243
|
]);
|
|
232
244
|
assetMapSource = maybeAssetMapSource;
|
|
245
|
+
sourceMapSources = maybeSourceMapSources;
|
|
233
246
|
const assets = (0, publish_1.filterCollectedAssetsByRequestedPlatforms)(collectedAssets, requestedPlatform);
|
|
234
247
|
realizedPlatforms = Object.keys(assets);
|
|
235
248
|
// Timeout mechanism:
|
|
@@ -383,12 +396,21 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
383
396
|
const assetMapGroup = assetMapSource
|
|
384
397
|
? Object.fromEntries(platforms.map(platform => [platform, assetMapSource]))
|
|
385
398
|
: null;
|
|
399
|
+
// Source maps are per platform. The filter narrows to the platforms the
|
|
400
|
+
// SourceMapGroup input accepts; `web` is already excluded further upstream.
|
|
401
|
+
const sourceMapGroupEntries = sourceMapSources
|
|
402
|
+
? platforms
|
|
403
|
+
.filter(maybeUploadSourceMapsAsync_1.isSourceMapPlatform)
|
|
404
|
+
.flatMap(platform => sourceMapSources?.[platform] ? [[platform, sourceMapSources[platform]]] : [])
|
|
405
|
+
: [];
|
|
406
|
+
const sourceMapGroup = sourceMapGroupEntries.length > 0 ? Object.fromEntries(sourceMapGroupEntries) : null;
|
|
386
407
|
return {
|
|
387
408
|
branchId: branch.id,
|
|
388
409
|
updateInfoGroup: localUpdateInfoGroup,
|
|
389
410
|
rolloutInfoGroup: localRolloutInfoGroup,
|
|
390
411
|
fingerprintInfoGroup: transformedFingerprintInfoGroup,
|
|
391
412
|
assetMapGroup,
|
|
413
|
+
sourceMapGroup,
|
|
392
414
|
runtimeVersion,
|
|
393
415
|
message: updateMessage,
|
|
394
416
|
gitCommitHash,
|
|
@@ -399,10 +421,16 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
399
421
|
assetHostOverride: easJsonCliConfig.updateAssetHostOverride ?? null,
|
|
400
422
|
};
|
|
401
423
|
});
|
|
424
|
+
const updateGroupsToPublish = await (0, active_rollout_1.resolveUpdateGroupsSupersedingActiveRolloutsAsync)(graphqlClient, updateGroups, {
|
|
425
|
+
appId: projectId,
|
|
426
|
+
branchName: branch.name,
|
|
427
|
+
forceEndActiveRollout,
|
|
428
|
+
rolloutPercentage,
|
|
429
|
+
});
|
|
402
430
|
let newUpdates;
|
|
403
431
|
const publishSpinner = (0, ora_1.ora)('Publishing...').start();
|
|
404
432
|
try {
|
|
405
|
-
newUpdates = await PublishMutation_1.PublishMutation.publishUpdateGroupAsync(graphqlClient,
|
|
433
|
+
newUpdates = await PublishMutation_1.PublishMutation.publishUpdateGroupAsync(graphqlClient, updateGroupsToPublish);
|
|
406
434
|
if (codeSigningInfo) {
|
|
407
435
|
log_1.default.log('🔒 Signing updates');
|
|
408
436
|
const updatesTemp = [...newUpdates];
|
|
@@ -522,6 +550,17 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
522
550
|
emitMetadata = false;
|
|
523
551
|
log_1.default.warn('ignoring flag --emit-metadata as metadata cannot be generated when skipping bundle generation');
|
|
524
552
|
}
|
|
553
|
+
const uploadSourceMaps = flags['upload-source-maps'] ?? false;
|
|
554
|
+
const sourceMaps = flags['source-maps'];
|
|
555
|
+
// Only the default value reliably writes a standalone source map file. `false` writes none,
|
|
556
|
+
// and any other value is passed straight to `expo export` on SDK 55+, where `inline` embeds
|
|
557
|
+
// the map in the bundle instead of writing a file.
|
|
558
|
+
if (uploadSourceMaps && sourceMaps !== undefined && sourceMaps !== 'true') {
|
|
559
|
+
core_1.Errors.error(`--upload-source-maps requires --source-maps true, which is the default. Other values may not write a separate source map file to upload. Received --source-maps ${sourceMaps}`, { exit: 1 });
|
|
560
|
+
}
|
|
561
|
+
if (uploadSourceMaps && skipBundler) {
|
|
562
|
+
log_1.default.warn('using --upload-source-maps with --skip-bundler: source maps must already exist in the input directory');
|
|
563
|
+
}
|
|
525
564
|
return {
|
|
526
565
|
auto,
|
|
527
566
|
branchName,
|
|
@@ -531,10 +570,12 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
531
570
|
skipBundler,
|
|
532
571
|
clearCache: flags['clear-cache'] ? true : !!flags['environment'],
|
|
533
572
|
noBytecode: flags['no-bytecode'] ?? false,
|
|
534
|
-
sourceMaps
|
|
573
|
+
sourceMaps,
|
|
574
|
+
uploadSourceMaps,
|
|
535
575
|
platform: flags.platform,
|
|
536
576
|
privateKeyPath: flags['private-key-path'],
|
|
537
577
|
rolloutPercentage: flags['rollout-percentage'],
|
|
578
|
+
forceEndActiveRollout: flags['force-end-active-rollout'],
|
|
538
579
|
nonInteractive,
|
|
539
580
|
emitMetadata,
|
|
540
581
|
json,
|
|
@@ -13,6 +13,7 @@ export default class UpdateRepublish extends EasCommand {
|
|
|
13
13
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | "all" | "web", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
14
|
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
15
|
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
'force-end-active-rollout': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
17
|
};
|
|
17
18
|
static contextDefinition: {
|
|
18
19
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -55,6 +55,10 @@ class UpdateRepublish extends EasCommand_1.default {
|
|
|
55
55
|
min: 0,
|
|
56
56
|
max: 100,
|
|
57
57
|
}),
|
|
58
|
+
'force-end-active-rollout': core_1.Flags.boolean({
|
|
59
|
+
description: 'End an in-progress rollout on the runtime version being republished to, so this update supersedes it.',
|
|
60
|
+
default: false,
|
|
61
|
+
}),
|
|
58
62
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
59
63
|
};
|
|
60
64
|
static contextDefinition = {
|
|
@@ -102,6 +106,7 @@ class UpdateRepublish extends EasCommand_1.default {
|
|
|
102
106
|
codeSigningInfo,
|
|
103
107
|
json: flags.json,
|
|
104
108
|
rolloutPercentage: flags.rolloutPercentage,
|
|
109
|
+
activeRollout: { forceEndActiveRollout: flags.forceEndActiveRollout },
|
|
105
110
|
});
|
|
106
111
|
}
|
|
107
112
|
sanitizeFlags(rawFlags) {
|
|
@@ -126,6 +131,7 @@ class UpdateRepublish extends EasCommand_1.default {
|
|
|
126
131
|
updateMessage: rawFlags.message,
|
|
127
132
|
privateKeyPath,
|
|
128
133
|
rolloutPercentage: rawFlags['rollout-percentage'],
|
|
134
|
+
forceEndActiveRollout: rawFlags['force-end-active-rollout'],
|
|
129
135
|
json,
|
|
130
136
|
nonInteractive,
|
|
131
137
|
};
|
|
@@ -10,6 +10,7 @@ export default class UpdateRollBackToEmbedded extends EasCommand {
|
|
|
10
10
|
message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
11
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | "all", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
12
|
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
'force-end-active-rollout': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
14
|
};
|
|
14
15
|
static contextDefinition: {
|
|
15
16
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
@@ -49,6 +49,10 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
49
49
|
description: `File containing the PEM-encoded private key corresponding to the certificate in expo-updates' configuration. Defaults to a file named "private-key.pem" in the certificate's directory. Only relevant if you are using code signing: https://docs.expo.dev/eas-update/code-signing/`,
|
|
50
50
|
required: false,
|
|
51
51
|
}),
|
|
52
|
+
'force-end-active-rollout': core_1.Flags.boolean({
|
|
53
|
+
description: 'End an in-progress rollout on the runtime version being rolled back, so this roll back supersedes it.',
|
|
54
|
+
default: false,
|
|
55
|
+
}),
|
|
52
56
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
53
57
|
};
|
|
54
58
|
static contextDefinition = {
|
|
@@ -59,7 +63,7 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
59
63
|
async runAsync() {
|
|
60
64
|
const { flags: rawFlags } = await this.parse(UpdateRollBackToEmbedded);
|
|
61
65
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(rawFlags);
|
|
62
|
-
const { platform: platformFlag, channelName: channelNameArg, updateMessage: updateMessageArg, runtimeVersion: runtimeVersionArg, privateKeyPath, json: jsonFlag, nonInteractive, branchName: branchNameArg, } = this.sanitizeFlags(rawFlags);
|
|
66
|
+
const { platform: platformFlag, channelName: channelNameArg, updateMessage: updateMessageArg, runtimeVersion: runtimeVersionArg, privateKeyPath, forceEndActiveRollout, json: jsonFlag, nonInteractive, branchName: branchNameArg, } = this.sanitizeFlags(rawFlags);
|
|
63
67
|
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(UpdateRollBackToEmbedded, {
|
|
64
68
|
nonInteractive,
|
|
65
69
|
withServerSideEnvironment: null,
|
|
@@ -124,6 +128,7 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
124
128
|
platforms: realizedPlatforms,
|
|
125
129
|
runtimeVersion: selectedRuntime,
|
|
126
130
|
json: jsonFlag,
|
|
131
|
+
activeRollout: { forceEndActiveRollout },
|
|
127
132
|
});
|
|
128
133
|
}
|
|
129
134
|
sanitizeFlags(flags) {
|
|
@@ -142,6 +147,7 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
142
147
|
runtimeVersion,
|
|
143
148
|
platform: flags.platform,
|
|
144
149
|
privateKeyPath: flags['private-key-path'],
|
|
150
|
+
forceEndActiveRollout: flags['force-end-active-rollout'],
|
|
145
151
|
nonInteractive,
|
|
146
152
|
json,
|
|
147
153
|
};
|
|
@@ -10,6 +10,7 @@ export default class UpdateRollback extends EasCommand {
|
|
|
10
10
|
message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
11
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | "all", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
12
|
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
'force-end-active-rollout': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
14
|
};
|
|
14
15
|
static contextDefinition: {
|
|
15
16
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -33,6 +33,10 @@ class UpdateRollback extends EasCommand_1.default {
|
|
|
33
33
|
description: `File containing the PEM-encoded private key corresponding to the certificate in expo-updates' configuration. Defaults to a file named "private-key.pem" in the certificate's directory. Only relevant if you are using code signing: https://docs.expo.dev/eas-update/code-signing/`,
|
|
34
34
|
required: false,
|
|
35
35
|
}),
|
|
36
|
+
'force-end-active-rollout': core_1.Flags.boolean({
|
|
37
|
+
description: 'End an in-progress rollout on the runtime version being rolled back, so this roll back supersedes it.',
|
|
38
|
+
default: false,
|
|
39
|
+
}),
|
|
36
40
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
37
41
|
};
|
|
38
42
|
static contextDefinition = {
|
|
@@ -45,6 +49,9 @@ class UpdateRollback extends EasCommand_1.default {
|
|
|
45
49
|
const groupId = args.groupId;
|
|
46
50
|
const platform = flags.platform;
|
|
47
51
|
const messageArg = flags.message;
|
|
52
|
+
const forceEndActiveRolloutArg = flags['force-end-active-rollout']
|
|
53
|
+
? ['--force-end-active-rollout']
|
|
54
|
+
: [];
|
|
48
55
|
const privateKeyPathArg = flags['private-key-path']
|
|
49
56
|
? ['--private-key-path', flags['private-key-path']]
|
|
50
57
|
: [];
|
|
@@ -62,10 +69,10 @@ class UpdateRollback extends EasCommand_1.default {
|
|
|
62
69
|
],
|
|
63
70
|
});
|
|
64
71
|
if (choice === 'published') {
|
|
65
|
-
await republish_1.default.run(privateKeyPathArg);
|
|
72
|
+
await republish_1.default.run([...privateKeyPathArg, ...forceEndActiveRolloutArg]);
|
|
66
73
|
}
|
|
67
74
|
else {
|
|
68
|
-
await roll_back_to_embedded_1.default.run(privateKeyPathArg);
|
|
75
|
+
await roll_back_to_embedded_1.default.run([...privateKeyPathArg, ...forceEndActiveRolloutArg]);
|
|
69
76
|
}
|
|
70
77
|
return;
|
|
71
78
|
}
|
|
@@ -76,10 +83,11 @@ class UpdateRollback extends EasCommand_1.default {
|
|
|
76
83
|
const sourceGroup = await getSourceUpdateGroupAsync(graphqlClient, groupId);
|
|
77
84
|
const previousGroup = await getPreviousUpdateGroupAsync(graphqlClient, projectId, sourceGroup);
|
|
78
85
|
const commonArgs = [
|
|
79
|
-
'--non-interactive',
|
|
86
|
+
...(nonInteractive ? ['--non-interactive'] : []),
|
|
80
87
|
'--platform',
|
|
81
88
|
platform,
|
|
82
89
|
...privateKeyPathArg,
|
|
90
|
+
...forceEndActiveRolloutArg,
|
|
83
91
|
...(json ? ['--json'] : []),
|
|
84
92
|
];
|
|
85
93
|
if (previousGroup) {
|