eas-cli 21.5.0 → 21.7.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 +337 -125
- package/build/commandUtils/workflow/compositeFunctions.js +20 -48
- package/build/commands/simulator/availability.d.ts +1 -0
- package/build/commands/simulator/availability.js +9 -2
- package/build/commands/simulator/events.d.ts +1 -0
- package/build/commands/simulator/events.js +1 -0
- package/build/commands/simulator/exec.d.ts +1 -0
- package/build/commands/simulator/exec.js +1 -0
- package/build/commands/simulator/get.d.ts +1 -0
- package/build/commands/simulator/get.js +1 -0
- package/build/commands/simulator/{start.d.ts → index.d.ts} +1 -1
- package/build/commands/simulator/{start.js → index.js} +16 -5
- package/build/commands/simulator/list.d.ts +2 -0
- package/build/commands/simulator/list.js +7 -0
- package/build/commands/simulator/stop.d.ts +1 -0
- package/build/commands/simulator/stop.js +1 -0
- package/build/simulator/utils.d.ts +7 -0
- package/build/simulator/utils.js +15 -1
- package/build/utils/code-signing.js +3 -0
- package/oclif.manifest.json +3341 -3320
- package/package.json +8 -5
|
@@ -2,63 +2,35 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateWorkflowLocalCompositeFunctionsAsync = validateWorkflowLocalCompositeFunctionsAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
5
|
const steps_1 = require("@expo/steps");
|
|
7
|
-
const fs_1 = require("fs");
|
|
8
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
-
const YAML = tslib_1.__importStar(require("yaml"));
|
|
10
|
-
const zod_1 = require("zod");
|
|
11
6
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
12
|
-
const COMPOSITE_FUNCTION_FILE_EXTENSIONS = ['yml', 'yaml'];
|
|
13
7
|
async function validateWorkflowLocalCompositeFunctionsAsync(parsedYaml, projectDir) {
|
|
14
|
-
await (0, steps_1.
|
|
8
|
+
await (0, steps_1.buildLocalCompositeFunctionCatalogAsync)(projectDir, {
|
|
15
9
|
rootSteps: stepsFromWorkflow(parsedYaml),
|
|
16
|
-
|
|
10
|
+
logger: {
|
|
11
|
+
debug: message => {
|
|
12
|
+
log_1.default.debug(message);
|
|
13
|
+
},
|
|
14
|
+
},
|
|
17
15
|
});
|
|
18
16
|
}
|
|
19
|
-
async function loadLocalCompositeFunctionConfigAsync(projectDir, compositeFunctionPath) {
|
|
20
|
-
const resolvedPath = (0, steps_1.resolveLocalCompositeFunctionPath)(projectDir, compositeFunctionPath);
|
|
21
|
-
for (const ext of COMPOSITE_FUNCTION_FILE_EXTENSIONS) {
|
|
22
|
-
const config = await readCompositeFunctionConfigFileAsync(compositeFunctionPath, path_1.default.join(resolvedPath, `function.${ext}`));
|
|
23
|
-
if (config) {
|
|
24
|
-
log_1.default.debug(`Validated local composite function "${compositeFunctionPath}"`);
|
|
25
|
-
return config;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
throw new Error(`Local composite function "${compositeFunctionPath}" was referenced by a step but no such composite function exists. A local composite function is resolved from a "function.yml" (or "function.yaml") file at the referenced path relative to the EAS project root (e.g. "uses: ${compositeFunctionPath}" resolves "${compositeFunctionPath}/function.yml"). The recommended convention is to keep composite functions under ".eas/functions/<name>".`);
|
|
29
|
-
}
|
|
30
|
-
async function readCompositeFunctionConfigFileAsync(compositeFunctionPath, absolutePath) {
|
|
31
|
-
let rawContents;
|
|
32
|
-
try {
|
|
33
|
-
rawContents = await fs_1.promises.readFile(absolutePath, 'utf-8');
|
|
34
|
-
}
|
|
35
|
-
catch (err) {
|
|
36
|
-
if (err?.code === 'ENOENT') {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
throw new Error(`Failed to read local composite function "${compositeFunctionPath}" from ${absolutePath}`, {
|
|
40
|
-
cause: err,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
let parsed;
|
|
44
|
-
try {
|
|
45
|
-
parsed = YAML.parse(rawContents);
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
throw new Error(`Failed to parse local composite function "${compositeFunctionPath}" YAML at ${absolutePath}`, {
|
|
49
|
-
cause: err,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const result = eas_build_job_1.CompositeFunctionConfigZ.safeParse(parsed);
|
|
53
|
-
if (!result.success) {
|
|
54
|
-
throw new Error(`Invalid composite function "${compositeFunctionPath}": ${zod_1.z.prettifyError(result.error)}`);
|
|
55
|
-
}
|
|
56
|
-
return result.data;
|
|
57
|
-
}
|
|
58
17
|
function stepsFromWorkflow(parsedYaml) {
|
|
59
18
|
const jobs = parsedYaml?.jobs;
|
|
60
19
|
if (!jobs || typeof jobs !== 'object') {
|
|
61
20
|
return [];
|
|
62
21
|
}
|
|
63
|
-
return
|
|
22
|
+
return [
|
|
23
|
+
...Object.values(jobs).flatMap((job) => [
|
|
24
|
+
...(Array.isArray(job?.steps) ? job.steps : []),
|
|
25
|
+
...hookStepsFrom(job),
|
|
26
|
+
]),
|
|
27
|
+
...hookStepsFrom(parsedYaml?.defaults),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
function hookStepsFrom(jobOrDefaults) {
|
|
31
|
+
const hooks = jobOrDefaults?.hooks;
|
|
32
|
+
if (!hooks || typeof hooks !== 'object') {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
return Object.values(hooks).flatMap((steps) => (Array.isArray(steps) ? steps : []));
|
|
64
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class SimulatorAvailability extends EasCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
4
5
|
static description: string;
|
|
5
6
|
static flags: {
|
|
6
7
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -6,9 +6,11 @@ const flags_1 = require("../../commandUtils/flags");
|
|
|
6
6
|
const DeviceRunSessionAvailabilityQuery_1 = require("../../graphql/queries/DeviceRunSessionAvailabilityQuery");
|
|
7
7
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
8
|
const ora_1 = require("../../ora");
|
|
9
|
+
const utils_1 = require("../../simulator/utils");
|
|
9
10
|
const json_1 = require("../../utils/json");
|
|
10
11
|
class SimulatorAvailability extends EasCommand_1.default {
|
|
11
12
|
static hidden = true;
|
|
13
|
+
static aliases = ['sim:availability'];
|
|
12
14
|
static description = '[EXPERIMENTAL] check whether EAS Simulator is enabled for the current project account';
|
|
13
15
|
static flags = {
|
|
14
16
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
@@ -38,14 +40,19 @@ class SimulatorAvailability extends EasCommand_1.default {
|
|
|
38
40
|
throw err;
|
|
39
41
|
}
|
|
40
42
|
if (jsonFlag) {
|
|
41
|
-
(0, json_1.printJsonOnlyOutput)({
|
|
43
|
+
(0, json_1.printJsonOnlyOutput)({
|
|
44
|
+
available,
|
|
45
|
+
accountName,
|
|
46
|
+
// Only present when gated, so scripts and agents can pass the waitlist link on.
|
|
47
|
+
...(available ? {} : { waitlistUrl: utils_1.EAS_SIMULATOR_WAITLIST_URL }),
|
|
48
|
+
});
|
|
42
49
|
return;
|
|
43
50
|
}
|
|
44
51
|
if (available) {
|
|
45
52
|
log_1.default.log(`✅ EAS Simulator is enabled for ${accountName}.`);
|
|
46
53
|
return;
|
|
47
54
|
}
|
|
48
|
-
log_1.default.log(
|
|
55
|
+
log_1.default.log((0, utils_1.formatSimulatorUnavailableMessage)(accountName));
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
exports.default = SimulatorAvailability;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class SimulatorEvents extends EasCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
4
5
|
static description: string;
|
|
5
6
|
static flags: {
|
|
6
7
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -15,6 +15,7 @@ const POLL_INTERVAL_MS = 5_000;
|
|
|
15
15
|
const POST_STOP_REFRESH_COUNT = 2;
|
|
16
16
|
class SimulatorEvents extends EasCommand_1.default {
|
|
17
17
|
static hidden = true;
|
|
18
|
+
static aliases = ['sim:events'];
|
|
18
19
|
static description = '[EXPERIMENTAL] show activity events from a remote simulator session';
|
|
19
20
|
static flags = {
|
|
20
21
|
id: core_1.Flags.string({
|
|
@@ -6,6 +6,7 @@ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasComm
|
|
|
6
6
|
const env_1 = require("../../simulator/env");
|
|
7
7
|
class SimulatorExec extends EasCommand_1.default {
|
|
8
8
|
static hidden = true;
|
|
9
|
+
static aliases = ['sim:exec'];
|
|
9
10
|
static description = `[EXPERIMENTAL] execute a simulator command with ${env_1.SIMULATOR_DOTENV_FILE_NAME} environment loaded`;
|
|
10
11
|
static strict = false;
|
|
11
12
|
static contextDefinition = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class SimulatorGet extends EasCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
4
5
|
static description: string;
|
|
5
6
|
static flags: {
|
|
6
7
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -16,6 +16,7 @@ const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields
|
|
|
16
16
|
const json_1 = require("../../utils/json");
|
|
17
17
|
class SimulatorGet extends EasCommand_1.default {
|
|
18
18
|
static hidden = true;
|
|
19
|
+
static aliases = ['sim:get'];
|
|
19
20
|
static description = '[EXPERIMENTAL] get info about a remote simulator session on EAS by its simulator session ID';
|
|
20
21
|
static flags = {
|
|
21
22
|
id: core_1.Flags.string({
|
|
@@ -5,9 +5,11 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
6
|
const url_1 = require("../../build/utils/url");
|
|
7
7
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
8
|
+
const errors_1 = require("../../commandUtils/errors");
|
|
8
9
|
const flags_1 = require("../../commandUtils/flags");
|
|
9
10
|
const generated_1 = require("../../graphql/generated");
|
|
10
11
|
const DeviceRunSessionMutation_1 = require("../../graphql/mutations/DeviceRunSessionMutation");
|
|
12
|
+
const DeviceRunSessionAvailabilityQuery_1 = require("../../graphql/queries/DeviceRunSessionAvailabilityQuery");
|
|
11
13
|
const DeviceRunSessionQuery_1 = require("../../graphql/queries/DeviceRunSessionQuery");
|
|
12
14
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
13
15
|
const ora_1 = require("../../ora");
|
|
@@ -27,9 +29,9 @@ const APP_PLATFORM_BY_FLAG_VALUE = {
|
|
|
27
29
|
android: generated_1.AppPlatform.Android,
|
|
28
30
|
ios: generated_1.AppPlatform.Ios,
|
|
29
31
|
};
|
|
30
|
-
class
|
|
32
|
+
class Simulator extends EasCommand_1.default {
|
|
31
33
|
static hidden = true;
|
|
32
|
-
static aliases = ['simulator'];
|
|
34
|
+
static aliases = ['simulator:start', 'sim', 'sim:start'];
|
|
33
35
|
static description = '[EXPERIMENTAL] start a remote simulator session on EAS and get instructions to connect to it';
|
|
34
36
|
static flags = {
|
|
35
37
|
platform: core_1.Flags.option({
|
|
@@ -70,14 +72,23 @@ class SimulatorStart extends EasCommand_1.default {
|
|
|
70
72
|
...this.ContextOptions.LoggedIn,
|
|
71
73
|
};
|
|
72
74
|
async runAsync() {
|
|
73
|
-
const { flags } = await this.parse(
|
|
75
|
+
const { flags } = await this.parse(Simulator);
|
|
74
76
|
const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
|
|
75
77
|
if (jsonFlag) {
|
|
76
78
|
(0, json_1.enableJsonOutput)();
|
|
77
79
|
}
|
|
78
|
-
const { projectId, projectDir, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
80
|
+
const { projectId, projectDir, loggedIn: { actor, graphqlClient }, } = await this.getContextAsync(Simulator, {
|
|
79
81
|
nonInteractive,
|
|
80
82
|
});
|
|
83
|
+
// The server would reject the session anyway, but check the gate first so gated
|
|
84
|
+
// accounts get the waitlist link instead of a generic permission error. Expo admins
|
|
85
|
+
// skip the check so they can work on any account and let the server decide.
|
|
86
|
+
if (!actor.isExpoAdmin) {
|
|
87
|
+
const { accountName, available } = await DeviceRunSessionAvailabilityQuery_1.DeviceRunSessionAvailabilityQuery.byAppIdAsync(graphqlClient, projectId);
|
|
88
|
+
if (!available) {
|
|
89
|
+
throw new errors_1.EasCommandError((0, utils_1.formatSimulatorUnavailableMessage)(accountName));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
81
92
|
// The server rejects blank names, so trim here and treat a whitespace-only
|
|
82
93
|
// --name as if it had been omitted rather than surfacing a validation error.
|
|
83
94
|
const name = flags.name?.trim() || undefined;
|
|
@@ -218,7 +229,7 @@ class SimulatorStart extends EasCommand_1.default {
|
|
|
218
229
|
});
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
|
-
exports.default =
|
|
232
|
+
exports.default = Simulator;
|
|
222
233
|
async function resolvePlatformAsync(platform, nonInteractive) {
|
|
223
234
|
if (platform) {
|
|
224
235
|
return APP_PLATFORM_BY_FLAG_VALUE[platform];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class SimulatorList extends EasCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
4
5
|
static description: string;
|
|
5
6
|
static flags: {
|
|
6
7
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -8,6 +9,7 @@ export default class SimulatorList extends EasCommand {
|
|
|
8
9
|
status: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
10
|
type: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
11
|
platform: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
13
|
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
|
|
12
14
|
after: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
15
|
};
|
|
@@ -33,6 +33,7 @@ const PLATFORM_FLAG_VALUES = {
|
|
|
33
33
|
const PLATFORM_BY_FLAG_VALUE = Object.fromEntries(Object.entries(PLATFORM_FLAG_VALUES).map(([platform, value]) => [value, platform]));
|
|
34
34
|
class SimulatorList extends EasCommand_1.default {
|
|
35
35
|
static hidden = true;
|
|
36
|
+
static aliases = ['sim:list'];
|
|
36
37
|
static description = '[EXPERIMENTAL] list remote simulator sessions for the current project';
|
|
37
38
|
static flags = {
|
|
38
39
|
status: core_1.Flags.option({
|
|
@@ -50,6 +51,9 @@ class SimulatorList extends EasCommand_1.default {
|
|
|
50
51
|
options: Object.values(PLATFORM_FLAG_VALUES),
|
|
51
52
|
multiple: true,
|
|
52
53
|
})(),
|
|
54
|
+
name: core_1.Flags.string({
|
|
55
|
+
description: 'Filter by session name (case-insensitive prefix match)',
|
|
56
|
+
}),
|
|
53
57
|
limit: (0, pagination_1.getLimitFlagWithCustomValues)({ defaultTo: DEFAULT_LIMIT, limit: MAX_LIMIT }),
|
|
54
58
|
after: core_1.Flags.string({
|
|
55
59
|
description: 'Cursor for pagination. Use the endCursor from a previous query to fetch the next page.',
|
|
@@ -79,6 +83,9 @@ class SimulatorList extends EasCommand_1.default {
|
|
|
79
83
|
if (flags.platform && flags.platform.length > 0) {
|
|
80
84
|
filter.platforms = flags.platform.map(value => PLATFORM_BY_FLAG_VALUE[value]);
|
|
81
85
|
}
|
|
86
|
+
if (flags.name) {
|
|
87
|
+
filter.name = flags.name;
|
|
88
|
+
}
|
|
82
89
|
const limit = flags.limit ?? DEFAULT_LIMIT;
|
|
83
90
|
const fetchSpinner = jsonFlag ? null : (0, ora_1.ora)('Fetching simulator sessions').start();
|
|
84
91
|
let connection;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class SimulatorStop extends EasCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
4
5
|
static description: string;
|
|
5
6
|
static flags: {
|
|
6
7
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -10,6 +10,7 @@ const env_1 = require("../../simulator/env");
|
|
|
10
10
|
const json_1 = require("../../utils/json");
|
|
11
11
|
class SimulatorStop extends EasCommand_1.default {
|
|
12
12
|
static hidden = true;
|
|
13
|
+
static aliases = ['sim:stop'];
|
|
13
14
|
static description = '[EXPERIMENTAL] stop a remote simulator session on EAS by its simulator session ID';
|
|
14
15
|
static flags = {
|
|
15
16
|
id: core_1.Flags.string({
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { DeviceRunSessionByIdQuery, DeviceRunSessionType } from '../graphql/generated';
|
|
2
2
|
type DeviceRunSessionByIdResult = DeviceRunSessionByIdQuery['deviceRunSessions']['byId'];
|
|
3
3
|
export type DeviceRunSessionRemoteConfig = NonNullable<DeviceRunSessionByIdResult['remoteConfig']>;
|
|
4
|
+
/** Landing page where accounts without access can request it. */
|
|
5
|
+
export declare const EAS_SIMULATOR_WAITLIST_URL = "https://expo.dev/services/simulators";
|
|
6
|
+
/**
|
|
7
|
+
* Message shown when EAS Simulator is not enabled for the account. Shared by every
|
|
8
|
+
* command that can hit the gate so users always get the same waitlist pointer.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatSimulatorUnavailableMessage(accountName: string): string;
|
|
4
11
|
export declare const DEVICE_RUN_SESSION_TYPE_FLAG_VALUES: Record<DeviceRunSessionType, string>;
|
|
5
12
|
export declare const DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE: Record<string, DeviceRunSessionType>;
|
|
6
13
|
export declare function deviceRunSessionTypeToFlagValue(type: DeviceRunSessionType): string;
|
package/build/simulator/utils.js
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = void 0;
|
|
3
|
+
exports.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = exports.EAS_SIMULATOR_WAITLIST_URL = void 0;
|
|
4
|
+
exports.formatSimulatorUnavailableMessage = formatSimulatorUnavailableMessage;
|
|
4
5
|
exports.deviceRunSessionTypeToFlagValue = deviceRunSessionTypeToFlagValue;
|
|
5
6
|
exports.getRemoteSessionEnvironmentVariables = getRemoteSessionEnvironmentVariables;
|
|
6
7
|
exports.formatRemoteSessionInstructions = formatRemoteSessionInstructions;
|
|
7
8
|
const generated_1 = require("../graphql/generated");
|
|
9
|
+
const log_1 = require("../log");
|
|
10
|
+
/** Landing page where accounts without access can request it. */
|
|
11
|
+
exports.EAS_SIMULATOR_WAITLIST_URL = 'https://expo.dev/services/simulators';
|
|
12
|
+
/**
|
|
13
|
+
* Message shown when EAS Simulator is not enabled for the account. Shared by every
|
|
14
|
+
* command that can hit the gate so users always get the same waitlist pointer.
|
|
15
|
+
*/
|
|
16
|
+
function formatSimulatorUnavailableMessage(accountName) {
|
|
17
|
+
return [
|
|
18
|
+
`EAS Simulator isn't available on ${accountName} yet — it's coming soon.`,
|
|
19
|
+
`Join the waitlist to get access: ${(0, log_1.link)(exports.EAS_SIMULATOR_WAITLIST_URL)}`,
|
|
20
|
+
].join('\n');
|
|
21
|
+
}
|
|
8
22
|
// Mapping enum -> CLI flag value. Declared as Record<DeviceRunSessionType, string>
|
|
9
23
|
// so adding a new enum value in codegen fails the build until it is wired up here.
|
|
10
24
|
exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = {
|
|
@@ -17,6 +17,9 @@ const areSetsEqual_1 = tslib_1.__importDefault(require("./expodash/areSetsEqual"
|
|
|
17
17
|
async function getCodeSigningInfoAsync(config, privateKeyPath) {
|
|
18
18
|
const codeSigningCertificatePath = config.updates?.codeSigningCertificate;
|
|
19
19
|
if (!codeSigningCertificatePath) {
|
|
20
|
+
if (privateKeyPath) {
|
|
21
|
+
throw new Error('--private-key-path was specified, but updates.codeSigningCertificate is not set in the resolved app config. Code signing requires both the certificate in app config and the private key. Ensure codeSigningCertificate (and codeSigningMetadata) are present for this publish, or omit --private-key-path if you do not intend to sign.\nLearn more: https://docs.expo.dev/eas-update/code-signing/');
|
|
22
|
+
}
|
|
20
23
|
return undefined;
|
|
21
24
|
}
|
|
22
25
|
if (!privateKeyPath) {
|