eas-cli 12.6.0 → 12.6.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 +63 -63
- package/build/build/evaluateConfigWithEnvVarsAsync.js +27 -11
- package/build/commandUtils/EasCommand.d.ts +36 -5
- package/build/commandUtils/EasCommand.js +27 -2
- package/build/commandUtils/context/ContextField.d.ts +5 -0
- package/build/commandUtils/context/DynamicLoggedInContextField.d.ts +14 -0
- package/build/commandUtils/context/DynamicLoggedInContextField.js +25 -0
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +2 -2
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +40 -2
- package/build/commandUtils/context/LoggedInContextField.d.ts +7 -7
- package/build/commandUtils/context/LoggedInContextField.js +2 -1
- package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +9 -7
- package/build/commandUtils/context/MaybeLoggedInContextField.js +1 -0
- package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +17 -2
- package/build/commandUtils/context/PrivateProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/PrivateProjectConfigContextField.js +17 -2
- package/build/commandUtils/context/ProjectIdContextField.d.ts +4 -0
- package/build/commandUtils/context/ProjectIdContextField.js +19 -0
- package/build/commandUtils/context/ServerSideEnvironmentVariablesContextField.d.ts +6 -0
- package/build/commandUtils/context/ServerSideEnvironmentVariablesContextField.js +36 -0
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.d.ts +7 -0
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +42 -0
- package/build/commands/account/view.d.ts +0 -1
- package/build/commands/account/view.js +2 -3
- package/build/commands/branch/create.d.ts +1 -1
- package/build/commands/branch/create.js +2 -2
- package/build/commands/branch/delete.d.ts +1 -1
- package/build/commands/branch/delete.js +2 -2
- package/build/commands/branch/list.d.ts +1 -1
- package/build/commands/branch/list.js +2 -2
- package/build/commands/branch/rename.d.ts +1 -1
- package/build/commands/branch/rename.js +2 -2
- package/build/commands/branch/view.d.ts +1 -1
- package/build/commands/branch/view.js +2 -2
- package/build/commands/build/cancel.d.ts +1 -1
- package/build/commands/build/cancel.js +2 -2
- package/build/commands/build/configure.js +1 -0
- package/build/commands/build/delete.d.ts +1 -1
- package/build/commands/build/delete.js +2 -2
- package/build/commands/build/index.js +1 -0
- package/build/commands/build/inspect.js +1 -0
- package/build/commands/build/internal.js +1 -0
- package/build/commands/build/list.d.ts +1 -1
- package/build/commands/build/list.js +2 -2
- package/build/commands/build/resign.js +1 -0
- package/build/commands/build/run.d.ts +1 -2
- package/build/commands/build/run.js +2 -3
- package/build/commands/build/version/get.js +1 -0
- package/build/commands/build/version/set.js +1 -0
- package/build/commands/build/version/sync.js +1 -0
- package/build/commands/build/view.d.ts +1 -1
- package/build/commands/build/view.js +2 -2
- package/build/commands/channel/create.d.ts +1 -1
- package/build/commands/channel/create.js +2 -2
- package/build/commands/channel/delete.d.ts +1 -1
- package/build/commands/channel/delete.js +2 -2
- package/build/commands/channel/edit.d.ts +1 -1
- package/build/commands/channel/edit.js +2 -2
- package/build/commands/channel/list.d.ts +1 -1
- package/build/commands/channel/list.js +2 -2
- package/build/commands/channel/pause.d.ts +1 -1
- package/build/commands/channel/pause.js +2 -2
- package/build/commands/channel/resume.d.ts +1 -1
- package/build/commands/channel/resume.js +2 -2
- package/build/commands/channel/rollout.js +1 -0
- package/build/commands/channel/view.d.ts +1 -1
- package/build/commands/channel/view.js +2 -2
- package/build/commands/config.d.ts +1 -1
- package/build/commands/config.js +4 -7
- package/build/commands/credentials/configure-build.js +1 -0
- package/build/commands/credentials/index.d.ts +1 -1
- package/build/commands/credentials/index.js +2 -1
- package/build/commands/device/create.d.ts +1 -1
- package/build/commands/device/create.js +2 -1
- package/build/commands/device/delete.d.ts +1 -1
- package/build/commands/device/delete.js +2 -2
- package/build/commands/device/list.d.ts +1 -1
- package/build/commands/device/list.js +2 -2
- package/build/commands/device/rename.d.ts +1 -1
- package/build/commands/device/rename.js +2 -2
- package/build/commands/device/view.d.ts +1 -1
- package/build/commands/device/view.js +2 -2
- package/build/commands/env/create.d.ts +1 -1
- package/build/commands/env/create.js +8 -3
- package/build/commands/env/delete.d.ts +1 -1
- package/build/commands/env/delete.js +2 -2
- package/build/commands/env/exec.d.ts +1 -1
- package/build/commands/env/exec.js +2 -2
- package/build/commands/env/get.d.ts +1 -1
- package/build/commands/env/get.js +2 -2
- package/build/commands/env/link.d.ts +1 -1
- package/build/commands/env/link.js +2 -2
- package/build/commands/env/list.d.ts +1 -1
- package/build/commands/env/list.js +2 -2
- package/build/commands/env/pull.d.ts +2 -1
- package/build/commands/env/pull.js +22 -8
- package/build/commands/env/push.d.ts +1 -1
- package/build/commands/env/push.js +13 -2
- package/build/commands/env/unlink.d.ts +1 -1
- package/build/commands/env/unlink.js +2 -2
- package/build/commands/env/update.d.ts +1 -1
- package/build/commands/env/update.js +8 -6
- package/build/commands/metadata/pull.js +1 -0
- package/build/commands/metadata/push.js +1 -0
- package/build/commands/open.js +1 -0
- package/build/commands/project/info.d.ts +1 -1
- package/build/commands/project/info.js +2 -2
- package/build/commands/secret/create.d.ts +1 -1
- package/build/commands/secret/create.js +2 -2
- package/build/commands/secret/delete.d.ts +1 -1
- package/build/commands/secret/delete.js +2 -2
- package/build/commands/secret/list.d.ts +1 -1
- package/build/commands/secret/list.js +2 -2
- package/build/commands/secret/push.d.ts +1 -1
- package/build/commands/secret/push.js +2 -2
- package/build/commands/submit/internal.js +1 -0
- package/build/commands/submit.js +1 -0
- package/build/commands/update/configure.js +1 -0
- package/build/commands/update/edit.d.ts +1 -1
- package/build/commands/update/edit.js +2 -2
- package/build/commands/update/index.d.ts +2 -0
- package/build/commands/update/index.js +29 -3
- package/build/commands/update/list.d.ts +1 -1
- package/build/commands/update/list.js +2 -2
- package/build/commands/update/republish.js +1 -0
- package/build/commands/update/roll-back-to-embedded.js +1 -0
- package/build/commands/webhook/create.d.ts +1 -1
- package/build/commands/webhook/create.js +2 -2
- package/build/commands/webhook/delete.d.ts +1 -1
- package/build/commands/webhook/delete.js +2 -2
- package/build/commands/webhook/list.d.ts +1 -1
- package/build/commands/webhook/list.js +2 -2
- package/build/commands/worker/alias.js +1 -0
- package/build/commands/worker/deploy.js +1 -1
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +1 -0
- package/build/project/publish.d.ts +2 -1
- package/build/project/publish.js +10 -4
- package/build/user/SessionManager.d.ts +1 -1
- package/build/utils/expoCli.d.ts +2 -1
- package/build/utils/expoCli.js +5 -1
- package/oclif.manifest.json +99 -85
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ export default class BranchCreate extends EasCommand {
|
|
|
13
13
|
static contextDefinition: {
|
|
14
14
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
15
15
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
16
|
-
|
|
16
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
17
17
|
};
|
|
18
18
|
runAsync(): Promise<void>;
|
|
19
19
|
}
|
|
@@ -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(_a);
|
|
17
|
-
const {
|
|
17
|
+
const { projectId, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(_a, {
|
|
18
18
|
nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
if (jsonFlag) {
|
|
@@ -56,7 +56,7 @@ BranchCreate.flags = {
|
|
|
56
56
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
57
57
|
};
|
|
58
58
|
BranchCreate.contextDefinition = {
|
|
59
|
-
..._a.ContextOptions.
|
|
59
|
+
..._a.ContextOptions.ProjectId,
|
|
60
60
|
..._a.ContextOptions.LoggedIn,
|
|
61
61
|
..._a.ContextOptions.Vcs,
|
|
62
62
|
};
|
|
@@ -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
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
7
7
|
};
|
|
8
8
|
static args: {
|
|
9
9
|
name: string;
|
|
@@ -58,7 +58,7 @@ class BranchDelete extends EasCommand_1.default {
|
|
|
58
58
|
if (jsonFlag) {
|
|
59
59
|
(0, json_1.enableJsonOutput)();
|
|
60
60
|
}
|
|
61
|
-
const {
|
|
61
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive });
|
|
62
62
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
63
63
|
if (!branchName) {
|
|
64
64
|
const validationMessage = 'branch name may not be empty.';
|
|
@@ -102,7 +102,7 @@ class BranchDelete extends EasCommand_1.default {
|
|
|
102
102
|
_a = BranchDelete;
|
|
103
103
|
BranchDelete.description = 'delete a branch';
|
|
104
104
|
BranchDelete.contextDefinition = {
|
|
105
|
-
..._a.ContextOptions.
|
|
105
|
+
..._a.ContextOptions.ProjectId,
|
|
106
106
|
..._a.ContextOptions.LoggedIn,
|
|
107
107
|
};
|
|
108
108
|
BranchDelete.args = [
|
|
@@ -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
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
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(_a);
|
|
13
|
-
const {
|
|
13
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
14
14
|
nonInteractive: flags['non-interactive'],
|
|
15
15
|
});
|
|
16
16
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
@@ -27,7 +27,7 @@ BranchList.flags = {
|
|
|
27
27
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
28
28
|
};
|
|
29
29
|
BranchList.contextDefinition = {
|
|
30
|
-
..._a.ContextOptions.
|
|
30
|
+
..._a.ContextOptions.ProjectId,
|
|
31
31
|
..._a.ContextOptions.LoggedIn,
|
|
32
32
|
};
|
|
33
33
|
exports.default = BranchList;
|
|
@@ -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
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
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(_a);
|
|
39
|
-
const {
|
|
39
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
40
40
|
nonInteractive,
|
|
41
41
|
});
|
|
42
42
|
if (jsonFlag) {
|
|
@@ -94,7 +94,7 @@ BranchRename.flags = {
|
|
|
94
94
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
95
95
|
};
|
|
96
96
|
BranchRename.contextDefinition = {
|
|
97
|
-
..._a.ContextOptions.
|
|
97
|
+
..._a.ContextOptions.ProjectId,
|
|
98
98
|
..._a.ContextOptions.LoggedIn,
|
|
99
99
|
};
|
|
100
100
|
exports.default = BranchRename;
|
|
@@ -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
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
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(_a);
|
|
14
14
|
const { 'non-interactive': nonInteractive } = flags;
|
|
15
|
-
const {
|
|
15
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
@@ -59,7 +59,7 @@ BranchView.flags = {
|
|
|
59
59
|
limit: (0, pagination_1.getLimitFlagWithCustomValues)({ defaultTo: 25, limit: 50 }),
|
|
60
60
|
};
|
|
61
61
|
BranchView.contextDefinition = {
|
|
62
|
-
..._a.ContextOptions.
|
|
62
|
+
..._a.ContextOptions.ProjectId,
|
|
63
63
|
..._a.ContextOptions.LoggedIn,
|
|
64
64
|
};
|
|
65
65
|
exports.default = BranchView;
|
|
@@ -18,7 +18,7 @@ export default class BuildCancel extends EasCommand {
|
|
|
18
18
|
static contextDefinition: {
|
|
19
19
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
20
20
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
21
|
-
|
|
21
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
22
22
|
};
|
|
23
23
|
runAsync(): Promise<void>;
|
|
24
24
|
}
|
|
@@ -71,7 +71,7 @@ class BuildCancel extends EasCommand_1.default {
|
|
|
71
71
|
if (buildIdFromArg && (platform || profile)) {
|
|
72
72
|
throw new Error('Build ID cannot be used together with platform and profile flags. They are used to filter the list of builds when not providing the build ID');
|
|
73
73
|
}
|
|
74
|
-
const {
|
|
74
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
75
75
|
nonInteractive,
|
|
76
76
|
});
|
|
77
77
|
const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -125,7 +125,7 @@ BuildCancel.flags = {
|
|
|
125
125
|
}),
|
|
126
126
|
};
|
|
127
127
|
BuildCancel.contextDefinition = {
|
|
128
|
-
..._a.ContextOptions.
|
|
128
|
+
..._a.ContextOptions.ProjectId,
|
|
129
129
|
..._a.ContextOptions.LoggedIn,
|
|
130
130
|
..._a.ContextOptions.Vcs,
|
|
131
131
|
};
|
|
@@ -21,6 +21,7 @@ class BuildConfigure extends EasCommand_1.default {
|
|
|
21
21
|
const { flags } = await this.parse(_a);
|
|
22
22
|
const { privateProjectConfig: { exp, projectId, projectDir }, vcsClient, } = await this.getContextAsync(_a, {
|
|
23
23
|
nonInteractive: false,
|
|
24
|
+
withServerSideEnvironment: null,
|
|
24
25
|
});
|
|
25
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.');
|
|
26
27
|
// BuildConfigure.ContextOptions.Vcs.client.getValueAsync()
|
|
@@ -18,7 +18,7 @@ export default class BuildDelete extends EasCommand {
|
|
|
18
18
|
static contextDefinition: {
|
|
19
19
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
20
20
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
21
|
-
|
|
21
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
22
22
|
};
|
|
23
23
|
runAsync(): Promise<void>;
|
|
24
24
|
}
|
|
@@ -62,7 +62,7 @@ class BuildDelete extends EasCommand_1.default {
|
|
|
62
62
|
if (buildIdFromArg && (platform || profile)) {
|
|
63
63
|
throw new Error('Build ID cannot be used together with platform and profile flags. They are used to filter the list of builds when not providing the build ID');
|
|
64
64
|
}
|
|
65
|
-
const {
|
|
65
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive });
|
|
66
66
|
const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
67
67
|
if (buildIdFromArg) {
|
|
68
68
|
await (0, builds_1.ensureBuildExistsAsync)(graphqlClient, buildIdFromArg);
|
|
@@ -108,7 +108,7 @@ BuildDelete.flags = {
|
|
|
108
108
|
}),
|
|
109
109
|
};
|
|
110
110
|
BuildDelete.contextDefinition = {
|
|
111
|
-
..._a.ContextOptions.
|
|
111
|
+
..._a.ContextOptions.ProjectId,
|
|
112
112
|
..._a.ContextOptions.LoggedIn,
|
|
113
113
|
..._a.ContextOptions.Vcs,
|
|
114
114
|
};
|
|
@@ -31,6 +31,7 @@ class Build extends EasCommand_1.default {
|
|
|
31
31
|
const flags = this.sanitizeFlags(rawFlags);
|
|
32
32
|
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
33
33
|
nonInteractive: flags.nonInteractive,
|
|
34
|
+
withServerSideEnvironment: null,
|
|
34
35
|
});
|
|
35
36
|
await handleDeprecatedEasJsonAsync(projectDir, flags.nonInteractive);
|
|
36
37
|
if (!flags.localBuildOptions.localBuildMode) {
|
|
@@ -29,6 +29,7 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
29
29
|
const { flags } = await this.parse(_a);
|
|
30
30
|
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
31
31
|
nonInteractive: false,
|
|
32
|
+
withServerSideEnvironment: null,
|
|
32
33
|
});
|
|
33
34
|
const outputDirectory = path_1.default.resolve(process.cwd(), flags.output);
|
|
34
35
|
const tmpWorkingdir = path_1.default.join((0, paths_1.getTmpDirectory)(), (0, uuid_1.v4)());
|
|
@@ -23,6 +23,7 @@ class BuildInternal extends EasCommand_1.default {
|
|
|
23
23
|
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
24
24
|
nonInteractive: true,
|
|
25
25
|
vcsClientOverride: new gitNoCommit_1.default(),
|
|
26
|
+
withServerSideEnvironment: null,
|
|
26
27
|
});
|
|
27
28
|
await (0, _1.handleDeprecatedEasJsonAsync)(projectDir, flags.nonInteractive);
|
|
28
29
|
await (0, runBuildAndSubmit_1.runBuildAndSubmitAsync)(graphqlClient, analytics, vcsClient, projectDir, {
|
|
@@ -24,7 +24,7 @@ export default class BuildList extends EasCommand {
|
|
|
24
24
|
static contextDefinition: {
|
|
25
25
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
26
26
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
27
|
-
|
|
27
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
28
28
|
};
|
|
29
29
|
runAsync(): Promise<void>;
|
|
30
30
|
}
|
|
@@ -26,7 +26,7 @@ class BuildList extends EasCommand_1.default {
|
|
|
26
26
|
log_1.default.error(`The --simulator flag is only usable with --platform flag set to "ios", as it is used to filter specifically iOS simulator builds`);
|
|
27
27
|
process.exit(1);
|
|
28
28
|
}
|
|
29
|
-
const {
|
|
29
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
30
30
|
nonInteractive,
|
|
31
31
|
});
|
|
32
32
|
if (jsonFlag) {
|
|
@@ -110,7 +110,7 @@ BuildList.flags = {
|
|
|
110
110
|
}),
|
|
111
111
|
};
|
|
112
112
|
BuildList.contextDefinition = {
|
|
113
|
-
..._a.ContextOptions.
|
|
113
|
+
..._a.ContextOptions.ProjectId,
|
|
114
114
|
..._a.ContextOptions.LoggedIn,
|
|
115
115
|
..._a.ContextOptions.Vcs,
|
|
116
116
|
};
|
|
@@ -39,6 +39,7 @@ class BuildResign extends EasCommand_1.default {
|
|
|
39
39
|
const { limit, offset, nonInteractive } = flags;
|
|
40
40
|
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
41
41
|
nonInteractive: flags.nonInteractive,
|
|
42
|
+
withServerSideEnvironment: null,
|
|
42
43
|
});
|
|
43
44
|
const maybeBuild = flags.maybeBuildId
|
|
44
45
|
? await this.maybeGetBuildAsync(graphqlClient, flags.maybeBuildId)
|
|
@@ -13,9 +13,8 @@ export default class Run extends EasCommand {
|
|
|
13
13
|
};
|
|
14
14
|
static contextDefinition: {
|
|
15
15
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
16
|
-
|
|
16
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
17
17
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
18
|
-
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
19
18
|
};
|
|
20
19
|
runAsync(): Promise<void>;
|
|
21
20
|
private sanitizeFlagsAsync;
|
|
@@ -24,7 +24,7 @@ class Run extends EasCommand_1.default {
|
|
|
24
24
|
const { flags: rawFlags } = await this.parse(_a);
|
|
25
25
|
const flags = await this.sanitizeFlagsAsync(rawFlags);
|
|
26
26
|
const queryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
27
|
-
const { loggedIn: { graphqlClient },
|
|
27
|
+
const { loggedIn: { graphqlClient }, projectId, } = await this.getContextAsync(_a, {
|
|
28
28
|
nonInteractive: false,
|
|
29
29
|
});
|
|
30
30
|
const simulatorBuildPath = await getPathToSimulatorBuildAppAsync(graphqlClient, projectId, flags, queryOptions);
|
|
@@ -91,8 +91,7 @@ Run.flags = {
|
|
|
91
91
|
};
|
|
92
92
|
Run.contextDefinition = {
|
|
93
93
|
..._a.ContextOptions.LoggedIn,
|
|
94
|
-
..._a.ContextOptions.
|
|
95
|
-
..._a.ContextOptions.ProjectDir,
|
|
94
|
+
..._a.ContextOptions.ProjectId,
|
|
96
95
|
..._a.ContextOptions.Vcs,
|
|
97
96
|
};
|
|
98
97
|
exports.default = Run;
|
|
@@ -24,6 +24,7 @@ class BuildVersionGetView extends EasCommand_1.default {
|
|
|
24
24
|
}
|
|
25
25
|
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
|
|
26
26
|
nonInteractive: true,
|
|
27
|
+
withServerSideEnvironment: null,
|
|
27
28
|
});
|
|
28
29
|
if (!flags.platform && flags['non-interactive']) {
|
|
29
30
|
throw new Error('"--platform" flag is required in non-interactive mode.');
|
|
@@ -25,6 +25,7 @@ class BuildVersionSetView extends EasCommand_1.default {
|
|
|
25
25
|
const { flags } = await this.parse(_a);
|
|
26
26
|
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
|
|
27
27
|
nonInteractive: false,
|
|
28
|
+
withServerSideEnvironment: null,
|
|
28
29
|
});
|
|
29
30
|
const platform = await (0, platform_1.selectPlatformAsync)(flags.platform);
|
|
30
31
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -28,6 +28,7 @@ class BuildVersionSyncView extends EasCommand_1.default {
|
|
|
28
28
|
const { flags } = await this.parse(_a);
|
|
29
29
|
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
|
|
30
30
|
nonInteractive: true,
|
|
31
|
+
withServerSideEnvironment: null,
|
|
31
32
|
});
|
|
32
33
|
const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.platform);
|
|
33
34
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -10,7 +10,7 @@ export default class BuildView extends EasCommand {
|
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
12
12
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
13
|
-
|
|
13
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
14
14
|
};
|
|
15
15
|
runAsync(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -13,7 +13,7 @@ const json_1 = require("../../utils/json");
|
|
|
13
13
|
class BuildView extends EasCommand_1.default {
|
|
14
14
|
async runAsync() {
|
|
15
15
|
const { args: { BUILD_ID: buildId }, flags, } = await this.parse(_a);
|
|
16
|
-
const {
|
|
16
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
17
17
|
nonInteractive: true,
|
|
18
18
|
});
|
|
19
19
|
if (flags.json) {
|
|
@@ -69,7 +69,7 @@ BuildView.flags = {
|
|
|
69
69
|
...flags_1.EasJsonOnlyFlag,
|
|
70
70
|
};
|
|
71
71
|
BuildView.contextDefinition = {
|
|
72
|
-
..._a.ContextOptions.
|
|
72
|
+
..._a.ContextOptions.ProjectId,
|
|
73
73
|
..._a.ContextOptions.LoggedIn,
|
|
74
74
|
..._a.ContextOptions.Vcs,
|
|
75
75
|
};
|
|
@@ -12,7 +12,7 @@ export default class ChannelCreate extends EasCommand {
|
|
|
12
12
|
};
|
|
13
13
|
static contextDefinition: {
|
|
14
14
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
15
|
-
|
|
15
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
16
16
|
};
|
|
17
17
|
runAsync(): Promise<void>;
|
|
18
18
|
}
|
|
@@ -12,7 +12,7 @@ const json_1 = require("../../utils/json");
|
|
|
12
12
|
class ChannelCreate extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
14
|
let { args: { name: channelName }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
15
|
-
const {
|
|
15
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
if (jsonFlag) {
|
|
@@ -52,7 +52,7 @@ ChannelCreate.flags = {
|
|
|
52
52
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
53
53
|
};
|
|
54
54
|
ChannelCreate.contextDefinition = {
|
|
55
|
-
..._a.ContextOptions.
|
|
55
|
+
..._a.ContextOptions.ProjectId,
|
|
56
56
|
..._a.ContextOptions.LoggedIn,
|
|
57
57
|
};
|
|
58
58
|
exports.default = ChannelCreate;
|
|
@@ -13,7 +13,7 @@ export default class ChannelDelete extends EasCommand {
|
|
|
13
13
|
};
|
|
14
14
|
static contextDefinition: {
|
|
15
15
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
16
|
-
|
|
16
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
17
17
|
};
|
|
18
18
|
runAsync(): Promise<void>;
|
|
19
19
|
}
|
|
@@ -14,7 +14,7 @@ const json_1 = require("../../utils/json");
|
|
|
14
14
|
class ChannelDelete extends EasCommand_1.default {
|
|
15
15
|
async runAsync() {
|
|
16
16
|
const { args: { name: nameArg }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
17
|
-
const {
|
|
17
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
18
18
|
nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
if (jsonFlag) {
|
|
@@ -80,7 +80,7 @@ ChannelDelete.flags = {
|
|
|
80
80
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
81
81
|
};
|
|
82
82
|
ChannelDelete.contextDefinition = {
|
|
83
|
-
..._a.ContextOptions.
|
|
83
|
+
..._a.ContextOptions.ProjectId,
|
|
84
84
|
..._a.ContextOptions.LoggedIn,
|
|
85
85
|
};
|
|
86
86
|
exports.default = ChannelDelete;
|
|
@@ -16,7 +16,7 @@ export default class ChannelEdit extends EasCommand {
|
|
|
16
16
|
};
|
|
17
17
|
static contextDefinition: {
|
|
18
18
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
19
|
-
|
|
19
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
20
20
|
};
|
|
21
21
|
runAsync(): Promise<void>;
|
|
22
22
|
}
|
|
@@ -43,7 +43,7 @@ exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
|
|
|
43
43
|
class ChannelEdit extends EasCommand_1.default {
|
|
44
44
|
async runAsync() {
|
|
45
45
|
const { args, flags: { branch: branchFlag, json, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
46
|
-
const {
|
|
46
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
47
47
|
nonInteractive,
|
|
48
48
|
});
|
|
49
49
|
if (json) {
|
|
@@ -110,7 +110,7 @@ ChannelEdit.flags = {
|
|
|
110
110
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
111
111
|
};
|
|
112
112
|
ChannelEdit.contextDefinition = {
|
|
113
|
-
..._a.ContextOptions.
|
|
113
|
+
..._a.ContextOptions.ProjectId,
|
|
114
114
|
..._a.ContextOptions.LoggedIn,
|
|
115
115
|
};
|
|
116
116
|
exports.default = ChannelEdit;
|
|
@@ -9,7 +9,7 @@ export default class ChannelList extends EasCommand {
|
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
12
|
-
|
|
12
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
13
13
|
};
|
|
14
14
|
runAsync(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -12,7 +12,7 @@ class ChannelList extends EasCommand_1.default {
|
|
|
12
12
|
const { flags } = await this.parse(_a);
|
|
13
13
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
14
14
|
const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
|
|
15
|
-
const {
|
|
15
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
if (jsonFlag) {
|
|
@@ -32,7 +32,7 @@ ChannelList.flags = {
|
|
|
32
32
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
33
33
|
};
|
|
34
34
|
ChannelList.contextDefinition = {
|
|
35
|
-
..._a.ContextOptions.
|
|
35
|
+
..._a.ContextOptions.ProjectId,
|
|
36
36
|
..._a.ContextOptions.LoggedIn,
|
|
37
37
|
};
|
|
38
38
|
exports.default = ChannelList;
|
|
@@ -16,7 +16,7 @@ export default class ChannelPause extends EasCommand {
|
|
|
16
16
|
};
|
|
17
17
|
static contextDefinition: {
|
|
18
18
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
19
|
-
|
|
19
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
20
20
|
};
|
|
21
21
|
runAsync(): Promise<void>;
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ exports.pauseUpdateChannelAsync = pauseUpdateChannelAsync;
|
|
|
39
39
|
class ChannelPause extends EasCommand_1.default {
|
|
40
40
|
async runAsync() {
|
|
41
41
|
const { args, flags: { json, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
42
|
-
const {
|
|
42
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
43
43
|
nonInteractive,
|
|
44
44
|
});
|
|
45
45
|
if (json) {
|
|
@@ -84,7 +84,7 @@ ChannelPause.flags = {
|
|
|
84
84
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
85
85
|
};
|
|
86
86
|
ChannelPause.contextDefinition = {
|
|
87
|
-
..._a.ContextOptions.
|
|
87
|
+
..._a.ContextOptions.ProjectId,
|
|
88
88
|
..._a.ContextOptions.LoggedIn,
|
|
89
89
|
};
|
|
90
90
|
exports.default = ChannelPause;
|
|
@@ -16,7 +16,7 @@ export default class ChannelResume extends EasCommand {
|
|
|
16
16
|
};
|
|
17
17
|
static contextDefinition: {
|
|
18
18
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
19
|
-
|
|
19
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
20
20
|
};
|
|
21
21
|
runAsync(): Promise<void>;
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ exports.resumeUpdateChannelAsync = resumeUpdateChannelAsync;
|
|
|
39
39
|
class ChannelResume extends EasCommand_1.default {
|
|
40
40
|
async runAsync() {
|
|
41
41
|
const { args, flags: { json, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
42
|
-
const {
|
|
42
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
43
43
|
nonInteractive,
|
|
44
44
|
});
|
|
45
45
|
if (json) {
|
|
@@ -84,7 +84,7 @@ ChannelResume.flags = {
|
|
|
84
84
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
85
85
|
};
|
|
86
86
|
ChannelResume.contextDefinition = {
|
|
87
|
-
..._a.ContextOptions.
|
|
87
|
+
..._a.ContextOptions.ProjectId,
|
|
88
88
|
..._a.ContextOptions.LoggedIn,
|
|
89
89
|
};
|
|
90
90
|
exports.default = ChannelResume;
|
|
@@ -23,6 +23,7 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
23
23
|
const argsAndFlags = this.sanitizeArgsAndFlags({ ...flags, ...args });
|
|
24
24
|
const { privateProjectConfig: { exp, projectId, projectDir }, vcsClient, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
25
25
|
nonInteractive: argsAndFlags.nonInteractive,
|
|
26
|
+
withServerSideEnvironment: null,
|
|
26
27
|
});
|
|
27
28
|
if (argsAndFlags.json) {
|
|
28
29
|
(0, json_1.enableJsonOutput)();
|
|
@@ -14,7 +14,7 @@ export default class ChannelView extends EasCommand {
|
|
|
14
14
|
};
|
|
15
15
|
static contextDefinition: {
|
|
16
16
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
17
|
-
|
|
17
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
18
18
|
};
|
|
19
19
|
runAsync(): Promise<void>;
|
|
20
20
|
}
|
|
@@ -13,7 +13,7 @@ class ChannelView extends EasCommand_1.default {
|
|
|
13
13
|
let { args: { name: channelName }, flags, } = await this.parse(_a);
|
|
14
14
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
15
15
|
const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
|
|
16
|
-
const {
|
|
16
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
17
17
|
nonInteractive,
|
|
18
18
|
});
|
|
19
19
|
if (jsonFlag) {
|
|
@@ -57,7 +57,7 @@ ChannelView.flags = {
|
|
|
57
57
|
...pagination_1.EasPaginatedQueryFlags,
|
|
58
58
|
};
|
|
59
59
|
ChannelView.contextDefinition = {
|
|
60
|
-
..._a.ContextOptions.
|
|
60
|
+
..._a.ContextOptions.ProjectId,
|
|
61
61
|
..._a.ContextOptions.LoggedIn,
|
|
62
62
|
};
|
|
63
63
|
exports.default = ChannelView;
|
|
@@ -10,7 +10,7 @@ export default class Config extends EasCommand {
|
|
|
10
10
|
'eas-json-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static contextDefinition: {
|
|
13
|
-
|
|
13
|
+
getDynamicLoggedInAsync: import("../commandUtils/context/DynamicLoggedInContextField").default;
|
|
14
14
|
projectDir: import("../commandUtils/context/ProjectDirContextField").default;
|
|
15
15
|
getDynamicPublicProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
16
16
|
getDynamicPrivateProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|