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
@@ -3,13 +3,13 @@ var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.selectBuildToCancelAsync = void 0;
5
5
  const tslib_1 = require("tslib");
6
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const core_1 = require("@oclif/core");
7
7
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
8
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
+ const builds_1 = require("../../commandUtils/builds");
9
10
  const flags_1 = require("../../commandUtils/flags");
10
11
  const client_1 = require("../../graphql/client");
11
12
  const generated_1 = require("../../graphql/generated");
12
- const BuildQuery_1 = require("../../graphql/queries/BuildQuery");
13
13
  const log_1 = tslib_1.__importDefault(require("../../log"));
14
14
  const ora_1 = require("../../ora");
15
15
  const platform_1 = require("../../platform");
@@ -30,60 +30,31 @@ async function cancelBuildAsync(graphqlClient, buildId) {
30
30
  .toPromise());
31
31
  return data.build.cancel;
32
32
  }
33
- function formatUnfinishedBuild(build) {
34
- const platform = platform_1.appPlatformEmojis[build.platform];
35
- const startTime = new Date(build.createdAt).toLocaleString();
36
- let statusText;
37
- if (build.status === generated_1.BuildStatus.New) {
38
- statusText = 'new';
39
- }
40
- else if (build.status === generated_1.BuildStatus.InQueue) {
41
- statusText = 'in queue';
42
- }
43
- else {
44
- statusText = 'in progress';
45
- }
46
- const status = chalk_1.default.blue(statusText);
47
- return `${platform} Started at: ${startTime}, Status: ${status}, Id: ${build.id}`;
48
- }
49
- async function selectBuildToCancelAsync(graphqlClient, projectId, projectDisplayName) {
33
+ async function selectBuildToCancelAsync(graphqlClient, projectId, projectDisplayName, filters) {
50
34
  const spinner = (0, ora_1.ora)().start('Fetching the uncompleted builds…');
51
35
  let builds;
52
36
  try {
53
- const [newBuilds, inQueueBuilds, inProgressBuilds] = await Promise.all([
54
- BuildQuery_1.BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
55
- appId: projectId,
56
- offset: 0,
57
- limit: 10,
58
- filter: { status: generated_1.BuildStatus.New },
59
- }),
60
- BuildQuery_1.BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
61
- appId: projectId,
62
- offset: 0,
63
- limit: 10,
64
- filter: { status: generated_1.BuildStatus.InQueue },
65
- }),
66
- BuildQuery_1.BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
67
- appId: projectId,
68
- offset: 0,
69
- limit: 10,
70
- filter: { status: generated_1.BuildStatus.InProgress },
71
- }),
72
- ]);
37
+ builds = await (0, builds_1.fetchBuildsAsync)({
38
+ graphqlClient,
39
+ projectId,
40
+ filters: {
41
+ ...filters,
42
+ statuses: [generated_1.BuildStatus.New, generated_1.BuildStatus.InQueue, generated_1.BuildStatus.InProgress],
43
+ },
44
+ });
73
45
  spinner.stop();
74
- builds = [...newBuilds, ...inQueueBuilds, ...inProgressBuilds];
75
46
  }
76
47
  catch (error) {
77
48
  spinner.fail(`Something went wrong and we couldn't fetch the builds for the project ${projectDisplayName}.`);
78
49
  throw error;
79
50
  }
80
51
  if (builds.length === 0) {
81
- log_1.default.warn(`There aren't any uncompleted builds for the project ${projectDisplayName}.`);
52
+ log_1.default.warn(`We couldn't find any uncompleted builds for the project ${projectDisplayName}.`);
82
53
  return null;
83
54
  }
84
55
  else {
85
56
  const buildId = await (0, prompts_1.selectAsync)('Which build do you want to cancel?', builds.map(build => ({
86
- title: formatUnfinishedBuild(build),
57
+ title: (0, builds_1.formatBuild)(build),
87
58
  value: build.id,
88
59
  })));
89
60
  return (await (0, prompts_1.confirmAsync)({
@@ -94,30 +65,28 @@ async function selectBuildToCancelAsync(graphqlClient, projectId, projectDisplay
94
65
  }
95
66
  }
96
67
  exports.selectBuildToCancelAsync = selectBuildToCancelAsync;
97
- async function ensureBuildExistsAsync(graphqlClient, buildId) {
98
- try {
99
- await BuildQuery_1.BuildQuery.byIdAsync(graphqlClient, buildId);
100
- }
101
- catch {
102
- throw new Error(`Couldn't find a build matching the id ${buildId}`);
103
- }
104
- }
105
68
  class BuildCancel extends EasCommand_1.default {
106
69
  async runAsync() {
107
- const { args: { BUILD_ID: buildIdFromArg }, flags: { 'non-interactive': nonInteractive }, } = await this.parse(BuildCancel);
108
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildCancel, {
70
+ const { args: { BUILD_ID: buildIdFromArg }, flags: { 'non-interactive': nonInteractive, platform, profile }, } = await this.parse(_a);
71
+ if (buildIdFromArg && (platform || profile)) {
72
+ throw new Error('Build ID cannot be used together with platform and profile flags. They are used to filter the list of builds when not providing the build ID');
73
+ }
74
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
109
75
  nonInteractive,
110
76
  });
111
77
  const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
112
78
  if (buildIdFromArg) {
113
- await ensureBuildExistsAsync(graphqlClient, buildIdFromArg);
79
+ await (0, builds_1.ensureBuildExistsAsync)(graphqlClient, buildIdFromArg);
114
80
  }
115
81
  let buildId = buildIdFromArg;
116
82
  if (!buildId) {
117
83
  if (nonInteractive) {
118
- throw new Error('BUILD_ID must not be empty in non-interactive mode');
84
+ throw new Error('Build ID must be provided in non-interactive mode');
119
85
  }
120
- buildId = await selectBuildToCancelAsync(graphqlClient, projectId, displayName);
86
+ buildId = await selectBuildToCancelAsync(graphqlClient, projectId, displayName, {
87
+ platform,
88
+ profile,
89
+ });
121
90
  if (!buildId) {
122
91
  return;
123
92
  }
@@ -139,15 +108,25 @@ class BuildCancel extends EasCommand_1.default {
139
108
  }
140
109
  }
141
110
  }
142
- exports.default = BuildCancel;
143
111
  _a = BuildCancel;
144
112
  BuildCancel.description = 'cancel a build';
145
113
  BuildCancel.args = [{ name: 'BUILD_ID' }];
146
114
  BuildCancel.flags = {
147
115
  ...flags_1.EASNonInteractiveFlag,
116
+ platform: core_1.Flags.enum({
117
+ char: 'p',
118
+ description: 'Filter builds by the platform if build ID is not provided',
119
+ options: Object.values(platform_1.RequestedPlatform),
120
+ }),
121
+ profile: core_1.Flags.string({
122
+ char: 'e',
123
+ description: 'Filter builds by build profile if build ID is not provided',
124
+ helpValue: 'PROFILE_NAME',
125
+ }),
148
126
  };
149
127
  BuildCancel.contextDefinition = {
150
128
  ..._a.ContextOptions.ProjectConfig,
151
129
  ..._a.ContextOptions.LoggedIn,
152
130
  ..._a.ContextOptions.Vcs,
153
131
  };
132
+ exports.default = BuildCancel;
@@ -18,9 +18,9 @@ const configure_2 = require("../../update/configure");
18
18
  const UpdatesModule_2 = require("../../update/ios/UpdatesModule");
19
19
  class BuildConfigure extends EasCommand_1.default {
20
20
  async runAsync() {
21
- var _b, _c;
22
- const { flags } = await this.parse(BuildConfigure);
23
- const { privateProjectConfig: { exp, projectId, projectDir }, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(BuildConfigure, {
21
+ var _b;
22
+ const { flags } = await this.parse(_a);
23
+ const { privateProjectConfig: { exp, projectId, projectDir }, vcsClient, } = await this.getContextAsync(_a, {
24
24
  nonInteractive: false,
25
25
  });
26
26
  log_1.default.log('💡 The following process will configure your iOS and/or Android project to be compatible with EAS Build. These changes only apply to your local project files and you can safely revert them at any time.');
@@ -40,11 +40,6 @@ class BuildConfigure extends EasCommand_1.default {
40
40
  vcsClient,
41
41
  });
42
42
  if (didCreateEasJson && (0, projectUtils_1.isUsingEASUpdate)(exp, projectId)) {
43
- if ((_c = exp.updates) === null || _c === void 0 ? void 0 : _c.useClassicUpdates) {
44
- // NOTE: this method modifies the Expo config; be sure to use this function's return value
45
- // if the config object is used later in the future
46
- await (0, configure_2.ensureUseClassicUpdatesIsRemovedAsync)({ exp, projectDir });
47
- }
48
43
  await (0, configure_2.ensureEASUpdateIsConfiguredInEasJsonAsync)(projectDir);
49
44
  }
50
45
  // configure expo-updates
@@ -52,13 +47,13 @@ class BuildConfigure extends EasCommand_1.default {
52
47
  if ([platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.All].includes(platform)) {
53
48
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID, vcsClient);
54
49
  if (workflow === eas_build_job_1.Workflow.GENERIC) {
55
- await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(graphqlClient, projectDir, exp, projectId);
50
+ await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
56
51
  }
57
52
  }
58
53
  if ([platform_1.RequestedPlatform.Ios, platform_1.RequestedPlatform.All].includes(platform)) {
59
54
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.IOS, vcsClient);
60
55
  if (workflow === eas_build_job_1.Workflow.GENERIC) {
61
- await (0, UpdatesModule_2.syncUpdatesConfigurationAsync)(graphqlClient, vcsClient, projectDir, exp, projectId);
56
+ await (0, UpdatesModule_2.syncUpdatesConfigurationAsync)(vcsClient, projectDir, exp);
62
57
  }
63
58
  }
64
59
  }
@@ -72,7 +67,6 @@ class BuildConfigure extends EasCommand_1.default {
72
67
  })}`);
73
68
  }
74
69
  }
75
- exports.default = BuildConfigure;
76
70
  _a = BuildConfigure;
77
71
  BuildConfigure.description = 'configure the project to support EAS Build';
78
72
  BuildConfigure.flags = {
@@ -87,6 +81,7 @@ BuildConfigure.contextDefinition = {
87
81
  ..._a.ContextOptions.LoggedIn,
88
82
  ..._a.ContextOptions.Vcs,
89
83
  };
84
+ exports.default = BuildConfigure;
90
85
  async function promptForPlatformAsync() {
91
86
  log_1.default.addNewLineIfNone();
92
87
  const { platform } = await (0, prompts_1.promptAsync)({
@@ -0,0 +1,24 @@
1
+ import EasCommand from '../../commandUtils/EasCommand';
2
+ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
3
+ import { RequestedPlatform } from '../../platform';
4
+ export declare function selectBuildToDeleteAsync(graphqlClient: ExpoGraphqlClient, projectId: string, projectDisplayName: string, filters?: {
5
+ platform?: RequestedPlatform;
6
+ profile?: string;
7
+ }): Promise<string | null>;
8
+ export default class BuildDelete extends EasCommand {
9
+ static description: string;
10
+ static args: {
11
+ name: string;
12
+ }[];
13
+ static flags: {
14
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform | undefined>;
15
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
16
+ 'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
17
+ };
18
+ static contextDefinition: {
19
+ vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
20
+ loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
21
+ privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
22
+ };
23
+ runAsync(): Promise<void>;
24
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.selectBuildToDeleteAsync = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const core_1 = require("@oclif/core");
7
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
+ const builds_1 = require("../../commandUtils/builds");
10
+ const flags_1 = require("../../commandUtils/flags");
11
+ const client_1 = require("../../graphql/client");
12
+ const log_1 = tslib_1.__importDefault(require("../../log"));
13
+ const ora_1 = require("../../ora");
14
+ const platform_1 = require("../../platform");
15
+ const projectUtils_1 = require("../../project/projectUtils");
16
+ const prompts_1 = require("../../prompts");
17
+ async function deleteBuildAsync(graphqlClient, buildId) {
18
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
19
+ .mutation((0, graphql_tag_1.default) `
20
+ mutation DeleteBuildMutation($buildId: ID!) {
21
+ build(buildId: $buildId) {
22
+ deleteBuild(buildId: $buildId) {
23
+ id
24
+ }
25
+ }
26
+ }
27
+ `, { buildId })
28
+ .toPromise());
29
+ return data.build.deleteBuild;
30
+ }
31
+ async function selectBuildToDeleteAsync(graphqlClient, projectId, projectDisplayName, filters) {
32
+ const spinner = (0, ora_1.ora)().start('Fetching builds…');
33
+ let builds;
34
+ try {
35
+ builds = await (0, builds_1.fetchBuildsAsync)({ graphqlClient, projectId, filters });
36
+ spinner.stop();
37
+ }
38
+ catch (error) {
39
+ spinner.fail(`Something went wrong and we couldn't fetch the builds for the project ${projectDisplayName}.`);
40
+ throw error;
41
+ }
42
+ if (builds.length === 0) {
43
+ log_1.default.warn(`We couldn't find any builds for the project ${projectDisplayName}.`);
44
+ return null;
45
+ }
46
+ else {
47
+ const buildId = await (0, prompts_1.selectAsync)('Which build do you want to delete?', builds.map(build => ({
48
+ title: (0, builds_1.formatBuild)(build),
49
+ value: build.id,
50
+ })));
51
+ return (await (0, prompts_1.confirmAsync)({
52
+ message: 'Are you sure you want to delete it?',
53
+ }))
54
+ ? buildId
55
+ : null;
56
+ }
57
+ }
58
+ exports.selectBuildToDeleteAsync = selectBuildToDeleteAsync;
59
+ class BuildDelete extends EasCommand_1.default {
60
+ async runAsync() {
61
+ const { args: { BUILD_ID: buildIdFromArg }, flags: { 'non-interactive': nonInteractive, platform, profile }, } = await this.parse(_a);
62
+ if (buildIdFromArg && (platform || profile)) {
63
+ throw new Error('Build ID cannot be used together with platform and profile flags. They are used to filter the list of builds when not providing the build ID');
64
+ }
65
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive });
66
+ const displayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
67
+ if (buildIdFromArg) {
68
+ await (0, builds_1.ensureBuildExistsAsync)(graphqlClient, buildIdFromArg);
69
+ }
70
+ let buildId = buildIdFromArg;
71
+ if (!buildId) {
72
+ if (nonInteractive) {
73
+ throw new Error('Build ID must be provided in non-interactive mode');
74
+ }
75
+ buildId = await selectBuildToDeleteAsync(graphqlClient, projectId, displayName, {
76
+ platform,
77
+ profile,
78
+ });
79
+ if (!buildId) {
80
+ return;
81
+ }
82
+ }
83
+ const spinner = (0, ora_1.ora)().start('Deleting the build...');
84
+ try {
85
+ await deleteBuildAsync(graphqlClient, buildId);
86
+ spinner.succeed('Build deleted');
87
+ }
88
+ catch (error) {
89
+ spinner.fail(`Something went wrong and we couldn't delete your build ${buildId}`);
90
+ throw error;
91
+ }
92
+ }
93
+ }
94
+ _a = BuildDelete;
95
+ BuildDelete.description = 'delete a build';
96
+ BuildDelete.args = [{ name: 'BUILD_ID' }];
97
+ BuildDelete.flags = {
98
+ ...flags_1.EASNonInteractiveFlag,
99
+ platform: core_1.Flags.enum({
100
+ char: 'p',
101
+ description: 'Filter builds by the platform if build ID is not provided',
102
+ options: Object.values(platform_1.RequestedPlatform),
103
+ }),
104
+ profile: core_1.Flags.string({
105
+ char: 'e',
106
+ description: 'Filter builds by build profile if build ID is not provided',
107
+ helpValue: 'PROFILE_NAME',
108
+ }),
109
+ };
110
+ BuildDelete.contextDefinition = {
111
+ ..._a.ContextOptions.ProjectConfig,
112
+ ..._a.ContextOptions.LoggedIn,
113
+ ..._a.ContextOptions.Vcs,
114
+ };
115
+ exports.default = BuildDelete;
@@ -23,12 +23,12 @@ const json_1 = require("../../utils/json");
23
23
  const statuspageService_1 = require("../../utils/statuspageService");
24
24
  class Build extends EasCommand_1.default {
25
25
  async runAsync() {
26
- const { flags: rawFlags } = await this.parse(Build);
26
+ const { flags: rawFlags } = await this.parse(_a);
27
27
  if (rawFlags.json) {
28
28
  (0, json_1.enableJsonOutput)();
29
29
  }
30
30
  const flags = this.sanitizeFlags(rawFlags);
31
- const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(Build, {
31
+ const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
32
32
  nonInteractive: flags.nonInteractive,
33
33
  });
34
34
  await handleDeprecatedEasJsonAsync(projectDir, flags.nonInteractive);
@@ -117,7 +117,6 @@ class Build extends EasCommand_1.default {
117
117
  };
118
118
  }
119
119
  }
120
- exports.default = Build;
121
120
  _a = Build;
122
121
  Build.description = 'start a build';
123
122
  Build.flags = {
@@ -185,6 +184,7 @@ Build.contextDefinition = {
185
184
  ..._a.ContextOptions.Analytics,
186
185
  ..._a.ContextOptions.Vcs,
187
186
  };
187
+ exports.default = Build;
188
188
  async function handleDeprecatedEasJsonAsync(projectDir, nonInteractive) {
189
189
  if (!(await fs_extra_1.default.pathExists(eas_json_1.EasJsonAccessor.formatEasJsonPath(projectDir)))) {
190
190
  return;
@@ -26,8 +26,8 @@ const STAGE_DESCRIPTION = `Stage of the build you want to inspect.
26
26
  post-build - builds the native project and leaves the output directory for inspection`;
27
27
  class BuildInspect extends EasCommand_1.default {
28
28
  async runAsync() {
29
- const { flags } = await this.parse(BuildInspect);
30
- const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildInspect, {
29
+ const { flags } = await this.parse(_a);
30
+ const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
31
31
  nonInteractive: false,
32
32
  });
33
33
  const outputDirectory = path_1.default.resolve(process.cwd(), flags.output);
@@ -101,7 +101,6 @@ class BuildInspect extends EasCommand_1.default {
101
101
  }
102
102
  }
103
103
  }
104
- exports.default = BuildInspect;
105
104
  _a = BuildInspect;
106
105
  BuildInspect.description = 'inspect the state of the project at specific build stages, useful for troubleshooting';
107
106
  BuildInspect.flags = {
@@ -143,3 +142,4 @@ BuildInspect.contextDefinition = {
143
142
  ..._a.ContextOptions.Analytics,
144
143
  ..._a.ContextOptions.Vcs,
145
144
  };
145
+ exports.default = BuildInspect;
@@ -18,10 +18,10 @@ const gitNoCommit_1 = tslib_1.__importDefault(require("../../vcs/clients/gitNoCo
18
18
  */
19
19
  class BuildInternal extends EasCommand_1.default {
20
20
  async runAsync() {
21
- const { flags } = await this.parse(BuildInternal);
21
+ const { flags } = await this.parse(_a);
22
22
  // This command is always run with implicit --non-interactive and --json options
23
23
  (0, json_1.enableJsonOutput)();
24
- const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildInternal, {
24
+ const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
25
25
  nonInteractive: true,
26
26
  });
27
27
  (0, vcs_1.setVcsClient)(new gitNoCommit_1.default());
@@ -40,7 +40,6 @@ class BuildInternal extends EasCommand_1.default {
40
40
  }, actor, getDynamicPrivateProjectConfigAsync);
41
41
  }
42
42
  }
43
- exports.default = BuildInternal;
44
43
  _a = BuildInternal;
45
44
  BuildInternal.hidden = true;
46
45
  BuildInternal.flags = {
@@ -62,3 +61,4 @@ BuildInternal.contextDefinition = {
62
61
  ..._a.ContextOptions.Analytics,
63
62
  ..._a.ContextOptions.Vcs,
64
63
  };
64
+ exports.default = BuildInternal;
@@ -15,10 +15,10 @@ const buildDistribution_1 = require("../../utils/buildDistribution");
15
15
  const json_1 = require("../../utils/json");
16
16
  class BuildList extends EasCommand_1.default {
17
17
  async runAsync() {
18
- const { flags } = await this.parse(BuildList);
18
+ const { flags } = await this.parse(_a);
19
19
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
20
20
  const { json: jsonFlag, platform: requestedPlatform, status: buildStatus, distribution: buildDistribution, 'non-interactive': nonInteractive, } = flags;
21
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildList, {
21
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
22
22
  nonInteractive,
23
23
  });
24
24
  if (jsonFlag) {
@@ -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 builds for your project';
54
53
  BuildList.flags = {
@@ -90,6 +89,7 @@ BuildList.contextDefinition = {
90
89
  ..._a.ContextOptions.LoggedIn,
91
90
  ..._a.ContextOptions.Vcs,
92
91
  };
92
+ exports.default = BuildList;
93
93
  const toAppPlatform = (requestedPlatform) => {
94
94
  if (!requestedPlatform || requestedPlatform === platform_1.RequestedPlatform.All) {
95
95
  return undefined;
@@ -31,13 +31,13 @@ const statuspageService_1 = require("../../utils/statuspageService");
31
31
  class BuildResign extends EasCommand_1.default {
32
32
  async runAsync() {
33
33
  var _b, _c, _d, _e, _f;
34
- const { flags: rawFlags } = await this.parse(BuildResign);
34
+ const { flags: rawFlags } = await this.parse(_a);
35
35
  if (rawFlags.json) {
36
36
  (0, json_1.enableJsonOutput)();
37
37
  }
38
38
  const flags = this.sanitizeFlags(rawFlags);
39
39
  const { limit, offset, nonInteractive } = flags;
40
- const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildResign, {
40
+ const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(_a, {
41
41
  nonInteractive: flags.nonInteractive,
42
42
  });
43
43
  const maybeBuild = flags.maybeBuildId
@@ -178,7 +178,6 @@ class BuildResign extends EasCommand_1.default {
178
178
  return undefined;
179
179
  }
180
180
  }
181
- exports.default = BuildResign;
182
181
  _a = BuildResign;
183
182
  BuildResign.description = 're-sign a build archive';
184
183
  BuildResign.flags = {
@@ -209,3 +208,4 @@ BuildResign.contextDefinition = {
209
208
  ..._a.ContextOptions.Analytics,
210
209
  ..._a.ContextOptions.Vcs,
211
210
  };
211
+ exports.default = BuildResign;
@@ -21,10 +21,10 @@ const download_1 = require("../../utils/download");
21
21
  const paths_1 = require("../../utils/paths");
22
22
  class Run extends EasCommand_1.default {
23
23
  async runAsync() {
24
- const { flags: rawFlags } = await this.parse(Run);
24
+ const { flags: rawFlags } = await this.parse(_a);
25
25
  const flags = await this.sanitizeFlagsAsync(rawFlags);
26
26
  const queryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
27
- const { loggedIn: { graphqlClient }, privateProjectConfig: { projectId }, } = await this.getContextAsync(Run, {
27
+ const { loggedIn: { graphqlClient }, privateProjectConfig: { projectId }, } = await this.getContextAsync(_a, {
28
28
  nonInteractive: false,
29
29
  });
30
30
  const simulatorBuildPath = await getPathToSimulatorBuildAppAsync(graphqlClient, projectId, flags, queryOptions);
@@ -59,7 +59,6 @@ class Run extends EasCommand_1.default {
59
59
  };
60
60
  }
61
61
  }
62
- exports.default = Run;
63
62
  _a = Run;
64
63
  Run.description = 'run simulator/emulator builds from eas-cli';
65
64
  Run.flags = {
@@ -96,6 +95,7 @@ Run.contextDefinition = {
96
95
  ..._a.ContextOptions.ProjectDir,
97
96
  ..._a.ContextOptions.Vcs,
98
97
  };
98
+ exports.default = Run;
99
99
  async function resolvePlatformAsync(platform) {
100
100
  if (process.platform !== 'darwin') {
101
101
  return generated_1.AppPlatform.Android;
@@ -18,11 +18,11 @@ const profiles_1 = require("../../../utils/profiles");
18
18
  class BuildVersionGetView extends EasCommand_1.default {
19
19
  async runAsync() {
20
20
  var _b;
21
- const { flags } = await this.parse(BuildVersionGetView);
21
+ const { flags } = await this.parse(_a);
22
22
  if (flags.json) {
23
23
  (0, json_1.enableJsonOutput)();
24
24
  }
25
- const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(BuildVersionGetView, {
25
+ const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
26
26
  nonInteractive: true,
27
27
  });
28
28
  if (!flags.platform && flags['non-interactive']) {
@@ -85,7 +85,6 @@ class BuildVersionGetView extends EasCommand_1.default {
85
85
  }
86
86
  }
87
87
  }
88
- exports.default = BuildVersionGetView;
89
88
  _a = BuildVersionGetView;
90
89
  BuildVersionGetView.description = 'get the latest version from EAS servers';
91
90
  BuildVersionGetView.flags = {
@@ -106,3 +105,4 @@ BuildVersionGetView.contextDefinition = {
106
105
  ..._a.ContextOptions.ProjectDir,
107
106
  ..._a.ContextOptions.Vcs,
108
107
  };
108
+ exports.default = BuildVersionGetView;
@@ -22,8 +22,8 @@ const prompts_1 = require("../../../prompts");
22
22
  class BuildVersionSetView extends EasCommand_1.default {
23
23
  async runAsync() {
24
24
  var _b, _c, _d;
25
- const { flags } = await this.parse(BuildVersionSetView);
26
- const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(BuildVersionSetView, {
25
+ const { flags } = await this.parse(_a);
26
+ const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
27
27
  nonInteractive: false,
28
28
  });
29
29
  const platform = await (0, platform_1.selectPlatformAsync)(flags.platform);
@@ -64,11 +64,10 @@ class BuildVersionSetView extends EasCommand_1.default {
64
64
  applicationIdentifier,
65
65
  storeVersion: (_c = exp.version) !== null && _c !== void 0 ? _c : '1.0.0',
66
66
  buildVersion: String(version),
67
- runtimeVersion: (_d = (0, Updates_1.getRuntimeVersionNullable)(exp, platform)) !== null && _d !== void 0 ? _d : undefined,
67
+ runtimeVersion: (_d = (await (0, Updates_1.getRuntimeVersionNullableAsync)(projectDir, exp, platform))) !== null && _d !== void 0 ? _d : undefined,
68
68
  });
69
69
  }
70
70
  }
71
- exports.default = BuildVersionSetView;
72
71
  _a = BuildVersionSetView;
73
72
  BuildVersionSetView.description = 'update version of an app';
74
73
  BuildVersionSetView.flags = {
@@ -88,6 +87,7 @@ BuildVersionSetView.contextDefinition = {
88
87
  ..._a.ContextOptions.ProjectDir,
89
88
  ..._a.ContextOptions.Vcs,
90
89
  };
90
+ exports.default = BuildVersionSetView;
91
91
  function getApplicationIdentifierName(platform) {
92
92
  if (platform === eas_build_job_1.Platform.ANDROID) {
93
93
  return 'application ID';
@@ -25,8 +25,8 @@ const profiles_1 = require("../../../utils/profiles");
25
25
  class BuildVersionSyncView extends EasCommand_1.default {
26
26
  async runAsync() {
27
27
  var _b;
28
- const { flags } = await this.parse(BuildVersionSyncView);
29
- const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(BuildVersionSyncView, {
28
+ const { flags } = await this.parse(_a);
29
+ const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(_a, {
30
30
  nonInteractive: true,
31
31
  });
32
32
  const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.platform);
@@ -123,7 +123,6 @@ class BuildVersionSyncView extends EasCommand_1.default {
123
123
  }
124
124
  }
125
125
  }
126
- exports.default = BuildVersionSyncView;
127
126
  _a = BuildVersionSyncView;
128
127
  BuildVersionSyncView.description = 'update a version in native code with a value stored on EAS servers';
129
128
  BuildVersionSyncView.flags = {
@@ -143,3 +142,4 @@ BuildVersionSyncView.contextDefinition = {
143
142
  ..._a.ContextOptions.ProjectDir,
144
143
  ..._a.ContextOptions.Vcs,
145
144
  };
145
+ exports.default = BuildVersionSyncView;
@@ -12,8 +12,8 @@ const projectUtils_1 = require("../../project/projectUtils");
12
12
  const json_1 = require("../../utils/json");
13
13
  class BuildView extends EasCommand_1.default {
14
14
  async runAsync() {
15
- const { args: { BUILD_ID: buildId }, flags, } = await this.parse(BuildView);
16
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildView, {
15
+ const { args: { BUILD_ID: buildId }, flags, } = await this.parse(_a);
16
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
17
17
  nonInteractive: true,
18
18
  });
19
19
  if (flags.json) {
@@ -62,7 +62,6 @@ class BuildView extends EasCommand_1.default {
62
62
  }
63
63
  }
64
64
  }
65
- exports.default = BuildView;
66
65
  _a = BuildView;
67
66
  BuildView.description = 'view a build for your project';
68
67
  BuildView.args = [{ name: 'BUILD_ID' }];
@@ -74,3 +73,4 @@ BuildView.contextDefinition = {
74
73
  ..._a.ContextOptions.LoggedIn,
75
74
  ..._a.ContextOptions.Vcs,
76
75
  };
76
+ exports.default = BuildView;
@@ -11,8 +11,8 @@ const prompts_1 = require("../../prompts");
11
11
  const json_1 = require("../../utils/json");
12
12
  class ChannelCreate extends EasCommand_1.default {
13
13
  async runAsync() {
14
- let { args: { name: channelName }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(ChannelCreate);
15
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelCreate, {
14
+ let { args: { name: channelName }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
15
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
16
16
  nonInteractive,
17
17
  });
18
18
  if (jsonFlag) {
@@ -39,7 +39,6 @@ class ChannelCreate extends EasCommand_1.default {
39
39
  log_1.default.log(chalk_1.default.bold('You can now update your app by publishing!'));
40
40
  }
41
41
  }
42
- exports.default = ChannelCreate;
43
42
  _a = ChannelCreate;
44
43
  ChannelCreate.description = 'create a channel';
45
44
  ChannelCreate.args = [
@@ -56,3 +55,4 @@ ChannelCreate.contextDefinition = {
56
55
  ..._a.ContextOptions.ProjectConfig,
57
56
  ..._a.ContextOptions.LoggedIn,
58
57
  };
58
+ exports.default = ChannelCreate;