eas-cli 3.13.1 → 3.13.3
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 +68 -67
- package/build/build/build.js +16 -6
- package/build/build/createContext.d.ts +2 -2
- package/build/build/createContext.js +2 -2
- package/build/build/local.js +1 -1
- package/build/build/runBuildAndSubmit.d.ts +1 -1
- package/build/build/runBuildAndSubmit.js +6 -5
- package/build/build/types.d.ts +1 -0
- package/build/build/types.js +1 -0
- package/build/build/utils/formatBuild.js +2 -0
- package/build/build/utils/printBuildInfo.js +1 -1
- package/build/commandUtils/EasCommand.d.ts +7 -6
- package/build/commandUtils/EasCommand.js +7 -5
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +5 -2
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +24 -5
- package/build/commandUtils/context/{OptionalProjectConfigContextField.d.ts → OptionalPrivateProjectConfigContextField.d.ts} +1 -1
- package/build/commandUtils/context/{OptionalProjectConfigContextField.js → OptionalPrivateProjectConfigContextField.js} +5 -5
- package/build/commandUtils/context/{ProjectConfigContextField.d.ts → PrivateProjectConfigContextField.d.ts} +1 -1
- package/build/commandUtils/context/{ProjectConfigContextField.js → PrivateProjectConfigContextField.js} +5 -4
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +1 -1
- package/build/commands/branch/create.d.ts +1 -1
- package/build/commands/branch/create.js +1 -1
- package/build/commands/branch/delete.d.ts +1 -1
- package/build/commands/branch/delete.js +1 -1
- package/build/commands/branch/list.d.ts +1 -1
- package/build/commands/branch/list.js +1 -1
- package/build/commands/branch/rename.d.ts +1 -1
- package/build/commands/branch/rename.js +1 -1
- package/build/commands/branch/view.d.ts +1 -1
- package/build/commands/branch/view.js +1 -1
- package/build/commands/build/cancel.d.ts +1 -1
- package/build/commands/build/cancel.js +2 -2
- package/build/commands/build/configure.d.ts +1 -1
- package/build/commands/build/configure.js +1 -1
- package/build/commands/build/index.d.ts +2 -1
- package/build/commands/build/index.js +2 -2
- package/build/commands/build/inspect.d.ts +2 -1
- package/build/commands/build/inspect.js +2 -2
- package/build/commands/build/internal.d.ts +2 -1
- package/build/commands/build/internal.js +2 -2
- package/build/commands/build/list.d.ts +1 -1
- package/build/commands/build/list.js +5 -1
- package/build/commands/build/resign.d.ts +2 -1
- package/build/commands/build/resign.js +2 -2
- package/build/commands/build/run.d.ts +1 -1
- package/build/commands/build/run.js +1 -1
- package/build/commands/build/version/get.d.ts +2 -1
- package/build/commands/build/version/get.js +2 -2
- package/build/commands/build/version/set.d.ts +2 -1
- package/build/commands/build/version/set.js +2 -2
- package/build/commands/build/version/sync.d.ts +2 -1
- package/build/commands/build/version/sync.js +2 -2
- package/build/commands/build/view.d.ts +1 -1
- package/build/commands/build/view.js +1 -1
- package/build/commands/channel/create.d.ts +1 -1
- package/build/commands/channel/create.js +1 -1
- package/build/commands/channel/delete.d.ts +1 -1
- package/build/commands/channel/delete.js +1 -1
- package/build/commands/channel/edit.d.ts +1 -1
- package/build/commands/channel/edit.js +1 -1
- package/build/commands/channel/list.d.ts +1 -1
- package/build/commands/channel/list.js +1 -1
- package/build/commands/channel/rollout.d.ts +1 -1
- package/build/commands/channel/rollout.js +1 -1
- package/build/commands/channel/view.d.ts +1 -1
- package/build/commands/channel/view.js +1 -1
- package/build/commands/config.d.ts +2 -1
- package/build/commands/config.js +2 -3
- package/build/commands/credentials.d.ts +3 -2
- package/build/commands/credentials.js +2 -2
- package/build/commands/device/create.d.ts +1 -1
- package/build/commands/device/create.js +2 -2
- package/build/commands/device/delete.d.ts +1 -1
- package/build/commands/device/delete.js +1 -1
- package/build/commands/device/list.d.ts +1 -1
- package/build/commands/device/list.js +1 -1
- package/build/commands/device/rename.d.ts +1 -1
- package/build/commands/device/rename.js +1 -1
- package/build/commands/device/view.d.ts +1 -1
- package/build/commands/device/view.js +1 -1
- package/build/commands/metadata/pull.d.ts +1 -1
- package/build/commands/metadata/pull.js +1 -1
- package/build/commands/metadata/push.d.ts +1 -1
- package/build/commands/metadata/push.js +1 -1
- package/build/commands/open.d.ts +1 -1
- package/build/commands/open.js +1 -1
- package/build/commands/project/info.d.ts +1 -1
- package/build/commands/project/info.js +1 -1
- package/build/commands/project/init.js +3 -3
- package/build/commands/secret/create.d.ts +1 -1
- package/build/commands/secret/create.js +1 -1
- package/build/commands/secret/delete.d.ts +1 -1
- package/build/commands/secret/delete.js +1 -1
- package/build/commands/secret/list.d.ts +1 -1
- package/build/commands/secret/list.js +1 -1
- package/build/commands/secret/push.d.ts +1 -1
- package/build/commands/secret/push.js +1 -1
- package/build/commands/submit.d.ts +1 -1
- package/build/commands/submit.js +1 -1
- package/build/commands/update/configure.d.ts +1 -1
- package/build/commands/update/configure.js +1 -1
- package/build/commands/update/index.d.ts +2 -1
- package/build/commands/update/index.js +44 -11
- package/build/commands/update/list.d.ts +1 -1
- package/build/commands/update/list.js +1 -1
- package/build/commands/update/republish.d.ts +1 -1
- package/build/commands/update/republish.js +1 -1
- package/build/commands/update/roll-back-to-embedded.d.ts +2 -1
- package/build/commands/update/roll-back-to-embedded.js +4 -8
- package/build/commands/webhook/create.d.ts +1 -1
- package/build/commands/webhook/create.js +1 -1
- package/build/commands/webhook/delete.d.ts +1 -1
- package/build/commands/webhook/delete.js +1 -1
- package/build/commands/webhook/list.d.ts +1 -1
- package/build/commands/webhook/list.js +1 -1
- package/build/credentials/context.d.ts +0 -3
- package/build/credentials/context.js +1 -10
- package/build/credentials/manager/HelperActions.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +1 -1
- package/build/credentials/manager/ManageIos.js +1 -1
- package/build/credentials/manager/SelectPlatform.d.ts +2 -2
- package/build/credentials/manager/SelectPlatform.js +2 -2
- package/build/graphql/generated.d.ts +50 -10
- package/build/graphql/generated.js +2 -0
- package/build/project/expoConfig.d.ts +7 -2
- package/build/project/expoConfig.js +10 -3
- package/build/project/publish.d.ts +8 -1
- package/build/project/publish.js +19 -5
- package/build/update/android/UpdatesModule.d.ts +3 -0
- package/build/update/android/UpdatesModule.js +11 -0
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -39,7 +39,7 @@ const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
|
39
39
|
const repository_1 = require("./utils/repository");
|
|
40
40
|
let metroConfigValidated = false;
|
|
41
41
|
let sdkVersionChecked = false;
|
|
42
|
-
async function runBuildAndSubmitAsync(graphqlClient, analytics, projectDir, flags, actor,
|
|
42
|
+
async function runBuildAndSubmitAsync(graphqlClient, analytics, projectDir, flags, actor, getDynamicPrivateProjectConfigAsync) {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
await (0, vcs_1.getVcsClient)().ensureRepoExistsAsync();
|
|
45
45
|
await (0, repository_1.ensureRepoIsCleanAsync)(flags.nonInteractive);
|
|
@@ -82,7 +82,7 @@ async function runBuildAndSubmitAsync(graphqlClient, analytics, projectDir, flag
|
|
|
82
82
|
actor,
|
|
83
83
|
graphqlClient,
|
|
84
84
|
analytics,
|
|
85
|
-
|
|
85
|
+
getDynamicPrivateProjectConfigAsync,
|
|
86
86
|
customBuildConfigMetadata: customBuildConfigMetadataByPlatform[platform],
|
|
87
87
|
});
|
|
88
88
|
if (maybeBuild) {
|
|
@@ -138,7 +138,8 @@ async function runBuildAndSubmitAsync(graphqlClient, analytics, projectDir, flag
|
|
|
138
138
|
if (!flags.json) {
|
|
139
139
|
(0, printBuildInfo_1.printBuildResults)(builds);
|
|
140
140
|
}
|
|
141
|
-
const haveAllBuildsFailedOrCanceled = builds.every(build => (build === null || build === void 0 ? void 0 : build.status) &&
|
|
141
|
+
const haveAllBuildsFailedOrCanceled = builds.every(build => (build === null || build === void 0 ? void 0 : build.status) &&
|
|
142
|
+
[generated_1.BuildStatus.Errored, generated_1.BuildStatus.Canceled, generated_1.BuildStatus.PendingCancel].includes(build === null || build === void 0 ? void 0 : build.status));
|
|
142
143
|
await maybeDownloadAndRunSimulatorBuildsAsync(builds, flags);
|
|
143
144
|
if (haveAllBuildsFailedOrCanceled || !flags.autoSubmit) {
|
|
144
145
|
if (flags.json) {
|
|
@@ -157,7 +158,7 @@ async function runBuildAndSubmitAsync(graphqlClient, analytics, projectDir, flag
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
|
|
160
|
-
async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, easJsonCliConfig, actor, graphqlClient, analytics,
|
|
161
|
+
async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, easJsonCliConfig, actor, graphqlClient, analytics, getDynamicPrivateProjectConfigAsync, customBuildConfigMetadata, }) {
|
|
161
162
|
const buildCtx = await (0, createContext_1.createBuildContextAsync)({
|
|
162
163
|
buildProfileName: buildProfile.profileName,
|
|
163
164
|
resourceClassFlag: flags.resourceClass,
|
|
@@ -173,7 +174,7 @@ async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildP
|
|
|
173
174
|
actor,
|
|
174
175
|
graphqlClient,
|
|
175
176
|
analytics,
|
|
176
|
-
|
|
177
|
+
getDynamicPrivateProjectConfigAsync,
|
|
177
178
|
customBuildConfigMetadata,
|
|
178
179
|
});
|
|
179
180
|
if (moreBuilds) {
|
package/build/build/types.d.ts
CHANGED
package/build/build/types.js
CHANGED
|
@@ -6,6 +6,7 @@ var BuildStatus;
|
|
|
6
6
|
BuildStatus["NEW"] = "new";
|
|
7
7
|
BuildStatus["IN_QUEUE"] = "in-queue";
|
|
8
8
|
BuildStatus["IN_PROGRESS"] = "in-progress";
|
|
9
|
+
BuildStatus["PENDING_CANCEL"] = "pending-cancel";
|
|
9
10
|
BuildStatus["ERRORED"] = "errored";
|
|
10
11
|
BuildStatus["FINISHED"] = "finished";
|
|
11
12
|
BuildStatus["CANCELED"] = "canceled";
|
|
@@ -26,6 +26,7 @@ function formatGraphQLBuild(build) {
|
|
|
26
26
|
return chalk_1.default.blue('in queue');
|
|
27
27
|
case generated_1.BuildStatus.InProgress:
|
|
28
28
|
return chalk_1.default.blue('in progress');
|
|
29
|
+
case generated_1.BuildStatus.PendingCancel:
|
|
29
30
|
case generated_1.BuildStatus.Canceled:
|
|
30
31
|
return chalk_1.default.gray('canceled');
|
|
31
32
|
case generated_1.BuildStatus.Finished:
|
|
@@ -90,6 +91,7 @@ function formatGraphQLBuild(build) {
|
|
|
90
91
|
case generated_1.BuildStatus.InQueue:
|
|
91
92
|
case generated_1.BuildStatus.InProgress:
|
|
92
93
|
return '<in progress>';
|
|
94
|
+
case generated_1.BuildStatus.PendingCancel:
|
|
93
95
|
case generated_1.BuildStatus.Canceled:
|
|
94
96
|
case generated_1.BuildStatus.Errored:
|
|
95
97
|
return null;
|
|
@@ -59,7 +59,7 @@ function printBuildResult(build) {
|
|
|
59
59
|
}
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if ([generated_1.BuildStatus.Canceled, generated_1.BuildStatus.PendingCancel].includes(build.status)) {
|
|
63
63
|
log_1.default.addNewLineIfNone();
|
|
64
64
|
log_1.default.error(`${platform_1.appPlatformEmojis[build.platform]} ${platform_1.appPlatformDisplayNames[build.platform]} build was canceled`);
|
|
65
65
|
return;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command } from '@oclif/core';
|
|
2
2
|
import AnalyticsContextField from './context/AnalyticsContextField';
|
|
3
3
|
import ContextField from './context/ContextField';
|
|
4
|
-
import {
|
|
4
|
+
import { DynamicPrivateProjectConfigContextField, DynamicPublicProjectConfigContextField } from './context/DynamicProjectConfigContextField';
|
|
5
5
|
import LoggedInContextField from './context/LoggedInContextField';
|
|
6
6
|
import MaybeLoggedInContextField from './context/MaybeLoggedInContextField';
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
7
|
+
import { OptionalPrivateProjectConfigContextField } from './context/OptionalPrivateProjectConfigContextField';
|
|
8
|
+
import { PrivateProjectConfigContextField } from './context/PrivateProjectConfigContextField';
|
|
9
9
|
import ProjectDirContextField from './context/ProjectDirContextField';
|
|
10
10
|
import SessionManagementContextField from './context/SessionManagementContextField';
|
|
11
11
|
export type ContextInput<T extends {
|
|
@@ -45,7 +45,7 @@ export default abstract class EasCommand extends Command {
|
|
|
45
45
|
* run within a project directory, null otherwise.
|
|
46
46
|
*/
|
|
47
47
|
OptionalProjectConfig: {
|
|
48
|
-
|
|
48
|
+
privateProjectConfig: OptionalPrivateProjectConfigContextField;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* Require this command to be run in a project directory. Return the project directory in the context.
|
|
@@ -57,7 +57,8 @@ export default abstract class EasCommand extends Command {
|
|
|
57
57
|
* Provides functions to load the project config when dynamic config options are needed (custom Env for example).
|
|
58
58
|
*/
|
|
59
59
|
DynamicProjectConfig: {
|
|
60
|
-
|
|
60
|
+
getDynamicPublicProjectConfigAsync: DynamicPublicProjectConfigContextField;
|
|
61
|
+
getDynamicPrivateProjectConfigAsync: DynamicPrivateProjectConfigContextField;
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* Require the project to be identified and registered on server. Returns the project config in the context.
|
|
@@ -66,7 +67,7 @@ export default abstract class EasCommand extends Command {
|
|
|
66
67
|
*/
|
|
67
68
|
ProjectConfig: {
|
|
68
69
|
loggedIn: LoggedInContextField;
|
|
69
|
-
|
|
70
|
+
privateProjectConfig: PrivateProjectConfigContextField;
|
|
70
71
|
};
|
|
71
72
|
/**
|
|
72
73
|
* Analytics manager. Returns the analytics manager in the context for use by the command.
|
|
@@ -11,8 +11,8 @@ const AnalyticsContextField_1 = tslib_1.__importDefault(require("./context/Analy
|
|
|
11
11
|
const DynamicProjectConfigContextField_1 = require("./context/DynamicProjectConfigContextField");
|
|
12
12
|
const LoggedInContextField_1 = tslib_1.__importDefault(require("./context/LoggedInContextField"));
|
|
13
13
|
const MaybeLoggedInContextField_1 = tslib_1.__importDefault(require("./context/MaybeLoggedInContextField"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const OptionalPrivateProjectConfigContextField_1 = require("./context/OptionalPrivateProjectConfigContextField");
|
|
15
|
+
const PrivateProjectConfigContextField_1 = require("./context/PrivateProjectConfigContextField");
|
|
16
16
|
const ProjectDirContextField_1 = tslib_1.__importDefault(require("./context/ProjectDirContextField"));
|
|
17
17
|
const SessionManagementContextField_1 = tslib_1.__importDefault(require("./context/SessionManagementContextField"));
|
|
18
18
|
const errors_1 = require("./errors");
|
|
@@ -110,7 +110,7 @@ EasCommand.ContextOptions = {
|
|
|
110
110
|
* run within a project directory, null otherwise.
|
|
111
111
|
*/
|
|
112
112
|
OptionalProjectConfig: {
|
|
113
|
-
|
|
113
|
+
privateProjectConfig: new OptionalPrivateProjectConfigContextField_1.OptionalPrivateProjectConfigContextField(),
|
|
114
114
|
},
|
|
115
115
|
/**
|
|
116
116
|
* Require this command to be run in a project directory. Return the project directory in the context.
|
|
@@ -123,7 +123,9 @@ EasCommand.ContextOptions = {
|
|
|
123
123
|
*/
|
|
124
124
|
DynamicProjectConfig: {
|
|
125
125
|
// eslint-disable-next-line async-protect/async-suffix
|
|
126
|
-
|
|
126
|
+
getDynamicPublicProjectConfigAsync: new DynamicProjectConfigContextField_1.DynamicPublicProjectConfigContextField(),
|
|
127
|
+
// eslint-disable-next-line async-protect/async-suffix
|
|
128
|
+
getDynamicPrivateProjectConfigAsync: new DynamicProjectConfigContextField_1.DynamicPrivateProjectConfigContextField(),
|
|
127
129
|
},
|
|
128
130
|
/**
|
|
129
131
|
* Require the project to be identified and registered on server. Returns the project config in the context.
|
|
@@ -132,7 +134,7 @@ EasCommand.ContextOptions = {
|
|
|
132
134
|
*/
|
|
133
135
|
ProjectConfig: {
|
|
134
136
|
loggedIn: new LoggedInContextField_1.default(),
|
|
135
|
-
|
|
137
|
+
privateProjectConfig: new PrivateProjectConfigContextField_1.PrivateProjectConfigContextField(),
|
|
136
138
|
},
|
|
137
139
|
/**
|
|
138
140
|
* Analytics manager. Returns the analytics manager in the context for use by the command.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config-types';
|
|
2
2
|
import { ExpoConfigOptions } from '../../project/expoConfig';
|
|
3
3
|
import ContextField, { ContextOptions } from './ContextField';
|
|
4
|
-
export type DynamicConfigContextFn = (options
|
|
4
|
+
export type DynamicConfigContextFn = (options?: ExpoConfigOptions) => Promise<{
|
|
5
5
|
projectId: string;
|
|
6
6
|
exp: ExpoConfig;
|
|
7
7
|
projectDir: string;
|
|
8
8
|
}>;
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class DynamicPublicProjectConfigContextField extends ContextField<DynamicConfigContextFn> {
|
|
10
|
+
getValueAsync({ nonInteractive, sessionManager, }: ContextOptions): Promise<DynamicConfigContextFn>;
|
|
11
|
+
}
|
|
12
|
+
export declare class DynamicPrivateProjectConfigContextField extends ContextField<DynamicConfigContextFn> {
|
|
10
13
|
getValueAsync({ nonInteractive, sessionManager, }: ContextOptions): Promise<DynamicConfigContextFn>;
|
|
11
14
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DynamicPrivateProjectConfigContextField = exports.DynamicPublicProjectConfigContextField = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const expoConfig_1 = require("../../project/expoConfig");
|
|
6
6
|
const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
|
|
7
7
|
const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
|
|
8
8
|
const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
|
|
9
|
-
class
|
|
9
|
+
class DynamicPublicProjectConfigContextField extends ContextField_1.default {
|
|
10
10
|
async getValueAsync({ nonInteractive, sessionManager, }) {
|
|
11
11
|
const projectDir = await (0, findProjectDirAndVerifyProjectSetupAsync_1.findProjectDirAndVerifyProjectSetupAsync)();
|
|
12
12
|
return async (options) => {
|
|
13
|
-
const expBefore = (0, expoConfig_1.
|
|
13
|
+
const expBefore = (0, expoConfig_1.getPublicExpoConfig)(projectDir, options);
|
|
14
14
|
const projectId = await (0, getProjectIdAsync_1.getProjectIdAsync)(sessionManager, expBefore, {
|
|
15
15
|
nonInteractive,
|
|
16
16
|
env: options === null || options === void 0 ? void 0 : options.env,
|
|
17
17
|
});
|
|
18
|
-
const exp = (0, expoConfig_1.
|
|
18
|
+
const exp = (0, expoConfig_1.getPublicExpoConfig)(projectDir, options);
|
|
19
19
|
return {
|
|
20
20
|
exp,
|
|
21
21
|
projectDir,
|
|
@@ -24,4 +24,23 @@ class DynamicProjectConfigContextField extends ContextField_1.default {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
27
|
+
exports.DynamicPublicProjectConfigContextField = DynamicPublicProjectConfigContextField;
|
|
28
|
+
class DynamicPrivateProjectConfigContextField extends ContextField_1.default {
|
|
29
|
+
async getValueAsync({ nonInteractive, sessionManager, }) {
|
|
30
|
+
const projectDir = await (0, findProjectDirAndVerifyProjectSetupAsync_1.findProjectDirAndVerifyProjectSetupAsync)();
|
|
31
|
+
return async (options) => {
|
|
32
|
+
const expBefore = (0, expoConfig_1.getPrivateExpoConfig)(projectDir, options);
|
|
33
|
+
const projectId = await (0, getProjectIdAsync_1.getProjectIdAsync)(sessionManager, expBefore, {
|
|
34
|
+
nonInteractive,
|
|
35
|
+
env: options === null || options === void 0 ? void 0 : options.env,
|
|
36
|
+
});
|
|
37
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir, options);
|
|
38
|
+
return {
|
|
39
|
+
exp,
|
|
40
|
+
projectDir,
|
|
41
|
+
projectId,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DynamicPrivateProjectConfigContextField = DynamicPrivateProjectConfigContextField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config-types';
|
|
2
2
|
import ContextField, { ContextOptions } from './ContextField';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class OptionalPrivateProjectConfigContextField extends ContextField<{
|
|
4
4
|
projectId: string;
|
|
5
5
|
exp: ExpoConfig;
|
|
6
6
|
projectDir: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OptionalPrivateProjectConfigContextField = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const errors_1 = require("@expo/eas-json/build/errors");
|
|
6
6
|
const expoConfig_1 = require("../../project/expoConfig");
|
|
7
7
|
const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
|
|
8
8
|
const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
|
|
9
9
|
const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
|
|
10
|
-
class
|
|
10
|
+
class OptionalPrivateProjectConfigContextField extends ContextField_1.default {
|
|
11
11
|
async getValueAsync({ nonInteractive, sessionManager }) {
|
|
12
12
|
let projectDir;
|
|
13
13
|
try {
|
|
@@ -22,11 +22,11 @@ class OptionalProjectConfigContextField extends ContextField_1.default {
|
|
|
22
22
|
}
|
|
23
23
|
return undefined;
|
|
24
24
|
}
|
|
25
|
-
const expBefore = (0, expoConfig_1.
|
|
25
|
+
const expBefore = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
26
26
|
const projectId = await (0, getProjectIdAsync_1.getProjectIdAsync)(sessionManager, expBefore, {
|
|
27
27
|
nonInteractive,
|
|
28
28
|
});
|
|
29
|
-
const exp = (0, expoConfig_1.
|
|
29
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
30
30
|
return {
|
|
31
31
|
exp,
|
|
32
32
|
projectDir,
|
|
@@ -34,4 +34,4 @@ class OptionalProjectConfigContextField extends ContextField_1.default {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.
|
|
37
|
+
exports.OptionalPrivateProjectConfigContextField = OptionalPrivateProjectConfigContextField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config-types';
|
|
2
2
|
import ContextField, { ContextOptions } from './ContextField';
|
|
3
|
-
export
|
|
3
|
+
export declare class PrivateProjectConfigContextField extends ContextField<{
|
|
4
4
|
projectId: string;
|
|
5
5
|
exp: ExpoConfig;
|
|
6
6
|
projectDir: string;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivateProjectConfigContextField = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const expoConfig_1 = require("../../project/expoConfig");
|
|
5
6
|
const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
|
|
6
7
|
const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
|
|
7
8
|
const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
|
|
8
|
-
class
|
|
9
|
+
class PrivateProjectConfigContextField extends ContextField_1.default {
|
|
9
10
|
async getValueAsync({ nonInteractive, sessionManager }) {
|
|
10
11
|
const projectDir = await (0, findProjectDirAndVerifyProjectSetupAsync_1.findProjectDirAndVerifyProjectSetupAsync)();
|
|
11
|
-
const expBefore = (0, expoConfig_1.
|
|
12
|
+
const expBefore = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
12
13
|
const projectId = await (0, getProjectIdAsync_1.getProjectIdAsync)(sessionManager, expBefore, {
|
|
13
14
|
nonInteractive,
|
|
14
15
|
});
|
|
15
|
-
const exp = (0, expoConfig_1.
|
|
16
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
16
17
|
return {
|
|
17
18
|
projectId,
|
|
18
19
|
exp,
|
|
@@ -20,4 +21,4 @@ class ProjectConfigContextField extends ContextField_1.default {
|
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
exports.
|
|
24
|
+
exports.PrivateProjectConfigContextField = PrivateProjectConfigContextField;
|
|
@@ -20,7 +20,7 @@ const findProjectDirAndVerifyProjectSetupAsync_1 = require("./findProjectDirAndV
|
|
|
20
20
|
*/
|
|
21
21
|
async function saveProjectIdToAppConfigAsync(projectDir, projectId, options = {}) {
|
|
22
22
|
var _a;
|
|
23
|
-
const exp = (0, expoConfig_1.
|
|
23
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir, options);
|
|
24
24
|
const result = await (0, config_1.modifyConfigAsync)(projectDir, {
|
|
25
25
|
extra: { ...exp.extra, eas: { ...(_a = exp.extra) === null || _a === void 0 ? void 0 : _a.eas, projectId } },
|
|
26
26
|
}, { skipSDKVersionRequirement: true });
|
|
@@ -12,7 +12,7 @@ export default class BranchCreate extends EasCommand {
|
|
|
12
12
|
};
|
|
13
13
|
static contextDefinition: {
|
|
14
14
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
15
|
-
|
|
15
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
16
16
|
};
|
|
17
17
|
runAsync(): Promise<void>;
|
|
18
18
|
}
|
|
@@ -14,7 +14,7 @@ const json_1 = require("../../utils/json");
|
|
|
14
14
|
class BranchCreate extends EasCommand_1.default {
|
|
15
15
|
async runAsync() {
|
|
16
16
|
let { args: { name }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(BranchCreate);
|
|
17
|
-
const {
|
|
17
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchCreate, {
|
|
18
18
|
nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
if (jsonFlag) {
|
|
@@ -3,7 +3,7 @@ export default class BranchDelete extends EasCommand {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static contextDefinition: {
|
|
5
5
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
6
|
-
|
|
6
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
7
7
|
};
|
|
8
8
|
static args: {
|
|
9
9
|
name: string;
|
|
@@ -59,7 +59,7 @@ class BranchDelete extends EasCommand_1.default {
|
|
|
59
59
|
if (jsonFlag) {
|
|
60
60
|
(0, json_1.enableJsonOutput)();
|
|
61
61
|
}
|
|
62
|
-
const {
|
|
62
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchDelete, { nonInteractive });
|
|
63
63
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
64
64
|
if (!branchName) {
|
|
65
65
|
const validationMessage = 'branch name may not be empty.';
|
|
@@ -9,7 +9,7 @@ export default class BranchList extends EasCommand {
|
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
12
|
-
|
|
12
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
13
13
|
};
|
|
14
14
|
runAsync(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -10,7 +10,7 @@ const json_1 = require("../../utils/json");
|
|
|
10
10
|
class BranchList extends EasCommand_1.default {
|
|
11
11
|
async runAsync() {
|
|
12
12
|
const { flags } = await this.parse(BranchList);
|
|
13
|
-
const {
|
|
13
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchList, {
|
|
14
14
|
nonInteractive: flags['non-interactive'],
|
|
15
15
|
});
|
|
16
16
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
@@ -9,7 +9,7 @@ export default class BranchRename extends EasCommand {
|
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
12
|
-
|
|
12
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
13
13
|
};
|
|
14
14
|
runAsync(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -36,7 +36,7 @@ async function renameUpdateBranchOnAppAsync(graphqlClient, { appId, name, newNam
|
|
|
36
36
|
class BranchRename extends EasCommand_1.default {
|
|
37
37
|
async runAsync() {
|
|
38
38
|
let { flags: { json: jsonFlag, from: currentName, to: newName, 'non-interactive': nonInteractive }, } = await this.parse(BranchRename);
|
|
39
|
-
const {
|
|
39
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchRename, {
|
|
40
40
|
nonInteractive,
|
|
41
41
|
});
|
|
42
42
|
if (jsonFlag) {
|
|
@@ -14,7 +14,7 @@ export default class BranchView extends EasCommand {
|
|
|
14
14
|
};
|
|
15
15
|
static contextDefinition: {
|
|
16
16
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
17
|
-
|
|
17
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
18
18
|
};
|
|
19
19
|
runAsync(): Promise<void>;
|
|
20
20
|
}
|
|
@@ -12,7 +12,7 @@ class BranchView extends EasCommand_1.default {
|
|
|
12
12
|
async runAsync() {
|
|
13
13
|
let { args: { name: branchName }, flags, } = await this.parse(BranchView);
|
|
14
14
|
const { 'non-interactive': nonInteractive } = flags;
|
|
15
|
-
const {
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchView, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
@@ -11,7 +11,7 @@ export default class BuildCancel extends EasCommand {
|
|
|
11
11
|
};
|
|
12
12
|
static contextDefinition: {
|
|
13
13
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
14
|
-
|
|
14
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
15
15
|
};
|
|
16
16
|
runAsync(): Promise<void>;
|
|
17
17
|
}
|
|
@@ -105,7 +105,7 @@ async function ensureBuildExistsAsync(graphqlClient, buildId) {
|
|
|
105
105
|
class BuildCancel extends EasCommand_1.default {
|
|
106
106
|
async runAsync() {
|
|
107
107
|
const { args: { BUILD_ID: buildIdFromArg }, flags: { 'non-interactive': nonInteractive }, } = await this.parse(BuildCancel);
|
|
108
|
-
const {
|
|
108
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildCancel, {
|
|
109
109
|
nonInteractive,
|
|
110
110
|
});
|
|
111
111
|
const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -125,7 +125,7 @@ class BuildCancel extends EasCommand_1.default {
|
|
|
125
125
|
const spinner = (0, ora_1.ora)().start('Canceling the build…');
|
|
126
126
|
try {
|
|
127
127
|
const { status } = await cancelBuildAsync(graphqlClient, buildId);
|
|
128
|
-
if (
|
|
128
|
+
if ([generated_1.BuildStatus.Canceled, generated_1.BuildStatus.PendingCancel].includes(status)) {
|
|
129
129
|
spinner.succeed('Build canceled');
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
@@ -6,7 +6,7 @@ export default class BuildConfigure extends EasCommand {
|
|
|
6
6
|
};
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
9
|
-
|
|
9
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
10
10
|
};
|
|
11
11
|
runAsync(): Promise<void>;
|
|
12
12
|
}
|
|
@@ -20,7 +20,7 @@ class BuildConfigure extends EasCommand_1.default {
|
|
|
20
20
|
async runAsync() {
|
|
21
21
|
var _b;
|
|
22
22
|
const { flags } = await this.parse(BuildConfigure);
|
|
23
|
-
const {
|
|
23
|
+
const { privateProjectConfig: { exp, projectId, projectDir }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildConfigure, {
|
|
24
24
|
nonInteractive: false,
|
|
25
25
|
});
|
|
26
26
|
log_1.default.log('💡 The following process will configure your iOS and/or Android project to be compatible with EAS Build. These changes only apply to your local project files and you can safely revert them at any time.');
|
|
@@ -21,7 +21,8 @@ export default class Build extends EasCommand {
|
|
|
21
21
|
static contextDefinition: {
|
|
22
22
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
23
23
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
24
|
-
|
|
24
|
+
getDynamicPublicProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
25
|
+
getDynamicPrivateProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
25
26
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
26
27
|
};
|
|
27
28
|
runAsync(): Promise<void>;
|
|
@@ -28,7 +28,7 @@ class Build extends EasCommand_1.default {
|
|
|
28
28
|
(0, json_1.enableJsonOutput)();
|
|
29
29
|
}
|
|
30
30
|
const flags = this.sanitizeFlags(rawFlags);
|
|
31
|
-
const { loggedIn: { actor, graphqlClient },
|
|
31
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, } = await this.getContextAsync(Build, {
|
|
32
32
|
nonInteractive: flags.nonInteractive,
|
|
33
33
|
});
|
|
34
34
|
await handleDeprecatedEasJsonAsync(projectDir, flags.nonInteractive);
|
|
@@ -38,7 +38,7 @@ class Build extends EasCommand_1.default {
|
|
|
38
38
|
: [generated_1.StatuspageServiceName.EasBuild]);
|
|
39
39
|
}
|
|
40
40
|
const flagsWithPlatform = await this.ensurePlatformSelectedAsync(flags);
|
|
41
|
-
await (0, runBuildAndSubmit_1.runBuildAndSubmitAsync)(graphqlClient, analytics, projectDir, flagsWithPlatform, actor,
|
|
41
|
+
await (0, runBuildAndSubmit_1.runBuildAndSubmitAsync)(graphqlClient, analytics, projectDir, flagsWithPlatform, actor, getDynamicPrivateProjectConfigAsync);
|
|
42
42
|
}
|
|
43
43
|
sanitizeFlags(flags) {
|
|
44
44
|
var _b;
|
|
@@ -18,7 +18,8 @@ export default class BuildInspect extends EasCommand {
|
|
|
18
18
|
static contextDefinition: {
|
|
19
19
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
20
20
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
21
|
-
|
|
21
|
+
getDynamicPublicProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
22
|
+
getDynamicPrivateProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
22
23
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
23
24
|
};
|
|
24
25
|
runAsync(): Promise<void>;
|
|
@@ -28,7 +28,7 @@ const STAGE_DESCRIPTION = `Stage of the build you want to inspect.
|
|
|
28
28
|
class BuildInspect extends EasCommand_1.default {
|
|
29
29
|
async runAsync() {
|
|
30
30
|
const { flags } = await this.parse(BuildInspect);
|
|
31
|
-
const { loggedIn: { actor, graphqlClient },
|
|
31
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, } = await this.getContextAsync(BuildInspect, {
|
|
32
32
|
nonInteractive: false,
|
|
33
33
|
});
|
|
34
34
|
const outputDirectory = path_1.default.resolve(process.cwd(), flags.output);
|
|
@@ -61,7 +61,7 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
61
61
|
workingdir: tmpWorkingdir,
|
|
62
62
|
artifactsDir: path_1.default.join(tmpWorkingdir, 'artifacts'),
|
|
63
63
|
},
|
|
64
|
-
}, actor,
|
|
64
|
+
}, actor, getDynamicPrivateProjectConfigAsync);
|
|
65
65
|
if (!flags.verbose) {
|
|
66
66
|
log_1.default.log(chalk_1.default.green('Build successful'));
|
|
67
67
|
}
|
|
@@ -14,7 +14,8 @@ export default class BuildInternal extends EasCommand {
|
|
|
14
14
|
static contextDefinition: {
|
|
15
15
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
16
16
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
17
|
-
|
|
17
|
+
getDynamicPublicProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
18
|
+
getDynamicPrivateProjectConfigAsync: import("../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
18
19
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
19
20
|
};
|
|
20
21
|
runAsync(): Promise<void>;
|
|
@@ -21,7 +21,7 @@ class BuildInternal extends EasCommand_1.default {
|
|
|
21
21
|
const { flags } = await this.parse(BuildInternal);
|
|
22
22
|
// This command is always run with implicit --non-interactive and --json options
|
|
23
23
|
(0, json_1.enableJsonOutput)();
|
|
24
|
-
const { loggedIn: { actor, graphqlClient },
|
|
24
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, } = await this.getContextAsync(BuildInternal, {
|
|
25
25
|
nonInteractive: true,
|
|
26
26
|
});
|
|
27
27
|
(0, vcs_1.setVcsClient)(new gitNoCommit_1.default());
|
|
@@ -37,7 +37,7 @@ class BuildInternal extends EasCommand_1.default {
|
|
|
37
37
|
localBuildOptions: {
|
|
38
38
|
localBuildMode: local_1.LocalBuildMode.INTERNAL,
|
|
39
39
|
},
|
|
40
|
-
}, actor,
|
|
40
|
+
}, actor, getDynamicPrivateProjectConfigAsync);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.default = BuildInternal;
|
|
@@ -22,7 +22,7 @@ export default class BuildList extends EasCommand {
|
|
|
22
22
|
};
|
|
23
23
|
static contextDefinition: {
|
|
24
24
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
25
|
-
|
|
25
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
26
26
|
};
|
|
27
27
|
runAsync(): Promise<void>;
|
|
28
28
|
}
|
|
@@ -18,7 +18,7 @@ class BuildList extends EasCommand_1.default {
|
|
|
18
18
|
const { flags } = await this.parse(BuildList);
|
|
19
19
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
20
20
|
const { json: jsonFlag, platform: requestedPlatform, status: buildStatus, distribution: buildDistribution, 'non-interactive': nonInteractive, } = flags;
|
|
21
|
-
const {
|
|
21
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildList, {
|
|
22
22
|
nonInteractive,
|
|
23
23
|
});
|
|
24
24
|
if (jsonFlag) {
|
|
@@ -60,6 +60,7 @@ BuildList.flags = {
|
|
|
60
60
|
types_1.BuildStatus.NEW,
|
|
61
61
|
types_1.BuildStatus.IN_QUEUE,
|
|
62
62
|
types_1.BuildStatus.IN_PROGRESS,
|
|
63
|
+
types_1.BuildStatus.PENDING_CANCEL,
|
|
63
64
|
types_1.BuildStatus.ERRORED,
|
|
64
65
|
types_1.BuildStatus.FINISHED,
|
|
65
66
|
types_1.BuildStatus.CANCELED,
|
|
@@ -112,6 +113,9 @@ const toGraphQLBuildStatus = (buildStatus) => {
|
|
|
112
113
|
else if (buildStatus === types_1.BuildStatus.IN_PROGRESS) {
|
|
113
114
|
return generated_1.BuildStatus.InProgress;
|
|
114
115
|
}
|
|
116
|
+
else if (buildStatus === types_1.BuildStatus.PENDING_CANCEL) {
|
|
117
|
+
return generated_1.BuildStatus.PendingCancel;
|
|
118
|
+
}
|
|
115
119
|
else if (buildStatus === types_1.BuildStatus.ERRORED) {
|
|
116
120
|
return generated_1.BuildStatus.Errored;
|
|
117
121
|
}
|