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.
Files changed (262) hide show
  1. package/README.md +81 -59
  2. package/build/analytics/AnalyticsManager.js +4 -4
  3. package/build/branch/queries.js +4 -4
  4. package/build/build/android/build.js +8 -9
  5. package/build/build/android/syncProjectConfiguration.d.ts +1 -3
  6. package/build/build/android/syncProjectConfiguration.js +3 -3
  7. package/build/build/android/version.js +3 -3
  8. package/build/build/build.d.ts +1 -1
  9. package/build/build/build.js +6 -6
  10. package/build/build/configure.js +3 -33
  11. package/build/build/context.d.ts +1 -1
  12. package/build/build/createContext.d.ts +2 -2
  13. package/build/build/createContext.js +3 -3
  14. package/build/build/ios/build.js +9 -10
  15. package/build/build/ios/syncProjectConfiguration.d.ts +1 -3
  16. package/build/build/ios/syncProjectConfiguration.js +3 -3
  17. package/build/build/ios/version.js +3 -3
  18. package/build/build/local.js +1 -1
  19. package/build/build/metadata.js +4 -4
  20. package/build/build/queries.js +1 -1
  21. package/build/build/runBuildAndSubmit.d.ts +1 -1
  22. package/build/build/runBuildAndSubmit.js +12 -13
  23. package/build/build/types.js +2 -2
  24. package/build/build/utils/devClient.js +1 -1
  25. package/build/build/utils/formatBuild.js +1 -1
  26. package/build/build/utils/printBuildInfo.js +1 -1
  27. package/build/build/utils/version.js +1 -1
  28. package/build/channel/print-utils.js +5 -5
  29. package/build/channel/queries.d.ts +1 -1
  30. package/build/channel/queries.js +2 -2
  31. package/build/commandUtils/EasCommand.js +4 -4
  32. package/build/commandUtils/builds.d.ts +14 -0
  33. package/build/commandUtils/builds.js +79 -0
  34. package/build/commandUtils/context/AnalyticsContextField.d.ts +1 -1
  35. package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
  36. package/build/commandUtils/context/DynamicProjectConfigContextField.js +1 -1
  37. package/build/commandUtils/context/LoggedInContextField.d.ts +2 -2
  38. package/build/commandUtils/context/LoggedInContextField.js +2 -2
  39. package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +2 -2
  40. package/build/commandUtils/context/MaybeLoggedInContextField.js +2 -2
  41. package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +1 -1
  42. package/build/commandUtils/context/PrivateProjectConfigContextField.js +1 -1
  43. package/build/commandUtils/context/SessionManagementContextField.d.ts +1 -1
  44. package/build/commandUtils/context/VcsClientContextField.d.ts +1 -1
  45. package/build/commandUtils/context/VcsClientContextField.js +1 -1
  46. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -2
  47. package/build/commandUtils/gating/FeatureGateKey.js +1 -1
  48. package/build/commands/account/login.js +3 -3
  49. package/build/commands/account/logout.js +2 -2
  50. package/build/commands/account/view.js +4 -4
  51. package/build/commands/analytics.js +1 -1
  52. package/build/commands/branch/create.js +3 -3
  53. package/build/commands/branch/delete.js +3 -3
  54. package/build/commands/branch/list.js +3 -3
  55. package/build/commands/branch/publish.js +1 -1
  56. package/build/commands/branch/rename.js +3 -3
  57. package/build/commands/branch/view.js +3 -3
  58. package/build/commands/build/cancel.d.ts +7 -1
  59. package/build/commands/build/cancel.js +35 -56
  60. package/build/commands/build/configure.js +6 -11
  61. package/build/commands/build/delete.d.ts +24 -0
  62. package/build/commands/build/delete.js +115 -0
  63. package/build/commands/build/index.js +3 -3
  64. package/build/commands/build/inspect.js +3 -3
  65. package/build/commands/build/internal.js +3 -3
  66. package/build/commands/build/list.js +3 -3
  67. package/build/commands/build/resign.js +3 -3
  68. package/build/commands/build/run.js +3 -3
  69. package/build/commands/build/version/get.js +3 -3
  70. package/build/commands/build/version/set.js +4 -4
  71. package/build/commands/build/version/sync.js +3 -3
  72. package/build/commands/build/view.js +3 -3
  73. package/build/commands/channel/create.js +3 -3
  74. package/build/commands/channel/delete.js +3 -3
  75. package/build/commands/channel/edit.js +3 -3
  76. package/build/commands/channel/list.js +3 -3
  77. package/build/commands/channel/rollout.js +4 -5
  78. package/build/commands/channel/view.js +3 -3
  79. package/build/commands/config.js +3 -3
  80. package/build/commands/credentials.js +3 -3
  81. package/build/commands/device/create.js +2 -2
  82. package/build/commands/device/delete.js +3 -3
  83. package/build/commands/device/list.js +3 -3
  84. package/build/commands/device/rename.js +3 -3
  85. package/build/commands/device/view.js +3 -3
  86. package/build/commands/diagnostics.js +2 -2
  87. package/build/commands/metadata/lint.js +3 -3
  88. package/build/commands/metadata/pull.js +3 -3
  89. package/build/commands/metadata/push.js +3 -3
  90. package/build/commands/open.js +2 -3
  91. package/build/commands/project/info.js +2 -2
  92. package/build/commands/project/init.js +12 -12
  93. package/build/commands/secret/create.js +3 -3
  94. package/build/commands/secret/delete.js +3 -3
  95. package/build/commands/secret/list.js +2 -2
  96. package/build/commands/secret/push.js +3 -3
  97. package/build/commands/submit.js +3 -3
  98. package/build/commands/update/configure.js +4 -4
  99. package/build/commands/update/delete.js +3 -3
  100. package/build/commands/update/index.js +4 -4
  101. package/build/commands/update/list.js +3 -3
  102. package/build/commands/update/republish.js +3 -3
  103. package/build/commands/update/roll-back-to-embedded.js +4 -4
  104. package/build/commands/update/rollback.js +3 -3
  105. package/build/commands/update/view.js +3 -3
  106. package/build/commands/webhook/create.js +3 -3
  107. package/build/commands/webhook/delete.js +3 -3
  108. package/build/commands/webhook/list.js +3 -3
  109. package/build/commands/webhook/update.js +3 -3
  110. package/build/commands/webhook/view.js +3 -3
  111. package/build/credentials/android/AndroidCredentialsProvider.d.ts +1 -1
  112. package/build/credentials/android/AndroidCredentialsProvider.js +1 -1
  113. package/build/credentials/android/actions/RemoveKeystore.js +1 -1
  114. package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
  115. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
  116. package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
  117. package/build/credentials/android/api/GraphqlClient.js +2 -2
  118. package/build/credentials/context.d.ts +3 -3
  119. package/build/credentials/context.js +3 -3
  120. package/build/credentials/credentialsJson/read.d.ts +1 -1
  121. package/build/credentials/credentialsJson/update.js +2 -2
  122. package/build/credentials/credentialsJson/utils.d.ts +1 -1
  123. package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -1
  124. package/build/credentials/ios/IosCredentialsProvider.js +4 -4
  125. package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
  126. package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
  127. package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
  128. package/build/credentials/ios/actions/AssignPushKey.js +1 -1
  129. package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
  130. package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
  131. package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
  132. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  133. package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
  134. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  135. package/build/credentials/ios/actions/DeviceUtils.js +1 -1
  136. package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
  137. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  138. package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
  139. package/build/credentials/ios/actions/RemoveDistributionCertificate.js +2 -2
  140. package/build/credentials/ios/actions/RemovePushKey.js +1 -1
  141. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +18 -4
  142. package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
  143. package/build/credentials/ios/actions/SetUpAscApiKey.js +4 -4
  144. package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -1
  145. package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
  146. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -3
  147. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +3 -3
  148. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +4 -4
  149. package/build/credentials/ios/actions/SetUpPushKey.js +2 -2
  150. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +2 -2
  151. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
  152. package/build/credentials/ios/api/GraphqlClient.d.ts +4 -4
  153. package/build/credentials/ios/api/GraphqlClient.js +4 -4
  154. package/build/credentials/ios/appstore/AppStoreApi.d.ts +2 -1
  155. package/build/credentials/ios/appstore/AppStoreApi.js +1 -1
  156. package/build/credentials/ios/appstore/CredentialsUtils.d.ts +1 -1
  157. package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
  158. package/build/credentials/ios/appstore/ascApiKey.js +1 -1
  159. package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
  160. package/build/credentials/ios/appstore/authenticate.js +2 -2
  161. package/build/credentials/ios/appstore/authenticateTypes.js +2 -2
  162. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
  163. package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
  164. package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
  165. package/build/credentials/ios/appstore/provisioningProfile.js +4 -4
  166. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +2 -2
  167. package/build/credentials/ios/appstore/pushKey.js +1 -1
  168. package/build/credentials/ios/appstore/resolveCredentials.d.ts +1 -1
  169. package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
  170. package/build/credentials/ios/credentials.d.ts +1 -1
  171. package/build/credentials/ios/credentials.js +1 -1
  172. package/build/credentials/manager/Actions.js +3 -3
  173. package/build/credentials/manager/IosActions.d.ts +1 -1
  174. package/build/credentials/manager/ManageAndroid.js +7 -7
  175. package/build/credentials/manager/ManageIos.js +5 -5
  176. package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
  177. package/build/credentials/manager/SelectPlatform.js +1 -1
  178. package/build/devices/actions/create/action.js +3 -3
  179. package/build/devices/actions/create/currentMachineMethod.js +1 -1
  180. package/build/devices/actions/create/inputMethod.js +1 -1
  181. package/build/devices/manager.d.ts +1 -1
  182. package/build/devices/manager.js +1 -1
  183. package/build/devices/queries.d.ts +1 -1
  184. package/build/devices/queries.js +1 -1
  185. package/build/eas-update/utils.d.ts +1 -0
  186. package/build/graphql/generated.d.ts +1592 -1534
  187. package/build/graphql/generated.js +75 -70
  188. package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
  189. package/build/graphql/types/EnvironmentSecret.js +1 -1
  190. package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
  191. package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
  192. package/build/graphql/types/credentials/ApplePushKey.js +1 -1
  193. package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
  194. package/build/log.js +1 -1
  195. package/build/metadata/apple/tasks/index.d.ts +1 -1
  196. package/build/metadata/config/issue.js +1 -1
  197. package/build/metadata/config/resolve.d.ts +1 -1
  198. package/build/metadata/config/resolve.js +2 -3
  199. package/build/metadata/config/validate.js +1 -1
  200. package/build/metadata/download.js +3 -3
  201. package/build/metadata/upload.js +3 -3
  202. package/build/metadata/utils/ajv.js +2 -2
  203. package/build/platform.js +1 -1
  204. package/build/project/android/applicationId.d.ts +1 -1
  205. package/build/project/android/applicationId.js +1 -1
  206. package/build/project/android/gradle.js +1 -1
  207. package/build/project/android/versions.d.ts +1 -1
  208. package/build/project/ios/target.d.ts +1 -1
  209. package/build/project/ios/target.js +2 -2
  210. package/build/project/publish.js +4 -4
  211. package/build/rollout/actions/CreateRollout.js +2 -4
  212. package/build/rollout/actions/EndRollout.js +1 -1
  213. package/build/rollout/actions/ManageRollout.d.ts +2 -2
  214. package/build/rollout/actions/ManageRollout.js +3 -3
  215. package/build/rollout/actions/NonInteractiveRollout.d.ts +3 -3
  216. package/build/rollout/actions/NonInteractiveRollout.js +5 -5
  217. package/build/rollout/actions/RolloutMainMenu.d.ts +2 -2
  218. package/build/rollout/actions/RolloutMainMenu.js +4 -4
  219. package/build/rollout/utils.d.ts +1 -1
  220. package/build/rollout/utils.js +1 -1
  221. package/build/run/android/aapt.js +1 -1
  222. package/build/run/android/adb.js +1 -1
  223. package/build/run/android/emulator.js +2 -2
  224. package/build/run/ios/simulator.js +1 -1
  225. package/build/run/ios/systemRequirements.js +2 -2
  226. package/build/run/run.js +1 -1
  227. package/build/submit/ArchiveSource.js +3 -3
  228. package/build/submit/BaseSubmitter.d.ts +2 -2
  229. package/build/submit/BaseSubmitter.js +1 -1
  230. package/build/submit/android/AndroidSubmitCommand.js +2 -2
  231. package/build/submit/android/AndroidSubmitter.d.ts +1 -1
  232. package/build/submit/android/AndroidSubmitter.js +1 -1
  233. package/build/submit/android/ServiceAccountSource.js +1 -1
  234. package/build/submit/commons.js +1 -1
  235. package/build/submit/ios/AppProduce.js +1 -1
  236. package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
  237. package/build/submit/ios/AscApiKeySource.js +1 -1
  238. package/build/submit/ios/IosSubmitCommand.js +4 -4
  239. package/build/submit/ios/IosSubmitter.d.ts +2 -2
  240. package/build/submit/ios/IosSubmitter.js +2 -2
  241. package/build/submit/submit.d.ts +1 -1
  242. package/build/submit/submit.js +4 -4
  243. package/build/submit/utils/logs.js +1 -1
  244. package/build/update/android/UpdatesModule.d.ts +1 -2
  245. package/build/update/android/UpdatesModule.js +3 -5
  246. package/build/update/configure.d.ts +1 -6
  247. package/build/update/configure.js +8 -46
  248. package/build/update/ios/UpdatesModule.d.ts +1 -2
  249. package/build/update/ios/UpdatesModule.js +2 -4
  250. package/build/update/queries.js +1 -1
  251. package/build/user/SessionManager.js +3 -3
  252. package/build/user/actions.d.ts +1 -1
  253. package/build/user/fetchSessionSecretAndSsoUser.js +1 -1
  254. package/build/user/fetchSessionSecretAndUser.js +1 -1
  255. package/build/utils/download.js +3 -3
  256. package/build/utils/expoCli.js +1 -1
  257. package/build/utils/progress.js +1 -1
  258. package/build/utils/queries.js +1 -1
  259. package/build/utils/relay.js +2 -2
  260. package/build/vcs/clients/gitNoCommit.js +1 -1
  261. package/oclif.manifest.json +70 -1
  262. 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(ChannelDelete);
17
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelDelete, {
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(ChannelEdit);
46
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelEdit, {
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(ChannelList);
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(ChannelList, {
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(ChannelRollout);
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(ChannelRollout, {
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(ChannelView);
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(ChannelView, {
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;
@@ -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(Config);
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(Config, {
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(Credentials);
11
- const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(Credentials, {
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(DeviceCreate, {
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(DeviceDelete);
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(DeviceDelete, {
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(BuildList);
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(BuildList, {
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(DeviceRename);
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(DeviceRename, {
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(DeviceView)).args;
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(DeviceView, {
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(Diagnostics, {
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(MetadataLint);
17
- const { projectDir } = await this.getContextAsync(MetadataLint, {
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(MetadataPull);
21
- const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(MetadataPull, {
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(MetadataPush);
19
- const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(MetadataPush, {
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;
@@ -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(Open, {
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(ProjectInfo, {
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 ProjectInit.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
105
+ await _a.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
106
106
  return;
107
107
  }
108
108
  if (projectId !== existingProjectId) {
109
109
  if (force) {
110
- await ProjectInit.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
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 ProjectInit.saveProjectIdAndLogSuccessAsync(projectDir, projectId);
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 = ProjectInit.getAccountChoices(actor, accountNamesWhereUserHasSufficientPermissionsToCreateApp);
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 ProjectInit.saveProjectIdAndLogSuccessAsync(projectDir, existingProjectIdOnServer);
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 ProjectInit.saveProjectIdAndLogSuccessAsync(projectDir, createdProjectId);
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(ProjectInit);
248
- const { loggedIn: { actor, graphqlClient }, projectDir, } = await this.getContextAsync(ProjectInit, { nonInteractive });
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 ProjectInit.initializeWithExplicitIDAsync(idArgument, projectDir, {
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 ProjectInit.initializeWithInteractiveSelectionAsync(graphqlClient, actor, projectDir);
258
+ idForConsistency = await _a.initializeWithInteractiveSelectionAsync(graphqlClient, actor, projectDir);
259
259
  }
260
- await ProjectInit.ensureOwnerSlugConsistencyAsync(graphqlClient, idForConsistency, projectDir, {
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(EnvironmentSecretCreate);
21
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretCreate, {
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(EnvironmentSecretDelete);
15
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretDelete, {
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(EnvironmentSecretList, {
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(EnvironmentSecretPush);
23
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvironmentSecretPush, {
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;