eas-cli 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -59
- package/build/analytics/AnalyticsManager.js +4 -4
- package/build/branch/queries.js +4 -4
- package/build/build/android/build.js +8 -9
- package/build/build/android/syncProjectConfiguration.d.ts +1 -3
- package/build/build/android/syncProjectConfiguration.js +3 -3
- package/build/build/android/version.js +3 -3
- package/build/build/build.d.ts +1 -1
- package/build/build/build.js +6 -6
- package/build/build/configure.js +3 -33
- package/build/build/context.d.ts +1 -1
- package/build/build/createContext.d.ts +2 -2
- package/build/build/createContext.js +3 -3
- package/build/build/ios/build.js +9 -10
- package/build/build/ios/syncProjectConfiguration.d.ts +1 -3
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +1 -1
- package/build/build/metadata.js +4 -4
- package/build/build/queries.js +1 -1
- package/build/build/runBuildAndSubmit.d.ts +1 -1
- package/build/build/runBuildAndSubmit.js +12 -13
- package/build/build/types.js +2 -2
- package/build/build/utils/devClient.js +1 -1
- package/build/build/utils/formatBuild.js +1 -1
- package/build/build/utils/printBuildInfo.js +1 -1
- package/build/build/utils/version.js +1 -1
- package/build/channel/print-utils.js +5 -5
- package/build/channel/queries.d.ts +1 -1
- package/build/channel/queries.js +2 -2
- package/build/commandUtils/EasCommand.js +4 -4
- package/build/commandUtils/builds.d.ts +14 -0
- package/build/commandUtils/builds.js +79 -0
- package/build/commandUtils/context/AnalyticsContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/LoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/LoggedInContextField.js +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.js +2 -2
- package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/PrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/SessionManagementContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.js +1 -1
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -2
- package/build/commandUtils/gating/FeatureGateKey.js +1 -1
- package/build/commands/account/login.js +3 -3
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +4 -4
- package/build/commands/analytics.js +1 -1
- package/build/commands/branch/create.js +3 -3
- package/build/commands/branch/delete.js +3 -3
- package/build/commands/branch/list.js +3 -3
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +3 -3
- package/build/commands/branch/view.js +3 -3
- package/build/commands/build/cancel.d.ts +7 -1
- package/build/commands/build/cancel.js +35 -56
- package/build/commands/build/configure.js +6 -11
- package/build/commands/build/delete.d.ts +24 -0
- package/build/commands/build/delete.js +115 -0
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/inspect.js +3 -3
- package/build/commands/build/internal.js +3 -3
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/resign.js +3 -3
- package/build/commands/build/run.js +3 -3
- package/build/commands/build/version/get.js +3 -3
- package/build/commands/build/version/set.js +4 -4
- package/build/commands/build/version/sync.js +3 -3
- package/build/commands/build/view.js +3 -3
- package/build/commands/channel/create.js +3 -3
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +3 -3
- package/build/commands/channel/list.js +3 -3
- package/build/commands/channel/rollout.js +4 -5
- package/build/commands/channel/view.js +3 -3
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +3 -3
- package/build/commands/device/create.js +2 -2
- package/build/commands/device/delete.js +3 -3
- package/build/commands/device/list.js +3 -3
- package/build/commands/device/rename.js +3 -3
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +2 -2
- package/build/commands/metadata/lint.js +3 -3
- package/build/commands/metadata/pull.js +3 -3
- package/build/commands/metadata/push.js +3 -3
- package/build/commands/open.js +2 -3
- package/build/commands/project/info.js +2 -2
- package/build/commands/project/init.js +12 -12
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +3 -3
- package/build/commands/secret/list.js +2 -2
- package/build/commands/secret/push.js +3 -3
- package/build/commands/submit.js +3 -3
- package/build/commands/update/configure.js +4 -4
- package/build/commands/update/delete.js +3 -3
- package/build/commands/update/index.js +4 -4
- package/build/commands/update/list.js +3 -3
- package/build/commands/update/republish.js +3 -3
- package/build/commands/update/roll-back-to-embedded.js +4 -4
- package/build/commands/update/rollback.js +3 -3
- package/build/commands/update/view.js +3 -3
- package/build/commands/webhook/create.js +3 -3
- package/build/commands/webhook/delete.js +3 -3
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +3 -3
- package/build/commands/webhook/view.js +3 -3
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
- package/build/credentials/android/api/GraphqlClient.js +2 -2
- package/build/credentials/context.d.ts +3 -3
- package/build/credentials/context.js +3 -3
- package/build/credentials/credentialsJson/read.d.ts +1 -1
- package/build/credentials/credentialsJson/update.js +2 -2
- package/build/credentials/credentialsJson/utils.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +4 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/AssignPushKey.js +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DeviceUtils.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
- package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.js +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +18 -4
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.js +4 -4
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -3
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +4 -4
- package/build/credentials/ios/actions/SetUpPushKey.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.d.ts +4 -4
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +2 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +1 -1
- package/build/credentials/ios/appstore/CredentialsUtils.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
- package/build/credentials/ios/appstore/authenticate.js +2 -2
- package/build/credentials/ios/appstore/authenticateTypes.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/provisioningProfile.js +4 -4
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +2 -2
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.d.ts +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.d.ts +1 -1
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/manager/Actions.js +3 -3
- package/build/credentials/manager/IosActions.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +7 -7
- package/build/credentials/manager/ManageIos.js +5 -5
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
- package/build/credentials/manager/SelectPlatform.js +1 -1
- package/build/devices/actions/create/action.js +3 -3
- package/build/devices/actions/create/currentMachineMethod.js +1 -1
- package/build/devices/actions/create/inputMethod.js +1 -1
- package/build/devices/manager.d.ts +1 -1
- package/build/devices/manager.js +1 -1
- package/build/devices/queries.d.ts +1 -1
- package/build/devices/queries.js +1 -1
- package/build/eas-update/utils.d.ts +1 -0
- package/build/graphql/generated.d.ts +1592 -1534
- package/build/graphql/generated.js +75 -70
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +1 -1
- package/build/metadata/apple/tasks/index.d.ts +1 -1
- package/build/metadata/config/issue.js +1 -1
- package/build/metadata/config/resolve.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -3
- package/build/metadata/config/validate.js +1 -1
- package/build/metadata/download.js +3 -3
- package/build/metadata/upload.js +3 -3
- package/build/metadata/utils/ajv.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.d.ts +1 -1
- package/build/project/android/applicationId.js +1 -1
- package/build/project/android/gradle.js +1 -1
- package/build/project/android/versions.d.ts +1 -1
- package/build/project/ios/target.d.ts +1 -1
- package/build/project/ios/target.js +2 -2
- package/build/project/publish.js +4 -4
- package/build/rollout/actions/CreateRollout.js +2 -4
- package/build/rollout/actions/EndRollout.js +1 -1
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.js +3 -3
- package/build/rollout/actions/NonInteractiveRollout.d.ts +3 -3
- package/build/rollout/actions/NonInteractiveRollout.js +5 -5
- package/build/rollout/actions/RolloutMainMenu.d.ts +2 -2
- package/build/rollout/actions/RolloutMainMenu.js +4 -4
- package/build/rollout/utils.d.ts +1 -1
- package/build/rollout/utils.js +1 -1
- package/build/run/android/aapt.js +1 -1
- package/build/run/android/adb.js +1 -1
- package/build/run/android/emulator.js +2 -2
- package/build/run/ios/simulator.js +1 -1
- package/build/run/ios/systemRequirements.js +2 -2
- package/build/run/run.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.d.ts +2 -2
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +2 -2
- package/build/submit/android/AndroidSubmitter.d.ts +1 -1
- package/build/submit/android/AndroidSubmitter.js +1 -1
- package/build/submit/android/ServiceAccountSource.js +1 -1
- package/build/submit/commons.js +1 -1
- package/build/submit/ios/AppProduce.js +1 -1
- package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/submit/ios/IosSubmitCommand.js +4 -4
- package/build/submit/ios/IosSubmitter.d.ts +2 -2
- package/build/submit/ios/IosSubmitter.js +2 -2
- package/build/submit/submit.d.ts +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/logs.js +1 -1
- package/build/update/android/UpdatesModule.d.ts +1 -2
- package/build/update/android/UpdatesModule.js +3 -5
- package/build/update/configure.d.ts +1 -6
- package/build/update/configure.js +8 -46
- package/build/update/ios/UpdatesModule.d.ts +1 -2
- package/build/update/ios/UpdatesModule.js +2 -4
- package/build/update/queries.js +1 -1
- package/build/user/SessionManager.js +3 -3
- package/build/user/actions.d.ts +1 -1
- package/build/user/fetchSessionSecretAndSsoUser.js +1 -1
- package/build/user/fetchSessionSecretAndUser.js +1 -1
- package/build/utils/download.js +3 -3
- package/build/utils/expoCli.js +1 -1
- package/build/utils/progress.js +1 -1
- package/build/utils/queries.js +1 -1
- package/build/utils/relay.js +2 -2
- package/build/vcs/clients/gitNoCommit.js +1 -1
- package/oclif.manifest.json +70 -1
- package/package.json +39 -37
|
@@ -13,8 +13,8 @@ const prompts_1 = require("../../prompts");
|
|
|
13
13
|
const json_1 = require("../../utils/json");
|
|
14
14
|
class ChannelDelete extends EasCommand_1.default {
|
|
15
15
|
async runAsync() {
|
|
16
|
-
const { args: { name: nameArg }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
17
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
16
|
+
const { args: { name: nameArg }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
17
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
18
18
|
nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
if (jsonFlag) {
|
|
@@ -66,7 +66,6 @@ class ChannelDelete extends EasCommand_1.default {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
exports.default = ChannelDelete;
|
|
70
69
|
_a = ChannelDelete;
|
|
71
70
|
ChannelDelete.hidden = true;
|
|
72
71
|
ChannelDelete.description = 'Delete a channel';
|
|
@@ -84,6 +83,7 @@ ChannelDelete.contextDefinition = {
|
|
|
84
83
|
..._a.ContextOptions.ProjectConfig,
|
|
85
84
|
..._a.ContextOptions.LoggedIn,
|
|
86
85
|
};
|
|
86
|
+
exports.default = ChannelDelete;
|
|
87
87
|
async function deleteChannelOnAppAsync(graphqlClient, { channelId }) {
|
|
88
88
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
89
89
|
.mutation((0, graphql_tag_1.default) `
|
|
@@ -42,8 +42,8 @@ async function updateChannelBranchMappingAsync(graphqlClient, { channelId, branc
|
|
|
42
42
|
exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
|
|
43
43
|
class ChannelEdit extends EasCommand_1.default {
|
|
44
44
|
async runAsync() {
|
|
45
|
-
const { args, flags: { branch: branchFlag, json, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
46
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
45
|
+
const { args, flags: { branch: branchFlag, json, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
46
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
47
47
|
nonInteractive,
|
|
48
48
|
});
|
|
49
49
|
if (json) {
|
|
@@ -98,7 +98,6 @@ class ChannelEdit extends EasCommand_1.default {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
exports.default = ChannelEdit;
|
|
102
101
|
_a = ChannelEdit;
|
|
103
102
|
ChannelEdit.description = 'point a channel at a new branch';
|
|
104
103
|
ChannelEdit.args = [
|
|
@@ -118,3 +117,4 @@ ChannelEdit.contextDefinition = {
|
|
|
118
117
|
..._a.ContextOptions.ProjectConfig,
|
|
119
118
|
..._a.ContextOptions.LoggedIn,
|
|
120
119
|
};
|
|
120
|
+
exports.default = ChannelEdit;
|
|
@@ -9,10 +9,10 @@ const pagination_1 = require("../../commandUtils/pagination");
|
|
|
9
9
|
const json_1 = require("../../utils/json");
|
|
10
10
|
class ChannelList extends EasCommand_1.default {
|
|
11
11
|
async runAsync() {
|
|
12
|
-
const { flags } = await this.parse(
|
|
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 { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
if (jsonFlag) {
|
|
@@ -24,7 +24,6 @@ class ChannelList extends EasCommand_1.default {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.default = ChannelList;
|
|
28
27
|
_a = ChannelList;
|
|
29
28
|
ChannelList.description = 'list all channels';
|
|
30
29
|
ChannelList.flags = {
|
|
@@ -36,3 +35,4 @@ ChannelList.contextDefinition = {
|
|
|
36
35
|
..._a.ContextOptions.ProjectConfig,
|
|
37
36
|
..._a.ContextOptions.LoggedIn,
|
|
38
37
|
};
|
|
38
|
+
exports.default = ChannelList;
|
|
@@ -19,17 +19,16 @@ var ActionRawFlagValue;
|
|
|
19
19
|
})(ActionRawFlagValue || (ActionRawFlagValue = {}));
|
|
20
20
|
class ChannelRollout extends EasCommand_1.default {
|
|
21
21
|
async runAsync() {
|
|
22
|
-
const { args, flags } = await this.parse(
|
|
22
|
+
const { args, flags } = await this.parse(_a);
|
|
23
23
|
const argsAndFlags = this.sanitizeArgsAndFlags({ ...flags, ...args });
|
|
24
|
-
const { privateProjectConfig: { exp, projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
24
|
+
const { privateProjectConfig: { exp, projectId, projectDir }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
25
25
|
nonInteractive: argsAndFlags.nonInteractive,
|
|
26
26
|
});
|
|
27
27
|
if (argsAndFlags.json) {
|
|
28
28
|
(0, json_1.enableJsonOutput)();
|
|
29
29
|
}
|
|
30
|
-
const app = { projectId, exp };
|
|
30
|
+
const app = { projectId, exp, projectDir };
|
|
31
31
|
const ctx = {
|
|
32
|
-
projectId,
|
|
33
32
|
nonInteractive: argsAndFlags.nonInteractive,
|
|
34
33
|
graphqlClient,
|
|
35
34
|
app,
|
|
@@ -69,7 +68,6 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
exports.default = ChannelRollout;
|
|
73
71
|
_a = ChannelRollout;
|
|
74
72
|
ChannelRollout.description = 'Roll a new branch out on a channel incrementally.';
|
|
75
73
|
ChannelRollout.args = [
|
|
@@ -142,3 +140,4 @@ ChannelRollout.contextDefinition = {
|
|
|
142
140
|
..._a.ContextOptions.ProjectConfig,
|
|
143
141
|
..._a.ContextOptions.LoggedIn,
|
|
144
142
|
};
|
|
143
|
+
exports.default = ChannelRollout;
|
|
@@ -10,10 +10,10 @@ const pagination_1 = require("../../commandUtils/pagination");
|
|
|
10
10
|
const json_1 = require("../../utils/json");
|
|
11
11
|
class ChannelView extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
let { args: { name: channelName }, flags, } = await this.parse(
|
|
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 { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
16
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
17
17
|
nonInteractive,
|
|
18
18
|
});
|
|
19
19
|
if (jsonFlag) {
|
|
@@ -43,7 +43,6 @@ class ChannelView extends EasCommand_1.default {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
exports.default = ChannelView;
|
|
47
46
|
_a = ChannelView;
|
|
48
47
|
ChannelView.description = 'view a channel';
|
|
49
48
|
ChannelView.args = [
|
|
@@ -61,3 +60,4 @@ ChannelView.contextDefinition = {
|
|
|
61
60
|
..._a.ContextOptions.ProjectConfig,
|
|
62
61
|
..._a.ContextOptions.LoggedIn,
|
|
63
62
|
};
|
|
63
|
+
exports.default = ChannelView;
|
package/build/commands/config.js
CHANGED
|
@@ -16,12 +16,12 @@ const prompts_1 = require("../prompts");
|
|
|
16
16
|
const json_1 = require("../utils/json");
|
|
17
17
|
class Config extends EasCommand_1.default {
|
|
18
18
|
async runAsync() {
|
|
19
|
-
const { flags } = await this.parse(
|
|
19
|
+
const { flags } = await this.parse(_a);
|
|
20
20
|
if (flags.json) {
|
|
21
21
|
(0, json_1.enableJsonOutput)();
|
|
22
22
|
}
|
|
23
23
|
const { platform: maybePlatform, profile: maybeProfile } = flags;
|
|
24
|
-
const { getDynamicPublicProjectConfigAsync, projectDir } = await this.getContextAsync(
|
|
24
|
+
const { getDynamicPublicProjectConfigAsync, projectDir } = await this.getContextAsync(_a, {
|
|
25
25
|
nonInteractive: false,
|
|
26
26
|
});
|
|
27
27
|
const accessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -75,7 +75,6 @@ class Config extends EasCommand_1.default {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
exports.default = Config;
|
|
79
78
|
_a = Config;
|
|
80
79
|
Config.description = 'display project configuration (app.json + eas.json)';
|
|
81
80
|
Config.flags = {
|
|
@@ -95,3 +94,4 @@ Config.contextDefinition = {
|
|
|
95
94
|
..._a.ContextOptions.DynamicProjectConfig,
|
|
96
95
|
..._a.ContextOptions.ProjectDir,
|
|
97
96
|
};
|
|
97
|
+
exports.default = Config;
|
|
@@ -7,14 +7,13 @@ const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand
|
|
|
7
7
|
const SelectPlatform_1 = require("../credentials/manager/SelectPlatform");
|
|
8
8
|
class Credentials extends EasCommand_1.default {
|
|
9
9
|
async runAsync() {
|
|
10
|
-
const { flags } = await this.parse(
|
|
11
|
-
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(
|
|
10
|
+
const { flags } = await this.parse(_a);
|
|
11
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
12
12
|
nonInteractive: false,
|
|
13
13
|
});
|
|
14
14
|
await new SelectPlatform_1.SelectPlatform(actor, graphqlClient, vcsClient, analytics, privateProjectConfig !== null && privateProjectConfig !== void 0 ? privateProjectConfig : null, getDynamicPrivateProjectConfigAsync, flags.platform).runAsync();
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.default = Credentials;
|
|
18
17
|
_a = Credentials;
|
|
19
18
|
Credentials.description = 'manage credentials';
|
|
20
19
|
Credentials.flags = {
|
|
@@ -27,3 +26,4 @@ Credentials.contextDefinition = {
|
|
|
27
26
|
..._a.ContextOptions.Analytics,
|
|
28
27
|
..._a.ContextOptions.Vcs,
|
|
29
28
|
};
|
|
29
|
+
exports.default = Credentials;
|
|
@@ -9,7 +9,7 @@ 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 }, privateProjectConfig, } = await this.getContextAsync(
|
|
12
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, } = await this.getContextAsync(_a, {
|
|
13
13
|
nonInteractive: false,
|
|
14
14
|
});
|
|
15
15
|
const ctx = await (0, context_1.createContextAsync)({
|
|
@@ -22,10 +22,10 @@ class DeviceCreate extends EasCommand_1.default {
|
|
|
22
22
|
await manager.createAsync();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
exports.default = DeviceCreate;
|
|
26
25
|
_a = DeviceCreate;
|
|
27
26
|
DeviceCreate.description = 'register new Apple Devices to use for internal distribution';
|
|
28
27
|
DeviceCreate.contextDefinition = {
|
|
29
28
|
..._a.ContextOptions.LoggedIn,
|
|
30
29
|
..._a.ContextOptions.OptionalProjectConfig,
|
|
31
30
|
};
|
|
31
|
+
exports.default = DeviceCreate;
|
|
@@ -20,10 +20,10 @@ const prompts_1 = require("../../prompts");
|
|
|
20
20
|
const json_1 = require("../../utils/json");
|
|
21
21
|
class DeviceDelete extends EasCommand_1.default {
|
|
22
22
|
async runAsync() {
|
|
23
|
-
const { flags } = await this.parse(
|
|
23
|
+
const { flags } = await this.parse(_a);
|
|
24
24
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
25
|
let { 'apple-team-id': appleTeamIdentifier, udid } = flags;
|
|
26
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
26
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
27
27
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
28
|
});
|
|
29
29
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -123,7 +123,6 @@ class DeviceDelete extends EasCommand_1.default {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
exports.default = DeviceDelete;
|
|
127
126
|
_a = DeviceDelete;
|
|
128
127
|
DeviceDelete.description = 'remove a registered device from your account';
|
|
129
128
|
DeviceDelete.flags = {
|
|
@@ -135,3 +134,4 @@ DeviceDelete.contextDefinition = {
|
|
|
135
134
|
..._a.ContextOptions.ProjectConfig,
|
|
136
135
|
..._a.ContextOptions.LoggedIn,
|
|
137
136
|
};
|
|
137
|
+
exports.default = DeviceDelete;
|
|
@@ -12,9 +12,9 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
12
12
|
const json_1 = require("../../utils/json");
|
|
13
13
|
class BuildList extends EasCommand_1.default {
|
|
14
14
|
async runAsync() {
|
|
15
|
-
const { flags } = await this.parse(
|
|
15
|
+
const { flags } = await this.parse(_a);
|
|
16
16
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
17
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
17
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
18
18
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
19
19
|
});
|
|
20
20
|
let appleTeamIdentifier = flags['apple-team-id'];
|
|
@@ -48,7 +48,6 @@ class BuildList extends EasCommand_1.default {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
exports.default = BuildList;
|
|
52
51
|
_a = BuildList;
|
|
53
52
|
BuildList.description = 'list all registered devices for your account';
|
|
54
53
|
BuildList.flags = {
|
|
@@ -60,3 +59,4 @@ BuildList.contextDefinition = {
|
|
|
60
59
|
..._a.ContextOptions.ProjectConfig,
|
|
61
60
|
..._a.ContextOptions.LoggedIn,
|
|
62
61
|
};
|
|
62
|
+
exports.default = BuildList;
|
|
@@ -20,10 +20,10 @@ const prompts_1 = require("../../prompts");
|
|
|
20
20
|
const json_1 = require("../../utils/json");
|
|
21
21
|
class DeviceRename extends EasCommand_1.default {
|
|
22
22
|
async runAsync() {
|
|
23
|
-
const { flags } = await this.parse(
|
|
23
|
+
const { flags } = await this.parse(_a);
|
|
24
24
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
25
|
let { 'apple-team-id': appleTeamIdentifier, udid, name } = flags;
|
|
26
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
26
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
27
27
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
28
|
});
|
|
29
29
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -112,7 +112,6 @@ class DeviceRename extends EasCommand_1.default {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
exports.default = DeviceRename;
|
|
116
115
|
_a = DeviceRename;
|
|
117
116
|
DeviceRename.description = 'rename a registered device';
|
|
118
117
|
DeviceRename.flags = {
|
|
@@ -125,3 +124,4 @@ DeviceRename.contextDefinition = {
|
|
|
125
124
|
..._a.ContextOptions.ProjectConfig,
|
|
126
125
|
..._a.ContextOptions.LoggedIn,
|
|
127
126
|
};
|
|
127
|
+
exports.default = DeviceRename;
|
|
@@ -10,7 +10,7 @@ const ora_1 = require("../../ora");
|
|
|
10
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
11
|
class DeviceView extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
const { UDID } = (await this.parse(
|
|
13
|
+
const { UDID } = (await this.parse(_a)).args;
|
|
14
14
|
if (!UDID) {
|
|
15
15
|
log_1.default.log(`The device UDID is required to view a specific device. For example:
|
|
16
16
|
|
|
@@ -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 { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
25
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
26
26
|
nonInteractive: true,
|
|
27
27
|
});
|
|
28
28
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -43,7 +43,6 @@ If you are not sure what is the UDID of the device you are looking for, run:
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
exports.default = DeviceView;
|
|
47
46
|
_a = DeviceView;
|
|
48
47
|
DeviceView.description = 'view a device for your project';
|
|
49
48
|
DeviceView.args = [{ name: 'UDID' }];
|
|
@@ -51,3 +50,4 @@ DeviceView.contextDefinition = {
|
|
|
51
50
|
..._a.ContextOptions.ProjectConfig,
|
|
52
51
|
..._a.ContextOptions.LoggedIn,
|
|
53
52
|
};
|
|
53
|
+
exports.default = DeviceView;
|
|
@@ -10,7 +10,7 @@ const workflow_1 = require("../project/workflow");
|
|
|
10
10
|
const easCli_1 = require("../utils/easCli");
|
|
11
11
|
class Diagnostics extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
const { projectDir, vcsClient } = await this.getContextAsync(
|
|
13
|
+
const { projectDir, vcsClient } = await this.getContextAsync(_a, {
|
|
14
14
|
nonInteractive: true,
|
|
15
15
|
});
|
|
16
16
|
const info = await envinfo_1.default.run({
|
|
@@ -50,10 +50,10 @@ class Diagnostics extends EasCommand_1.default {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
exports.default = Diagnostics;
|
|
54
53
|
_a = Diagnostics;
|
|
55
54
|
Diagnostics.description = 'display environment info';
|
|
56
55
|
Diagnostics.contextDefinition = {
|
|
57
56
|
..._a.ContextOptions.ProjectDir,
|
|
58
57
|
..._a.ContextOptions.Vcs,
|
|
59
58
|
};
|
|
59
|
+
exports.default = Diagnostics;
|
|
@@ -13,8 +13,8 @@ const json_1 = require("../../utils/json");
|
|
|
13
13
|
const profiles_1 = require("../../utils/profiles");
|
|
14
14
|
class MetadataLint extends EasCommand_1.default {
|
|
15
15
|
async runAsync() {
|
|
16
|
-
const { flags } = await this.parse(
|
|
17
|
-
const { projectDir } = await this.getContextAsync(
|
|
16
|
+
const { flags } = await this.parse(_a);
|
|
17
|
+
const { projectDir } = await this.getContextAsync(_a, {
|
|
18
18
|
nonInteractive: true,
|
|
19
19
|
});
|
|
20
20
|
if (flags.json) {
|
|
@@ -53,7 +53,6 @@ class MetadataLint extends EasCommand_1.default {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
exports.default = MetadataLint;
|
|
57
56
|
_a = MetadataLint;
|
|
58
57
|
MetadataLint.description = 'validate the local store configuration';
|
|
59
58
|
MetadataLint.flags = {
|
|
@@ -71,3 +70,4 @@ MetadataLint.contextDefinition = {
|
|
|
71
70
|
// Note that this is an exception and you should normally use `ProjectConfig` instead.
|
|
72
71
|
..._a.ContextOptions.ProjectDir,
|
|
73
72
|
};
|
|
73
|
+
exports.default = MetadataLint;
|
|
@@ -17,8 +17,8 @@ const profiles_1 = require("../../utils/profiles");
|
|
|
17
17
|
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
|
-
const { flags } = await this.parse(
|
|
21
|
-
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(
|
|
20
|
+
const { flags } = await this.parse(_a);
|
|
21
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
22
22
|
nonInteractive: false,
|
|
23
23
|
});
|
|
24
24
|
// this command is interactive (all nonInteractive flags passed to utility functions are false)
|
|
@@ -65,7 +65,6 @@ class MetadataPull extends EasCommand_1.default {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
exports.default = MetadataPull;
|
|
69
68
|
_a = MetadataPull;
|
|
70
69
|
MetadataPull.description = 'generate the local store configuration from the app stores';
|
|
71
70
|
MetadataPull.flags = {
|
|
@@ -80,3 +79,4 @@ MetadataPull.contextDefinition = {
|
|
|
80
79
|
..._a.ContextOptions.Analytics,
|
|
81
80
|
..._a.ContextOptions.Vcs,
|
|
82
81
|
};
|
|
82
|
+
exports.default = MetadataPull;
|
|
@@ -15,8 +15,8 @@ const profiles_1 = require("../../utils/profiles");
|
|
|
15
15
|
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
|
-
const { flags } = await this.parse(
|
|
19
|
-
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(
|
|
18
|
+
const { flags } = await this.parse(_a);
|
|
19
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
20
20
|
nonInteractive: false,
|
|
21
21
|
});
|
|
22
22
|
// this command is interactive (all nonInteractive flags passed to utility functions are false)
|
|
@@ -59,7 +59,6 @@ ${(0, log_1.learnMore)(appleLink, { learnMoreMessage: 'See the changes in App St
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
exports.default = MetadataPush;
|
|
63
62
|
_a = MetadataPush;
|
|
64
63
|
MetadataPush.description = 'sync the local store configuration to the app stores';
|
|
65
64
|
MetadataPush.flags = {
|
|
@@ -74,3 +73,4 @@ MetadataPush.contextDefinition = {
|
|
|
74
73
|
..._a.ContextOptions.Analytics,
|
|
75
74
|
..._a.ContextOptions.Vcs,
|
|
76
75
|
};
|
|
76
|
+
exports.default = MetadataPush;
|
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 { privateProjectConfig: { projectId, exp }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
13
|
+
const { privateProjectConfig: { projectId, exp }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
14
14
|
nonInteractive: false,
|
|
15
15
|
});
|
|
16
16
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -26,7 +26,6 @@ class Open extends EasCommand_1.default {
|
|
|
26
26
|
else {
|
|
27
27
|
spinner.fail(failedMessage);
|
|
28
28
|
}
|
|
29
|
-
return;
|
|
30
29
|
}
|
|
31
30
|
catch (error) {
|
|
32
31
|
spinner.fail(failedMessage);
|
|
@@ -34,10 +33,10 @@ class Open extends EasCommand_1.default {
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
exports.default = Open;
|
|
38
36
|
_a = Open;
|
|
39
37
|
Open.description = 'open the project page in a web browser';
|
|
40
38
|
Open.contextDefinition = {
|
|
41
39
|
..._a.ContextOptions.ProjectConfig,
|
|
42
40
|
..._a.ContextOptions.LoggedIn,
|
|
43
41
|
};
|
|
42
|
+
exports.default = Open;
|
|
@@ -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 { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
27
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
28
28
|
nonInteractive: true,
|
|
29
29
|
});
|
|
30
30
|
const { app } = await projectInfoByIdAsync(graphqlClient, projectId);
|
|
@@ -38,10 +38,10 @@ class ProjectInfo extends EasCommand_1.default {
|
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.default = ProjectInfo;
|
|
42
41
|
_a = ProjectInfo;
|
|
43
42
|
ProjectInfo.description = 'information about the current project';
|
|
44
43
|
ProjectInfo.contextDefinition = {
|
|
45
44
|
..._a.ContextOptions.ProjectConfig,
|
|
46
45
|
..._a.ContextOptions.LoggedIn,
|
|
47
46
|
};
|
|
47
|
+
exports.default = ProjectInfo;
|
|
@@ -102,12 +102,12 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
if (!existingProjectId) {
|
|
105
|
-
await
|
|
105
|
+
await _a.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
if (projectId !== existingProjectId) {
|
|
109
109
|
if (force) {
|
|
110
|
-
await
|
|
110
|
+
await _a.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
if (nonInteractive) {
|
|
@@ -119,7 +119,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
119
119
|
if (!confirm) {
|
|
120
120
|
throw new Error('Aborting');
|
|
121
121
|
}
|
|
122
|
-
await
|
|
122
|
+
await _a.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
static async initializeWithExplicitIDAsync(projectId, projectDir, { force, nonInteractive }) {
|
|
@@ -147,7 +147,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
147
147
|
accountName = allAccounts[0].name;
|
|
148
148
|
}
|
|
149
149
|
else {
|
|
150
|
-
const choices =
|
|
150
|
+
const choices = _a.getAccountChoices(actor, accountNamesWhereUserHasSufficientPermissionsToCreateApp);
|
|
151
151
|
accountName = (await (0, prompts_1.promptAsync)({
|
|
152
152
|
type: 'select',
|
|
153
153
|
name: 'account',
|
|
@@ -169,7 +169,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
169
169
|
if (!affirmedLink) {
|
|
170
170
|
throw new Error(`Project ID configuration canceled. Re-run the command to select a different account/project.`);
|
|
171
171
|
}
|
|
172
|
-
await
|
|
172
|
+
await _a.saveProjectIdAndLogSuccessAsync(projectDir, existingProjectIdOnServer);
|
|
173
173
|
return existingProjectIdOnServer;
|
|
174
174
|
}
|
|
175
175
|
if (!accountNamesWhereUserHasSufficientPermissionsToCreateApp.has(accountName)) {
|
|
@@ -198,7 +198,7 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
198
198
|
spinner.fail();
|
|
199
199
|
throw err;
|
|
200
200
|
}
|
|
201
|
-
await
|
|
201
|
+
await _a.saveProjectIdAndLogSuccessAsync(projectDir, createdProjectId);
|
|
202
202
|
return createdProjectId;
|
|
203
203
|
}
|
|
204
204
|
static getAccountChoices(actor, namesWithSufficientPermissions) {
|
|
@@ -244,26 +244,25 @@ class ProjectInit extends EasCommand_1.default {
|
|
|
244
244
|
}));
|
|
245
245
|
}
|
|
246
246
|
async runAsync() {
|
|
247
|
-
const { flags: { id: idArgument, force, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
248
|
-
const { loggedIn: { actor, graphqlClient }, projectDir, } = await this.getContextAsync(
|
|
247
|
+
const { flags: { id: idArgument, force, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
248
|
+
const { loggedIn: { actor, graphqlClient }, projectDir, } = await this.getContextAsync(_a, { nonInteractive });
|
|
249
249
|
let idForConsistency;
|
|
250
250
|
if (idArgument) {
|
|
251
|
-
await
|
|
251
|
+
await _a.initializeWithExplicitIDAsync(idArgument, projectDir, {
|
|
252
252
|
force,
|
|
253
253
|
nonInteractive,
|
|
254
254
|
});
|
|
255
255
|
idForConsistency = idArgument;
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
|
-
idForConsistency = await
|
|
258
|
+
idForConsistency = await _a.initializeWithInteractiveSelectionAsync(graphqlClient, actor, projectDir);
|
|
259
259
|
}
|
|
260
|
-
await
|
|
260
|
+
await _a.ensureOwnerSlugConsistencyAsync(graphqlClient, idForConsistency, projectDir, {
|
|
261
261
|
force,
|
|
262
262
|
nonInteractive,
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
exports.default = ProjectInit;
|
|
267
266
|
_a = ProjectInit;
|
|
268
267
|
ProjectInit.description = 'create or link an EAS project';
|
|
269
268
|
ProjectInit.aliases = ['init'];
|
|
@@ -285,3 +284,4 @@ ProjectInit.contextDefinition = {
|
|
|
285
284
|
..._a.ContextOptions.LoggedIn,
|
|
286
285
|
..._a.ContextOptions.ProjectDir,
|
|
287
286
|
};
|
|
287
|
+
exports.default = ProjectInit;
|
|
@@ -17,8 +17,8 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
17
17
|
const prompts_1 = require("../../prompts");
|
|
18
18
|
class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
19
19
|
async runAsync() {
|
|
20
|
-
let { flags: { name, value: secretValue, scope, force, type: secretType, 'non-interactive': nonInteractive, }, } = await this.parse(
|
|
21
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
20
|
+
let { flags: { name, value: secretValue, scope, force, type: secretType, 'non-interactive': nonInteractive, }, } = await this.parse(_a);
|
|
21
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
22
22
|
nonInteractive,
|
|
23
23
|
});
|
|
24
24
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -154,7 +154,6 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
exports.default = EnvironmentSecretCreate;
|
|
158
157
|
_a = EnvironmentSecretCreate;
|
|
159
158
|
EnvironmentSecretCreate.description = 'create an environment secret on the current project or owner account';
|
|
160
159
|
EnvironmentSecretCreate.flags = {
|
|
@@ -183,3 +182,4 @@ EnvironmentSecretCreate.contextDefinition = {
|
|
|
183
182
|
..._a.ContextOptions.ProjectConfig,
|
|
184
183
|
..._a.ContextOptions.LoggedIn,
|
|
185
184
|
};
|
|
185
|
+
exports.default = EnvironmentSecretCreate;
|
|
@@ -11,8 +11,8 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
11
11
|
const prompts_1 = require("../../prompts");
|
|
12
12
|
class EnvironmentSecretDelete extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
let { flags: { id, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
15
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
14
|
+
let { flags: { id, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive,
|
|
17
17
|
});
|
|
18
18
|
let secret;
|
|
@@ -54,7 +54,6 @@ class EnvironmentSecretDelete extends EasCommand_1.default {
|
|
|
54
54
|
log_1.default.withTick(`️Deleted secret${(secret === null || secret === void 0 ? void 0 : secret.name) ? ` "${secret === null || secret === void 0 ? void 0 : secret.name}"` : ''} with id "${id}".`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.default = EnvironmentSecretDelete;
|
|
58
57
|
_a = EnvironmentSecretDelete;
|
|
59
58
|
EnvironmentSecretDelete.description = 'delete an environment secret by ID';
|
|
60
59
|
EnvironmentSecretDelete.flags = {
|
|
@@ -67,3 +66,4 @@ EnvironmentSecretDelete.contextDefinition = {
|
|
|
67
66
|
..._a.ContextOptions.ProjectConfig,
|
|
68
67
|
..._a.ContextOptions.LoggedIn,
|
|
69
68
|
};
|
|
69
|
+
exports.default = EnvironmentSecretDelete;
|
|
@@ -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 { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
13
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
14
14
|
nonInteractive: true,
|
|
15
15
|
});
|
|
16
16
|
const secrets = await EnvironmentSecretsQuery_1.EnvironmentSecretsQuery.allAsync(graphqlClient, projectId);
|
|
@@ -18,13 +18,13 @@ class EnvironmentSecretList extends EasCommand_1.default {
|
|
|
18
18
|
log_1.default.log(secrets.map(secret => formatSecret(secret)).join(`\n\n${chalk_1.default.dim('———')}\n\n`));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.default = EnvironmentSecretList;
|
|
22
21
|
_a = EnvironmentSecretList;
|
|
23
22
|
EnvironmentSecretList.description = 'list environment secrets available for your current app';
|
|
24
23
|
EnvironmentSecretList.contextDefinition = {
|
|
25
24
|
..._a.ContextOptions.ProjectConfig,
|
|
26
25
|
..._a.ContextOptions.LoggedIn,
|
|
27
26
|
};
|
|
27
|
+
exports.default = EnvironmentSecretList;
|
|
28
28
|
function formatSecret(secret) {
|
|
29
29
|
return (0, formatFields_1.default)([
|
|
30
30
|
{ label: 'ID', value: secret.id },
|
|
@@ -19,8 +19,8 @@ const prompts_1 = require("../../prompts");
|
|
|
19
19
|
const intersection_1 = tslib_1.__importDefault(require("../../utils/expodash/intersection"));
|
|
20
20
|
class EnvironmentSecretPush extends EasCommand_1.default {
|
|
21
21
|
async runAsync() {
|
|
22
|
-
const { flags: { scope, force, 'env-file': maybeEnvFilePath, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
23
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
22
|
+
const { flags: { scope, force, 'env-file': maybeEnvFilePath, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
23
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
24
24
|
nonInteractive,
|
|
25
25
|
});
|
|
26
26
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -44,7 +44,6 @@ class EnvironmentSecretPush extends EasCommand_1.default {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
exports.default = EnvironmentSecretPush;
|
|
48
47
|
_a = EnvironmentSecretPush;
|
|
49
48
|
EnvironmentSecretPush.description = 'read environment secrets from env file and store on the server';
|
|
50
49
|
EnvironmentSecretPush.flags = {
|
|
@@ -66,6 +65,7 @@ EnvironmentSecretPush.contextDefinition = {
|
|
|
66
65
|
..._a.ContextOptions.ProjectConfig,
|
|
67
66
|
..._a.ContextOptions.LoggedIn,
|
|
68
67
|
};
|
|
68
|
+
exports.default = EnvironmentSecretPush;
|
|
69
69
|
async function resolveEnvFilePathAsync(maybeEnvFilePath, nonInteractive) {
|
|
70
70
|
if (maybeEnvFilePath) {
|
|
71
71
|
return maybeEnvFilePath;
|