eas-cli 20.5.1 → 21.0.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 +171 -178
- package/build/analytics/AnalyticsManager.js +3 -0
- package/build/analytics/agent.d.ts +5 -0
- package/build/analytics/agent.js +26 -0
- package/build/build/utils/url.d.ts +1 -0
- package/build/build/utils/url.js +6 -1
- package/build/commandUtils/workflow/buildProfileUtils.d.ts +11 -29
- package/build/commandUtils/workflow/buildProfileUtils.js +47 -126
- package/build/commandUtils/workflow/creation.d.ts +11 -3
- package/build/commandUtils/workflow/creation.js +151 -261
- package/build/commands/browse.d.ts +17 -0
- package/build/commands/browse.js +90 -0
- package/build/commands/deploy/index.d.ts +1 -0
- package/build/commands/deploy/index.js +15 -1
- package/build/commands/integrations/posthog/dashboard.d.ts +1 -0
- package/build/commands/integrations/posthog/dashboard.js +30 -6
- package/build/commands/observe/metrics.js +1 -1
- package/build/commands/open.d.ts +1 -4
- package/build/commands/open.js +4 -32
- package/build/commands/project/delete.d.ts +16 -0
- package/build/commands/project/delete.js +129 -0
- package/build/commands/project/init.d.ts +0 -7
- package/build/commands/project/init.js +4 -274
- package/build/commands/simulator/get.js +57 -4
- package/build/commands/simulator/start.js +1 -0
- package/build/commands/workflow/create.d.ts +3 -0
- package/build/commands/workflow/create.js +118 -87
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +9 -3
- package/build/graphql/generated.d.ts +253 -253
- package/build/graphql/generated.js +41 -4
- package/build/graphql/mutations/AppMutation.d.ts +2 -0
- package/build/graphql/mutations/AppMutation.js +19 -0
- package/build/graphql/mutations/PostHogMutation.d.ts +2 -1
- package/build/graphql/mutations/PostHogMutation.js +14 -0
- package/build/graphql/queries/DeviceRunSessionQuery.js +15 -0
- package/build/graphql/queries/UserQuery.js +0 -10
- package/build/graphql/queries/WorkflowRunQuery.js +1 -0
- package/build/integrations/asc/utils.js +6 -4
- package/build/observe/metricNames.d.ts +1 -1
- package/build/observe/metricNames.js +7 -6
- package/build/project/android/applicationId.d.ts +2 -1
- package/build/project/android/applicationId.js +19 -11
- package/build/project/ios/bundleIdentifier.d.ts +2 -1
- package/build/project/ios/bundleIdentifier.js +19 -11
- package/build/project/projectInitialization.d.ts +9 -0
- package/build/project/projectInitialization.js +277 -0
- package/build/project/publish.js +73 -40
- package/build/user/sudo.d.ts +14 -0
- package/build/user/sudo.js +62 -0
- package/build/worker/deployment.d.ts +11 -1
- package/build/worker/deployment.js +71 -22
- package/build/worker/queries.d.ts +2 -1
- package/build/worker/queries.js +18 -0
- package/oclif.manifest.json +1764 -1602
- package/package.json +9 -8
- package/build/commands/project/onboarding.d.ts +0 -14
- package/build/commands/project/onboarding.js +0 -362
- package/build/graphql/mutations/UserPreferencesMutation.d.ts +0 -10
- package/build/graphql/mutations/UserPreferencesMutation.js +0 -41
|
@@ -12,6 +12,7 @@ const uuid_1 = require("uuid");
|
|
|
12
12
|
const User_1 = require("../user/User");
|
|
13
13
|
const UserSettings_1 = tslib_1.__importDefault(require("../user/UserSettings"));
|
|
14
14
|
const easCli_1 = require("../utils/easCli");
|
|
15
|
+
const agent_1 = require("./agent");
|
|
15
16
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
16
17
|
darwin: 'Mac',
|
|
17
18
|
win32: 'Windows',
|
|
@@ -180,10 +181,12 @@ class RudderstackAnalytics {
|
|
|
180
181
|
}
|
|
181
182
|
getRudderStackContext() {
|
|
182
183
|
const platform = PLATFORM_TO_ANALYTICS_PLATFORM[os_1.default.platform()] || os_1.default.platform();
|
|
184
|
+
const agent = (0, agent_1.getAgentTelemetryContext)();
|
|
183
185
|
return {
|
|
184
186
|
os: { name: platform, version: os_1.default.release() },
|
|
185
187
|
device: { type: platform, model: platform },
|
|
186
188
|
app: { name: 'eas cli', version: easCli_1.easCliVersion ?? undefined },
|
|
189
|
+
...(agent ? { agent } : {}),
|
|
187
190
|
};
|
|
188
191
|
}
|
|
189
192
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAgentTelemetryContext = getAgentTelemetryContext;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const agent_cli_detector_1 = require("agent-cli-detector");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
7
|
+
let agentTelemetryContext;
|
|
8
|
+
function getAgentTelemetryContext() {
|
|
9
|
+
if (agentTelemetryContext === undefined) {
|
|
10
|
+
agentTelemetryContext = resolveAgentTelemetryContext();
|
|
11
|
+
}
|
|
12
|
+
return agentTelemetryContext;
|
|
13
|
+
}
|
|
14
|
+
function resolveAgentTelemetryContext() {
|
|
15
|
+
try {
|
|
16
|
+
const { agent, detected } = (0, agent_cli_detector_1.detectAgent)();
|
|
17
|
+
if (!detected || agent == null) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return { id: agent.id, sessionId: agent.sessionId };
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
log_1.default.debug('Failed to detect coding agent:', error?.message ?? error);
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BuildFragment } from '../../graphql/generated';
|
|
2
2
|
export declare function getProjectDashboardUrl(accountName: string, projectName: string): string;
|
|
3
|
+
export declare function getProjectPageUrl(accountName: string, projectName: string, page?: string | null): string;
|
|
3
4
|
export declare function getBuildLogsUrl(build: BuildFragment, hash?: string): string;
|
|
4
5
|
export declare function getArtifactUrl(artifactId: string): string;
|
|
5
6
|
export declare function getInternalDistributionInstallUrl(build: BuildFragment): string;
|
package/build/build/utils/url.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getProjectDashboardUrl = getProjectDashboardUrl;
|
|
4
|
+
exports.getProjectPageUrl = getProjectPageUrl;
|
|
4
5
|
exports.getBuildLogsUrl = getBuildLogsUrl;
|
|
5
6
|
exports.getArtifactUrl = getArtifactUrl;
|
|
6
7
|
exports.getInternalDistributionInstallUrl = getInternalDistributionInstallUrl;
|
|
@@ -15,7 +16,11 @@ const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
|
15
16
|
const api_1 = require("../../api");
|
|
16
17
|
const generated_1 = require("../../graphql/generated");
|
|
17
18
|
function getProjectDashboardUrl(accountName, projectName) {
|
|
18
|
-
return
|
|
19
|
+
return getProjectPageUrl(accountName, projectName);
|
|
20
|
+
}
|
|
21
|
+
function getProjectPageUrl(accountName, projectName, page) {
|
|
22
|
+
const projectPath = `/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}`;
|
|
23
|
+
return new URL(page ? `${projectPath}/${page}` : projectPath, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
19
24
|
}
|
|
20
25
|
function getBuildLogsUrl(build, hash) {
|
|
21
26
|
const { project } = build;
|
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Client } from '../../vcs/vcs';
|
|
3
|
+
export declare const DEVELOPMENT_BUILD_PROFILE_NAME = "development";
|
|
4
|
+
export declare const DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME = "development-ios-simulator";
|
|
4
5
|
export declare function buildProfileNamesFromProjectAsync(projectDir: string): Promise<Set<string>>;
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function buildProfilesFromProjectAsync(projectDir: string): Promise<Map<string, {
|
|
7
|
-
android: AndroidBuildProfile;
|
|
8
|
-
ios: IosBuildProfile;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare function isBuildProfileForDevelopment(buildProfile: BuildProfile<Platform>, platform: Platform): boolean;
|
|
11
|
-
export declare function isIosBuildProfileForSimulator(buildProfile: BuildProfile<Platform.IOS>): boolean;
|
|
12
|
-
export declare function addAndroidDevelopmentBuildProfileToEasJsonAsync(projectDir: string, buildProfileName: string): Promise<void>;
|
|
13
|
-
export declare function addIosDevelopmentBuildProfileToEasJsonAsync(projectDir: string, buildProfileName: string, simulator: boolean): Promise<void>;
|
|
6
|
+
export declare function ensureDevelopmentBuildProfilesExistAsync(projectDir: string): Promise<void>;
|
|
14
7
|
export declare function addProductionBuildProfileToEasJsonIfNeededAsync(projectDir: string): Promise<boolean>;
|
|
15
|
-
export declare function
|
|
8
|
+
export declare function configureEasUpdateIfNeededAsync({ projectDir, expoConfig, projectId, vcsClient, }: {
|
|
16
9
|
projectDir: string;
|
|
17
10
|
expoConfig: ExpoConfig;
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
projectId: string;
|
|
12
|
+
vcsClient: Client;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
export declare function configureEasBuildIfNeededAsync({ projectDir, expoConfig, vcsClient, }: {
|
|
20
15
|
projectDir: string;
|
|
21
16
|
expoConfig: ExpoConfig;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* Runs update:configure if needed. Returns a boolean (proceed with workflow creation, or not)
|
|
25
|
-
*/
|
|
26
|
-
export declare function runUpdateConfigureIfNeededAsync({ projectDir, expoConfig, }: {
|
|
27
|
-
projectDir: string;
|
|
28
|
-
expoConfig: ExpoConfig;
|
|
29
|
-
}): Promise<boolean>;
|
|
30
|
-
/**
|
|
31
|
-
* Runs build:configure if needed. Returns a boolean (proceed with workflow creation, or not)
|
|
32
|
-
*/
|
|
33
|
-
export declare function runBuildConfigureIfNeededAsync({ projectDir, expoConfig, }: {
|
|
34
|
-
projectDir: string;
|
|
35
|
-
expoConfig: ExpoConfig;
|
|
36
|
-
}): Promise<boolean>;
|
|
17
|
+
vcsClient: Client;
|
|
18
|
+
}): Promise<void>;
|
|
@@ -1,94 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME = exports.DEVELOPMENT_BUILD_PROFILE_NAME = void 0;
|
|
3
4
|
exports.buildProfileNamesFromProjectAsync = buildProfileNamesFromProjectAsync;
|
|
4
|
-
exports.
|
|
5
|
-
exports.buildProfilesFromProjectAsync = buildProfilesFromProjectAsync;
|
|
6
|
-
exports.isBuildProfileForDevelopment = isBuildProfileForDevelopment;
|
|
7
|
-
exports.isIosBuildProfileForSimulator = isIosBuildProfileForSimulator;
|
|
8
|
-
exports.addAndroidDevelopmentBuildProfileToEasJsonAsync = addAndroidDevelopmentBuildProfileToEasJsonAsync;
|
|
9
|
-
exports.addIosDevelopmentBuildProfileToEasJsonAsync = addIosDevelopmentBuildProfileToEasJsonAsync;
|
|
5
|
+
exports.ensureDevelopmentBuildProfilesExistAsync = ensureDevelopmentBuildProfilesExistAsync;
|
|
10
6
|
exports.addProductionBuildProfileToEasJsonIfNeededAsync = addProductionBuildProfileToEasJsonIfNeededAsync;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.runUpdateConfigureIfNeededAsync = runUpdateConfigureIfNeededAsync;
|
|
14
|
-
exports.runBuildConfigureIfNeededAsync = runBuildConfigureIfNeededAsync;
|
|
7
|
+
exports.configureEasUpdateIfNeededAsync = configureEasUpdateIfNeededAsync;
|
|
8
|
+
exports.configureEasBuildIfNeededAsync = configureEasBuildIfNeededAsync;
|
|
15
9
|
const tslib_1 = require("tslib");
|
|
16
10
|
const eas_json_1 = require("@expo/eas-json");
|
|
17
|
-
const configure_1 =
|
|
18
|
-
const configure_2 = tslib_1.__importDefault(require("../../commands/update/configure"));
|
|
11
|
+
const configure_1 = require("../../build/configure");
|
|
19
12
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
20
|
-
const
|
|
13
|
+
const platform_1 = require("../../platform");
|
|
14
|
+
const configure_2 = require("../../update/configure");
|
|
15
|
+
exports.DEVELOPMENT_BUILD_PROFILE_NAME = 'development';
|
|
16
|
+
exports.DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME = 'development-ios-simulator';
|
|
21
17
|
async function buildProfileNamesFromProjectAsync(projectDir) {
|
|
22
18
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
23
19
|
const buildProfileNames = new Set(easJsonAccessor && (await eas_json_1.EasJsonUtils.getBuildProfileNamesAsync(easJsonAccessor)));
|
|
24
20
|
return buildProfileNames;
|
|
25
21
|
}
|
|
26
|
-
async function
|
|
27
|
-
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
28
|
-
const buildProfile = await eas_json_1.EasJsonUtils.getBuildProfileAsync(easJsonAccessor, platform, profileName);
|
|
29
|
-
return buildProfile;
|
|
30
|
-
}
|
|
31
|
-
async function buildProfilesFromProjectAsync(projectDir) {
|
|
32
|
-
const buildProfileNames = await buildProfileNamesFromProjectAsync(projectDir);
|
|
33
|
-
const buildProfiles = new Map();
|
|
34
|
-
for (const profileName of buildProfileNames) {
|
|
35
|
-
const iosBuildProfile = (await getBuildProfileAsync(projectDir, eas_json_1.Platform.IOS, profileName));
|
|
36
|
-
const androidBuildProfile = (await getBuildProfileAsync(projectDir, eas_json_1.Platform.ANDROID, profileName));
|
|
37
|
-
buildProfiles.set(profileName, { android: androidBuildProfile, ios: iosBuildProfile });
|
|
38
|
-
}
|
|
39
|
-
return buildProfiles;
|
|
40
|
-
}
|
|
41
|
-
function isBuildProfileForDevelopment(buildProfile, platform) {
|
|
42
|
-
if (buildProfile.developmentClient) {
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
if (platform === eas_json_1.Platform.ANDROID) {
|
|
46
|
-
return buildProfile.gradleCommand === ':app:assembleDebug';
|
|
47
|
-
}
|
|
48
|
-
if (platform === eas_json_1.Platform.IOS) {
|
|
49
|
-
return buildProfile.buildConfiguration === 'Debug';
|
|
50
|
-
}
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
function isIosBuildProfileForSimulator(buildProfile) {
|
|
54
|
-
return buildProfile.simulator ?? false;
|
|
55
|
-
}
|
|
56
|
-
async function addAndroidDevelopmentBuildProfileToEasJsonAsync(projectDir, buildProfileName) {
|
|
22
|
+
async function ensureDevelopmentBuildProfilesExistAsync(projectDir) {
|
|
57
23
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
58
24
|
await easJsonAccessor.readRawJsonAsync();
|
|
25
|
+
const addedProfiles = [];
|
|
59
26
|
easJsonAccessor.patch(easJsonRawObject => {
|
|
60
|
-
easJsonRawObject.build = {
|
|
61
|
-
|
|
62
|
-
[
|
|
27
|
+
easJsonRawObject.build = easJsonRawObject.build ?? {};
|
|
28
|
+
if (!easJsonRawObject.build[exports.DEVELOPMENT_BUILD_PROFILE_NAME]) {
|
|
29
|
+
easJsonRawObject.build[exports.DEVELOPMENT_BUILD_PROFILE_NAME] = {
|
|
63
30
|
developmentClient: true,
|
|
64
31
|
distribution: 'internal',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return easJsonRawObject;
|
|
71
|
-
});
|
|
72
|
-
await easJsonAccessor.writeAsync();
|
|
73
|
-
}
|
|
74
|
-
async function addIosDevelopmentBuildProfileToEasJsonAsync(projectDir, buildProfileName, simulator) {
|
|
75
|
-
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
76
|
-
await easJsonAccessor.readRawJsonAsync();
|
|
77
|
-
easJsonAccessor.patch(easJsonRawObject => {
|
|
78
|
-
easJsonRawObject.build = {
|
|
79
|
-
...easJsonRawObject.build,
|
|
80
|
-
[buildProfileName]: {
|
|
32
|
+
};
|
|
33
|
+
addedProfiles.push(exports.DEVELOPMENT_BUILD_PROFILE_NAME);
|
|
34
|
+
}
|
|
35
|
+
if (!easJsonRawObject.build[exports.DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME]) {
|
|
36
|
+
easJsonRawObject.build[exports.DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME] = {
|
|
81
37
|
developmentClient: true,
|
|
82
|
-
distribution: 'internal',
|
|
83
38
|
ios: {
|
|
84
|
-
|
|
85
|
-
simulator,
|
|
39
|
+
simulator: true,
|
|
86
40
|
},
|
|
87
|
-
}
|
|
88
|
-
|
|
41
|
+
};
|
|
42
|
+
addedProfiles.push(exports.DEVELOPMENT_IOS_SIMULATOR_BUILD_PROFILE_NAME);
|
|
43
|
+
}
|
|
89
44
|
return easJsonRawObject;
|
|
90
45
|
});
|
|
91
46
|
await easJsonAccessor.writeAsync();
|
|
47
|
+
if (addedProfiles.length > 0) {
|
|
48
|
+
log_1.default.log(`Added the following build profiles to eas.json: ${addedProfiles.join(', ')}`);
|
|
49
|
+
}
|
|
92
50
|
}
|
|
93
51
|
async function addProductionBuildProfileToEasJsonIfNeededAsync(projectDir) {
|
|
94
52
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -145,65 +103,28 @@ async function hasUpdateConfigureBeenRunAsync({ projectDir, expoConfig, }) {
|
|
|
145
103
|
return false;
|
|
146
104
|
}
|
|
147
105
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
async function runUpdateConfigureIfNeededAsync({ projectDir, expoConfig, }) {
|
|
152
|
-
if (await hasUpdateConfigureBeenRunAsync({
|
|
153
|
-
projectDir,
|
|
154
|
-
expoConfig,
|
|
155
|
-
})) {
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
const nextStep = (await (0, prompts_1.promptAsync)({
|
|
159
|
-
type: 'select',
|
|
160
|
-
name: 'nextStep',
|
|
161
|
-
message: 'You have chosen to create a workflow that requires EAS Update configuration. What would you like to do?',
|
|
162
|
-
choices: [
|
|
163
|
-
{ title: 'Configure EAS Update and then proceed', value: 'configure' },
|
|
164
|
-
{ title: 'EAS Update is already configured, proceed', value: 'proceed' },
|
|
165
|
-
{ title: 'Choose a different workflow template', value: 'repeat' },
|
|
166
|
-
],
|
|
167
|
-
})).nextStep;
|
|
168
|
-
switch (nextStep) {
|
|
169
|
-
case 'configure':
|
|
170
|
-
log_1.default.newLine();
|
|
171
|
-
await configure_2.default.run([]);
|
|
172
|
-
return true;
|
|
173
|
-
case 'proceed':
|
|
174
|
-
return true;
|
|
175
|
-
default:
|
|
176
|
-
return false;
|
|
106
|
+
async function configureEasUpdateIfNeededAsync({ projectDir, expoConfig, projectId, vcsClient, }) {
|
|
107
|
+
if (await hasUpdateConfigureBeenRunAsync({ projectDir, expoConfig })) {
|
|
108
|
+
return;
|
|
177
109
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (await hasBuildConfigureBeenRunAsync({
|
|
110
|
+
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
111
|
+
const easJsonCliConfig = (await eas_json_1.EasJsonUtils.getCliConfigAsync(easJsonAccessor)) ?? {};
|
|
112
|
+
await (0, configure_2.ensureEASUpdateIsConfiguredAsync)({
|
|
113
|
+
exp: expoConfig,
|
|
114
|
+
projectId,
|
|
184
115
|
projectDir,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
],
|
|
198
|
-
})).nextStep;
|
|
199
|
-
switch (nextStep) {
|
|
200
|
-
case 'configure':
|
|
201
|
-
log_1.default.newLine();
|
|
202
|
-
await configure_1.default.run(['-p', 'all']);
|
|
203
|
-
return true;
|
|
204
|
-
case 'proceed':
|
|
205
|
-
return true;
|
|
206
|
-
default:
|
|
207
|
-
return false;
|
|
116
|
+
vcsClient,
|
|
117
|
+
platform: platform_1.RequestedPlatform.All,
|
|
118
|
+
env: undefined,
|
|
119
|
+
forceNativeConfigSync: true,
|
|
120
|
+
manifestHostOverride: easJsonCliConfig?.updateManifestHostOverride ?? null,
|
|
121
|
+
});
|
|
122
|
+
await (0, configure_2.ensureEASUpdateIsConfiguredInEasJsonAsync)(projectDir);
|
|
123
|
+
log_1.default.withTick('Configured EAS Update');
|
|
124
|
+
}
|
|
125
|
+
async function configureEasBuildIfNeededAsync({ projectDir, expoConfig, vcsClient, }) {
|
|
126
|
+
if (await hasBuildConfigureBeenRunAsync({ projectDir, expoConfig })) {
|
|
127
|
+
return;
|
|
208
128
|
}
|
|
129
|
+
await (0, configure_1.ensureProjectConfiguredAsync)({ projectDir, nonInteractive: false, vcsClient });
|
|
209
130
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
|
+
import { ExpoGraphqlClient } from '../context/contextUtils/createGraphqlClient';
|
|
3
|
+
import { Client } from '../../vcs/vcs';
|
|
2
4
|
export declare enum WorkflowStarterName {
|
|
3
5
|
BUILD = "build",
|
|
4
6
|
UPDATE = "update",
|
|
@@ -13,8 +15,14 @@ export type WorkflowStarter = {
|
|
|
13
15
|
header: string;
|
|
14
16
|
nextSteps?: string[];
|
|
15
17
|
};
|
|
18
|
+
export declare const PLACEHOLDER_WORKFLOW_CONTENTS = "name: # Workflow name\n\non: # Add triggers https://docs.expo.dev/eas/workflows/syntax/#on\n\njobs: # Add pre-packaged jobs https://docs.expo.dev/eas/workflows/pre-packaged-jobs/. See all syntax https://docs.expo.dev/eas/workflows/syntax/#jobs.\n";
|
|
16
19
|
export declare function howToRunWorkflow(workflowFileName: string, workflowStarter: WorkflowStarter): string;
|
|
17
20
|
export declare const workflowStarters: WorkflowStarter[];
|
|
18
|
-
export declare function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
export declare function customizeTemplateIfNeededAsync({ workflowStarter, projectDir, expoConfig, graphqlClient, projectId, vcsClient, }: {
|
|
22
|
+
workflowStarter: WorkflowStarter;
|
|
23
|
+
projectDir: string;
|
|
24
|
+
expoConfig: ExpoConfig;
|
|
25
|
+
graphqlClient: ExpoGraphqlClient;
|
|
26
|
+
projectId: string;
|
|
27
|
+
vcsClient: Client;
|
|
28
|
+
}): Promise<WorkflowStarter>;
|