eas-cli 3.13.1 → 3.13.2
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 +8 -1
- package/build/build/createContext.d.ts +2 -2
- package/build/build/createContext.js +2 -2
- 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 +4 -8
- 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/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,8 @@ export default class BuildVersionGetView extends EasCommand {
|
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
projectDir: import("../../../commandUtils/context/ProjectDirContextField").default;
|
|
12
|
-
|
|
12
|
+
getDynamicPublicProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
13
|
+
getDynamicPrivateProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
13
14
|
loggedIn: import("../../../commandUtils/context/LoggedInContextField").default;
|
|
14
15
|
};
|
|
15
16
|
runAsync(): Promise<void>;
|
|
@@ -22,7 +22,7 @@ class BuildVersionGetView extends EasCommand_1.default {
|
|
|
22
22
|
if (flags.json) {
|
|
23
23
|
(0, json_1.enableJsonOutput)();
|
|
24
24
|
}
|
|
25
|
-
const { loggedIn: { graphqlClient },
|
|
25
|
+
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, } = await this.getContextAsync(BuildVersionGetView, {
|
|
26
26
|
nonInteractive: true,
|
|
27
27
|
});
|
|
28
28
|
if (!flags.platform && flags['non-interactive']) {
|
|
@@ -42,7 +42,7 @@ class BuildVersionGetView extends EasCommand_1.default {
|
|
|
42
42
|
});
|
|
43
43
|
const results = {};
|
|
44
44
|
for (const { profile, platform } of buildProfiles) {
|
|
45
|
-
const { exp, projectId } = await
|
|
45
|
+
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({
|
|
46
46
|
env: profile.env,
|
|
47
47
|
});
|
|
48
48
|
(0, remoteVersionSource_1.validateAppConfigForRemoteVersionSource)(exp, platform);
|
|
@@ -7,7 +7,8 @@ export default class BuildVersionSetView extends EasCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static contextDefinition: {
|
|
9
9
|
projectDir: import("../../../commandUtils/context/ProjectDirContextField").default;
|
|
10
|
-
|
|
10
|
+
getDynamicPublicProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
11
|
+
getDynamicPrivateProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
11
12
|
loggedIn: import("../../../commandUtils/context/LoggedInContextField").default;
|
|
12
13
|
};
|
|
13
14
|
runAsync(): Promise<void>;
|
|
@@ -23,14 +23,14 @@ class BuildVersionSetView extends EasCommand_1.default {
|
|
|
23
23
|
async runAsync() {
|
|
24
24
|
var _b, _c, _d;
|
|
25
25
|
const { flags } = await this.parse(BuildVersionSetView);
|
|
26
|
-
const { loggedIn: { graphqlClient },
|
|
26
|
+
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, } = await this.getContextAsync(BuildVersionSetView, {
|
|
27
27
|
nonInteractive: false,
|
|
28
28
|
});
|
|
29
29
|
const platform = await (0, platform_1.selectPlatformAsync)(flags.platform);
|
|
30
30
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
31
31
|
await (0, remoteVersionSource_1.ensureVersionSourceIsRemoteAsync)(easJsonAccessor, { nonInteractive: false });
|
|
32
32
|
const profile = await eas_json_1.EasJsonUtils.getBuildProfileAsync(easJsonAccessor, platform, (_b = flags.profile) !== null && _b !== void 0 ? _b : undefined);
|
|
33
|
-
const { exp, projectId } = await
|
|
33
|
+
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({ env: profile.env });
|
|
34
34
|
const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
35
35
|
(0, remoteVersionSource_1.validateAppConfigForRemoteVersionSource)(exp, platform);
|
|
36
36
|
const applicationIdentifier = await (0, applicationIdentifier_1.getApplicationIdentifierAsync)({
|
|
@@ -7,7 +7,8 @@ export default class BuildVersionSyncView extends EasCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static contextDefinition: {
|
|
9
9
|
projectDir: import("../../../commandUtils/context/ProjectDirContextField").default;
|
|
10
|
-
|
|
10
|
+
getDynamicPublicProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
11
|
+
getDynamicPrivateProjectConfigAsync: import("../../../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
11
12
|
loggedIn: import("../../../commandUtils/context/LoggedInContextField").default;
|
|
12
13
|
};
|
|
13
14
|
runAsync(): Promise<void>;
|
|
@@ -26,7 +26,7 @@ class BuildVersionSyncView extends EasCommand_1.default {
|
|
|
26
26
|
async runAsync() {
|
|
27
27
|
var _b;
|
|
28
28
|
const { flags } = await this.parse(BuildVersionSyncView);
|
|
29
|
-
const { loggedIn: { graphqlClient },
|
|
29
|
+
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, } = await this.getContextAsync(BuildVersionSyncView, {
|
|
30
30
|
nonInteractive: true,
|
|
31
31
|
});
|
|
32
32
|
const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.platform);
|
|
@@ -40,7 +40,7 @@ class BuildVersionSyncView extends EasCommand_1.default {
|
|
|
40
40
|
profileName: (_b = flags.profile) !== null && _b !== void 0 ? _b : undefined,
|
|
41
41
|
});
|
|
42
42
|
for (const profileInfo of buildProfiles) {
|
|
43
|
-
const { exp, projectId } = await
|
|
43
|
+
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({
|
|
44
44
|
env: profileInfo.profile.env,
|
|
45
45
|
});
|
|
46
46
|
(0, remoteVersionSource_1.validateAppConfigForRemoteVersionSource)(exp, profileInfo.platform);
|
|
@@ -9,7 +9,7 @@ export default class BuildView 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
|
}
|
|
@@ -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(BuildView);
|
|
16
|
-
const {
|
|
16
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildView, {
|
|
17
17
|
nonInteractive: true,
|
|
18
18
|
});
|
|
19
19
|
if (flags.json) {
|
|
@@ -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
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
16
16
|
};
|
|
17
17
|
runAsync(): Promise<void>;
|
|
18
18
|
}
|
|
@@ -17,7 +17,7 @@ const json_1 = require("../../utils/json");
|
|
|
17
17
|
class ChannelCreate extends EasCommand_1.default {
|
|
18
18
|
async runAsync() {
|
|
19
19
|
let { args: { name: channelName }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(ChannelCreate);
|
|
20
|
-
const {
|
|
20
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelCreate, {
|
|
21
21
|
nonInteractive,
|
|
22
22
|
});
|
|
23
23
|
if (jsonFlag) {
|
|
@@ -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
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
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(ChannelDelete);
|
|
17
|
-
const {
|
|
17
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelDelete, {
|
|
18
18
|
nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
if (jsonFlag) {
|
|
@@ -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
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
20
20
|
};
|
|
21
21
|
runAsync(): Promise<void>;
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
|
|
|
39
39
|
class ChannelEdit extends EasCommand_1.default {
|
|
40
40
|
async runAsync() {
|
|
41
41
|
const { args, flags: { branch: branchFlag, json, 'non-interactive': nonInteractive }, } = await this.parse(ChannelEdit);
|
|
42
|
-
const {
|
|
42
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelEdit, {
|
|
43
43
|
nonInteractive,
|
|
44
44
|
});
|
|
45
45
|
if (json) {
|
|
@@ -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
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
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(ChannelList);
|
|
13
13
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
14
14
|
const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
|
|
15
|
-
const {
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelList, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
if (jsonFlag) {
|
|
@@ -14,7 +14,7 @@ export default class ChannelRollout 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
|
}
|
|
@@ -161,7 +161,7 @@ async function endRolloutAsync(graphqlClient, { channelName, branchName, nonInte
|
|
|
161
161
|
class ChannelRollout extends EasCommand_1.default {
|
|
162
162
|
async runAsync() {
|
|
163
163
|
const { args: { channel: channelNameArg }, flags: { json: jsonFlag, end: endFlag, branch: branchName, percent, 'non-interactive': nonInteractive, }, } = await this.parse(ChannelRollout);
|
|
164
|
-
const {
|
|
164
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelRollout, {
|
|
165
165
|
nonInteractive,
|
|
166
166
|
});
|
|
167
167
|
if (jsonFlag) {
|
|
@@ -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
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
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(ChannelView);
|
|
14
14
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
15
15
|
const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
|
|
16
|
-
const {
|
|
16
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelView, {
|
|
17
17
|
nonInteractive,
|
|
18
18
|
});
|
|
19
19
|
if (jsonFlag) {
|
|
@@ -11,7 +11,8 @@ export default class Config extends EasCommand {
|
|
|
11
11
|
};
|
|
12
12
|
static contextDefinition: {
|
|
13
13
|
projectDir: import("../commandUtils/context/ProjectDirContextField").default;
|
|
14
|
-
|
|
14
|
+
getDynamicPublicProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
15
|
+
getDynamicPrivateProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
15
16
|
};
|
|
16
17
|
runAsync(): Promise<void>;
|
|
17
18
|
}
|
package/build/commands/config.js
CHANGED
|
@@ -21,7 +21,7 @@ class Config extends EasCommand_1.default {
|
|
|
21
21
|
(0, json_1.enableJsonOutput)();
|
|
22
22
|
}
|
|
23
23
|
const { platform: maybePlatform, profile: maybeProfile } = flags;
|
|
24
|
-
const {
|
|
24
|
+
const { getDynamicPublicProjectConfigAsync, projectDir } = await this.getContextAsync(Config, {
|
|
25
25
|
nonInteractive: false,
|
|
26
26
|
});
|
|
27
27
|
const accessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -53,9 +53,8 @@ class Config extends EasCommand_1.default {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
|
-
const { exp: appConfig } = await
|
|
56
|
+
const { exp: appConfig } = await getDynamicPublicProjectConfigAsync({
|
|
57
57
|
env: profile.env,
|
|
58
|
-
isPublicConfig: true,
|
|
59
58
|
});
|
|
60
59
|
if (flags.json) {
|
|
61
60
|
(0, json_1.printJsonOnlyOutput)({ buildProfile: profile, appConfig });
|
|
@@ -6,8 +6,9 @@ export default class Credentials extends EasCommand {
|
|
|
6
6
|
};
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
analytics: import("../commandUtils/context/AnalyticsContextField").default;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
getDynamicPublicProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
|
|
10
|
+
getDynamicPrivateProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
|
|
11
|
+
privateProjectConfig: import("../commandUtils/context/OptionalPrivateProjectConfigContextField").OptionalPrivateProjectConfigContextField;
|
|
11
12
|
loggedIn: import("../commandUtils/context/LoggedInContextField").default;
|
|
12
13
|
};
|
|
13
14
|
runAsync(): Promise<void>;
|
|
@@ -8,10 +8,10 @@ const SelectPlatform_1 = require("../credentials/manager/SelectPlatform");
|
|
|
8
8
|
class Credentials extends EasCommand_1.default {
|
|
9
9
|
async runAsync() {
|
|
10
10
|
const { flags } = await this.parse(Credentials);
|
|
11
|
-
const { loggedIn: { actor, graphqlClient },
|
|
11
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, } = await this.getContextAsync(Credentials, {
|
|
12
12
|
nonInteractive: false,
|
|
13
13
|
});
|
|
14
|
-
await new SelectPlatform_1.SelectPlatform(actor, graphqlClient, analytics,
|
|
14
|
+
await new SelectPlatform_1.SelectPlatform(actor, graphqlClient, analytics, privateProjectConfig !== null && privateProjectConfig !== void 0 ? privateProjectConfig : null, getDynamicPrivateProjectConfigAsync, flags.platform).runAsync();
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.default = Credentials;
|
|
@@ -2,7 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class DeviceCreate extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static contextDefinition: {
|
|
5
|
-
|
|
5
|
+
privateProjectConfig: import("../../commandUtils/context/OptionalPrivateProjectConfigContextField").OptionalPrivateProjectConfigContextField;
|
|
6
6
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
7
7
|
};
|
|
8
8
|
runAsync(): Promise<void>;
|
|
@@ -9,14 +9,14 @@ const manager_1 = tslib_1.__importDefault(require("../../devices/manager"));
|
|
|
9
9
|
class DeviceCreate extends EasCommand_1.default {
|
|
10
10
|
async runAsync() {
|
|
11
11
|
// this command is interactive by design
|
|
12
|
-
const { loggedIn: { actor, graphqlClient },
|
|
12
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, } = await this.getContextAsync(DeviceCreate, {
|
|
13
13
|
nonInteractive: false,
|
|
14
14
|
});
|
|
15
15
|
const ctx = await (0, context_1.createContextAsync)({
|
|
16
16
|
appStore: new AppStoreApi_1.default(),
|
|
17
17
|
user: actor,
|
|
18
18
|
graphqlClient,
|
|
19
|
-
projectId:
|
|
19
|
+
projectId: privateProjectConfig === null || privateProjectConfig === void 0 ? void 0 : privateProjectConfig.projectId,
|
|
20
20
|
});
|
|
21
21
|
const manager = new manager_1.default(ctx);
|
|
22
22
|
await manager.createAsync();
|
|
@@ -13,7 +13,7 @@ export default class DeviceDelete extends EasCommand {
|
|
|
13
13
|
};
|
|
14
14
|
static contextDefinition: {
|
|
15
15
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
16
|
-
|
|
16
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
17
17
|
};
|
|
18
18
|
runAsync(): Promise<void>;
|
|
19
19
|
shouldDisableDeviceOnAppleAsync({ nonInteractive, }: PaginatedQueryOptions): Promise<boolean>;
|
|
@@ -23,7 +23,7 @@ class DeviceDelete extends EasCommand_1.default {
|
|
|
23
23
|
const { flags } = await this.parse(DeviceDelete);
|
|
24
24
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
25
|
let { 'apple-team-id': appleTeamIdentifier, udid } = flags;
|
|
26
|
-
const {
|
|
26
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceDelete, {
|
|
27
27
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
28
|
});
|
|
29
29
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -10,7 +10,7 @@ export default class BuildList extends EasCommand {
|
|
|
10
10
|
};
|
|
11
11
|
static contextDefinition: {
|
|
12
12
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
13
|
-
|
|
13
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
14
14
|
};
|
|
15
15
|
runAsync(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -14,7 +14,7 @@ class BuildList extends EasCommand_1.default {
|
|
|
14
14
|
async runAsync() {
|
|
15
15
|
const { flags } = await this.parse(BuildList);
|
|
16
16
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
17
|
-
const {
|
|
17
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildList, {
|
|
18
18
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
let appleTeamIdentifier = flags['apple-team-id'];
|
|
@@ -14,7 +14,7 @@ export default class DeviceRename 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
|
promptForNewDeviceNameAsync(initial: Maybe<string> | undefined): Promise<string | undefined>;
|
|
@@ -23,7 +23,7 @@ class DeviceRename extends EasCommand_1.default {
|
|
|
23
23
|
const { flags } = await this.parse(DeviceRename);
|
|
24
24
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
25
|
let { 'apple-team-id': appleTeamIdentifier, udid, name } = flags;
|
|
26
|
-
const {
|
|
26
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceRename, {
|
|
27
27
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
28
|
});
|
|
29
29
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -6,7 +6,7 @@ export default class DeviceView 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
|
}
|
|
@@ -22,7 +22,7 @@ If you are not sure what is the UDID of the device you are looking for, run:
|
|
|
22
22
|
`);
|
|
23
23
|
throw new Error('Device UDID is missing');
|
|
24
24
|
}
|
|
25
|
-
const {
|
|
25
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceView, {
|
|
26
26
|
nonInteractive: true,
|
|
27
27
|
});
|
|
28
28
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -7,7 +7,7 @@ export default class MetadataPull extends EasCommand {
|
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
9
9
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
10
|
-
|
|
10
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
11
11
|
};
|
|
12
12
|
runAsync(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ class MetadataPull extends EasCommand_1.default {
|
|
|
18
18
|
async runAsync() {
|
|
19
19
|
log_1.default.warn('EAS Metadata is in beta and subject to breaking changes.');
|
|
20
20
|
const { flags } = await this.parse(MetadataPull);
|
|
21
|
-
const { loggedIn: { actor, graphqlClient },
|
|
21
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, } = await this.getContextAsync(MetadataPull, {
|
|
22
22
|
nonInteractive: false,
|
|
23
23
|
});
|
|
24
24
|
// this command is interactive (all nonInteractive flags passed to utility functions are false)
|
|
@@ -7,7 +7,7 @@ export default class MetadataPush extends EasCommand {
|
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
9
9
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
10
|
-
|
|
10
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
11
11
|
};
|
|
12
12
|
runAsync(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -16,7 +16,7 @@ class MetadataPush extends EasCommand_1.default {
|
|
|
16
16
|
async runAsync() {
|
|
17
17
|
log_1.default.warn('EAS Metadata is in beta and subject to breaking changes.');
|
|
18
18
|
const { flags } = await this.parse(MetadataPush);
|
|
19
|
-
const { loggedIn: { actor, graphqlClient },
|
|
19
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, } = await this.getContextAsync(MetadataPush, {
|
|
20
20
|
nonInteractive: false,
|
|
21
21
|
});
|
|
22
22
|
// this command is interactive (all nonInteractive flags passed to utility functions are false)
|
package/build/commands/open.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export default class Open 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
|
runAsync(): Promise<void>;
|
|
9
9
|
}
|
package/build/commands/open.js
CHANGED
|
@@ -10,7 +10,7 @@ const projectUtils_1 = require("../project/projectUtils");
|
|
|
10
10
|
class Open extends EasCommand_1.default {
|
|
11
11
|
async runAsync() {
|
|
12
12
|
// this command is interactive by nature (only really run by humans in a terminal)
|
|
13
|
-
const {
|
|
13
|
+
const { privateProjectConfig: { projectId, exp }, loggedIn: { graphqlClient }, } = await this.getContextAsync(Open, {
|
|
14
14
|
nonInteractive: false,
|
|
15
15
|
});
|
|
16
16
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -3,7 +3,7 @@ export default class ProjectInfo 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
|
runAsync(): Promise<void>;
|
|
9
9
|
}
|
|
@@ -24,7 +24,7 @@ async function projectInfoByIdAsync(graphqlClient, appId) {
|
|
|
24
24
|
}
|
|
25
25
|
class ProjectInfo extends EasCommand_1.default {
|
|
26
26
|
async runAsync() {
|
|
27
|
-
const {
|
|
27
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ProjectInfo, {
|
|
28
28
|
nonInteractive: true,
|
|
29
29
|
});
|
|
30
30
|
const { app } = await projectInfoByIdAsync(graphqlClient, projectId);
|
|
@@ -46,7 +46,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
static async ensureOwnerSlugConsistencyAsync(graphqlClient, projectId, projectDir, { force, nonInteractive }) {
|
|
49
|
-
const exp = (0, expoConfig_1.
|
|
49
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
50
50
|
const appForProjectId = await AppQuery_1.AppQuery.byIdAsync(graphqlClient, projectId);
|
|
51
51
|
const correctOwner = appForProjectId.ownerAccount.name;
|
|
52
52
|
const correctSlug = appForProjectId.slug;
|
|
@@ -95,7 +95,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
95
95
|
}
|
|
96
96
|
static async setExplicitIDAsync(projectId, projectDir, { force, nonInteractive }) {
|
|
97
97
|
var _c, _d;
|
|
98
|
-
const exp = (0, expoConfig_1.
|
|
98
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
99
99
|
const existingProjectId = (_d = (_c = exp.extra) === null || _c === void 0 ? void 0 : _c.eas) === null || _d === void 0 ? void 0 : _d.projectId;
|
|
100
100
|
if (projectId === existingProjectId) {
|
|
101
101
|
log_1.default.succeed(`Project already linked (ID: ${chalk_1.default.bold(existingProjectId)})`);
|
|
@@ -130,7 +130,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
130
130
|
}
|
|
131
131
|
static async initializeWithInteractiveSelectionAsync(graphqlClient, actor, projectDir) {
|
|
132
132
|
var _c, _d, _e;
|
|
133
|
-
const exp = (0, expoConfig_1.
|
|
133
|
+
const exp = (0, expoConfig_1.getPrivateExpoConfig)(projectDir);
|
|
134
134
|
const existingProjectId = (_d = (_c = exp.extra) === null || _c === void 0 ? void 0 : _c.eas) === null || _d === void 0 ? void 0 : _d.projectId;
|
|
135
135
|
if (existingProjectId) {
|
|
136
136
|
log_1.default.succeed(`Project already linked (ID: ${chalk_1.default.bold(existingProjectId)}). To re-configure, remove the "extra.eas.projectId" field from your app config.`);
|
|
@@ -13,7 +13,7 @@ export default class EnvironmentSecretCreate extends EasCommand {
|
|
|
13
13
|
};
|
|
14
14
|
static contextDefinition: {
|
|
15
15
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
16
|
-
|
|
16
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
17
17
|
};
|
|
18
18
|
runAsync(): Promise<void>;
|
|
19
19
|
}
|
|
@@ -18,7 +18,7 @@ const prompts_1 = require("../../prompts");
|
|
|
18
18
|
class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
19
19
|
async runAsync() {
|
|
20
20
|
let { flags: { name, value: secretValue, scope, force, type: secretType, 'non-interactive': nonInteractive, }, } = await this.parse(EnvironmentSecretCreate);
|
|
21
|
-
const {
|
|
21
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretCreate, {
|
|
22
22
|
nonInteractive,
|
|
23
23
|
});
|
|
24
24
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -7,7 +7,7 @@ export default class EnvironmentSecretDelete extends EasCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static contextDefinition: {
|
|
9
9
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
10
|
-
|
|
10
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
11
11
|
};
|
|
12
12
|
runAsync(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ const prompts_1 = require("../../prompts");
|
|
|
12
12
|
class EnvironmentSecretDelete extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
14
|
let { flags: { id, 'non-interactive': nonInteractive }, } = await this.parse(EnvironmentSecretDelete);
|
|
15
|
-
const {
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretDelete, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
let secret;
|
|
@@ -3,7 +3,7 @@ export default class EnvironmentSecretList 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
|
runAsync(): Promise<void>;
|
|
9
9
|
}
|
|
@@ -10,7 +10,7 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
10
10
|
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
11
11
|
class EnvironmentSecretList extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
const {
|
|
13
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretList, {
|
|
14
14
|
nonInteractive: true,
|
|
15
15
|
});
|
|
16
16
|
const secrets = await EnvironmentSecretsQuery_1.EnvironmentSecretsQuery.allAsync(graphqlClient, projectId);
|
|
@@ -10,7 +10,7 @@ export default class EnvironmentSecretPush extends EasCommand {
|
|
|
10
10
|
};
|
|
11
11
|
static contextDefinition: {
|
|
12
12
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
13
|
-
|
|
13
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
14
14
|
};
|
|
15
15
|
runAsync(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -20,7 +20,7 @@ const intersection_1 = tslib_1.__importDefault(require("../../utils/expodash/int
|
|
|
20
20
|
class EnvironmentSecretPush extends EasCommand_1.default {
|
|
21
21
|
async runAsync() {
|
|
22
22
|
const { flags: { scope, force, 'env-file': maybeEnvFilePath, 'non-interactive': nonInteractive }, } = await this.parse(EnvironmentSecretPush);
|
|
23
|
-
const {
|
|
23
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretPush, {
|
|
24
24
|
nonInteractive,
|
|
25
25
|
});
|
|
26
26
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|