eas-cli 18.1.0 → 18.3.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 (181) hide show
  1. package/README.md +521 -506
  2. package/bin/dev +6 -13
  3. package/bin/run +4 -4
  4. package/build/commandUtils/flags.d.ts +14 -7
  5. package/build/commandUtils/flags.js +13 -8
  6. package/build/commandUtils/pagination.d.ts +4 -4
  7. package/build/commandUtils/pagination.js +4 -2
  8. package/build/commands/account/usage.d.ts +2 -3
  9. package/build/commands/account/usage.js +5 -5
  10. package/build/commands/account/view.js +6 -2
  11. package/build/commands/analytics.d.ts +2 -3
  12. package/build/commands/analytics.js +6 -1
  13. package/build/commands/branch/create.d.ts +2 -4
  14. package/build/commands/branch/create.js +10 -6
  15. package/build/commands/branch/delete.d.ts +2 -4
  16. package/build/commands/branch/delete.js +6 -6
  17. package/build/commands/branch/list.d.ts +1 -1
  18. package/build/commands/branch/list.js +2 -1
  19. package/build/commands/branch/rename.d.ts +2 -2
  20. package/build/commands/branch/rename.js +2 -1
  21. package/build/commands/branch/view.d.ts +3 -5
  22. package/build/commands/branch/view.js +6 -6
  23. package/build/commands/build/cancel.d.ts +4 -4
  24. package/build/commands/build/cancel.js +6 -4
  25. package/build/commands/build/configure.d.ts +1 -1
  26. package/build/commands/build/configure.js +2 -2
  27. package/build/commands/build/delete.d.ts +4 -4
  28. package/build/commands/build/delete.js +6 -4
  29. package/build/commands/build/dev.d.ts +2 -2
  30. package/build/commands/build/dev.js +2 -2
  31. package/build/commands/build/download.d.ts +2 -2
  32. package/build/commands/build/download.js +4 -3
  33. package/build/commands/build/index.d.ts +8 -8
  34. package/build/commands/build/index.js +8 -11
  35. package/build/commands/build/inspect.d.ts +4 -4
  36. package/build/commands/build/inspect.js +4 -4
  37. package/build/commands/build/internal.d.ts +3 -3
  38. package/build/commands/build/internal.js +2 -2
  39. package/build/commands/build/list.d.ts +13 -13
  40. package/build/commands/build/list.js +8 -7
  41. package/build/commands/build/resign.d.ts +5 -5
  42. package/build/commands/build/resign.js +4 -4
  43. package/build/commands/build/run.d.ts +6 -6
  44. package/build/commands/build/run.js +2 -2
  45. package/build/commands/build/version/get.d.ts +2 -2
  46. package/build/commands/build/version/get.js +8 -7
  47. package/build/commands/build/version/set.d.ts +2 -2
  48. package/build/commands/build/version/set.js +2 -2
  49. package/build/commands/build/version/sync.d.ts +2 -2
  50. package/build/commands/build/version/sync.js +2 -2
  51. package/build/commands/build/view.d.ts +2 -2
  52. package/build/commands/build/view.js +4 -1
  53. package/build/commands/channel/create.d.ts +2 -4
  54. package/build/commands/channel/create.js +10 -6
  55. package/build/commands/channel/delete.d.ts +2 -4
  56. package/build/commands/channel/delete.js +7 -6
  57. package/build/commands/channel/edit.d.ts +3 -5
  58. package/build/commands/channel/edit.js +6 -6
  59. package/build/commands/channel/list.d.ts +1 -1
  60. package/build/commands/channel/list.js +1 -1
  61. package/build/commands/channel/pause.d.ts +3 -5
  62. package/build/commands/channel/pause.js +6 -6
  63. package/build/commands/channel/resume.d.ts +3 -5
  64. package/build/commands/channel/resume.js +6 -6
  65. package/build/commands/channel/rollout.d.ts +8 -9
  66. package/build/commands/channel/rollout.js +9 -11
  67. package/build/commands/channel/view.d.ts +3 -5
  68. package/build/commands/channel/view.js +6 -6
  69. package/build/commands/config.d.ts +2 -2
  70. package/build/commands/config.js +6 -5
  71. package/build/commands/credentials/configure-build.d.ts +2 -2
  72. package/build/commands/credentials/configure-build.js +2 -2
  73. package/build/commands/credentials/index.d.ts +1 -1
  74. package/build/commands/credentials/index.js +1 -1
  75. package/build/commands/deploy/alias/delete.d.ts +2 -2
  76. package/build/commands/deploy/alias/delete.js +7 -3
  77. package/build/commands/deploy/alias/index.d.ts +2 -2
  78. package/build/commands/deploy/alias/index.js +3 -2
  79. package/build/commands/deploy/delete.d.ts +2 -2
  80. package/build/commands/deploy/delete.js +7 -3
  81. package/build/commands/deploy/index.d.ts +5 -4
  82. package/build/commands/deploy/index.js +12 -3
  83. package/build/commands/device/delete.d.ts +2 -2
  84. package/build/commands/device/list.d.ts +2 -2
  85. package/build/commands/device/rename.d.ts +3 -3
  86. package/build/commands/device/view.d.ts +2 -2
  87. package/build/commands/device/view.js +4 -1
  88. package/build/commands/env/create.d.ts +8 -11
  89. package/build/commands/env/create.js +6 -7
  90. package/build/commands/env/delete.d.ts +5 -8
  91. package/build/commands/env/delete.js +4 -5
  92. package/build/commands/env/exec.d.ts +3 -4
  93. package/build/commands/env/exec.js +7 -8
  94. package/build/commands/env/get.d.ts +6 -9
  95. package/build/commands/env/get.js +4 -5
  96. package/build/commands/env/list.d.ts +5 -8
  97. package/build/commands/env/list.js +4 -5
  98. package/build/commands/env/pull.d.ts +4 -6
  99. package/build/commands/env/pull.js +4 -5
  100. package/build/commands/env/push.d.ts +7 -7
  101. package/build/commands/env/push.js +4 -5
  102. package/build/commands/env/update.d.ts +10 -13
  103. package/build/commands/env/update.js +6 -7
  104. package/build/commands/fingerprint/compare.d.ts +6 -7
  105. package/build/commands/fingerprint/compare.js +10 -11
  106. package/build/commands/fingerprint/generate.d.ts +3 -3
  107. package/build/commands/fingerprint/generate.js +4 -3
  108. package/build/commands/go.d.ts +2 -2
  109. package/build/commands/metadata/lint.d.ts +1 -1
  110. package/build/commands/metadata/pull.d.ts +1 -1
  111. package/build/commands/metadata/push.d.ts +1 -1
  112. package/build/commands/project/init.d.ts +1 -1
  113. package/build/commands/project/new.d.ts +3 -5
  114. package/build/commands/project/new.js +6 -7
  115. package/build/commands/project/onboarding.d.ts +2 -2
  116. package/build/commands/project/onboarding.js +4 -1
  117. package/build/commands/secret/create.d.ts +4 -4
  118. package/build/commands/secret/create.js +7 -6
  119. package/build/commands/secret/delete.d.ts +1 -1
  120. package/build/commands/secret/push.d.ts +2 -2
  121. package/build/commands/secret/push.js +2 -2
  122. package/build/commands/submit/internal.d.ts +3 -3
  123. package/build/commands/submit/internal.js +2 -2
  124. package/build/commands/submit.d.ts +7 -7
  125. package/build/commands/submit.js +2 -2
  126. package/build/commands/update/configure.d.ts +2 -2
  127. package/build/commands/update/configure.js +2 -2
  128. package/build/commands/update/delete.d.ts +2 -4
  129. package/build/commands/update/delete.js +7 -6
  130. package/build/commands/update/edit.d.ts +4 -5
  131. package/build/commands/update/edit.js +7 -6
  132. package/build/commands/update/index.d.ts +9 -9
  133. package/build/commands/update/index.js +29 -13
  134. package/build/commands/update/list.d.ts +4 -4
  135. package/build/commands/update/list.js +4 -3
  136. package/build/commands/update/republish.d.ts +9 -9
  137. package/build/commands/update/republish.js +4 -4
  138. package/build/commands/update/revert-update-rollout.d.ts +5 -5
  139. package/build/commands/update/revert-update-rollout.js +2 -2
  140. package/build/commands/update/roll-back-to-embedded.d.ts +6 -6
  141. package/build/commands/update/roll-back-to-embedded.js +4 -4
  142. package/build/commands/update/rollback.d.ts +1 -1
  143. package/build/commands/update/view.d.ts +2 -4
  144. package/build/commands/update/view.js +5 -5
  145. package/build/commands/upload.d.ts +3 -3
  146. package/build/commands/upload.js +4 -3
  147. package/build/commands/webhook/create.d.ts +3 -3
  148. package/build/commands/webhook/create.js +2 -2
  149. package/build/commands/webhook/delete.d.ts +2 -4
  150. package/build/commands/webhook/delete.js +8 -6
  151. package/build/commands/webhook/list.d.ts +1 -1
  152. package/build/commands/webhook/list.js +2 -2
  153. package/build/commands/webhook/update.d.ts +4 -4
  154. package/build/commands/webhook/update.js +2 -2
  155. package/build/commands/webhook/view.d.ts +2 -4
  156. package/build/commands/webhook/view.js +5 -5
  157. package/build/commands/workflow/create.d.ts +2 -4
  158. package/build/commands/workflow/create.js +4 -5
  159. package/build/commands/workflow/logs.d.ts +2 -3
  160. package/build/commands/workflow/logs.js +5 -3
  161. package/build/commands/workflow/run.d.ts +4 -5
  162. package/build/commands/workflow/run.js +6 -1
  163. package/build/commands/workflow/runs.d.ts +2 -2
  164. package/build/commands/workflow/runs.js +2 -2
  165. package/build/commands/workflow/status.d.ts +2 -3
  166. package/build/commands/workflow/status.js +7 -5
  167. package/build/commands/workflow/validate.d.ts +2 -4
  168. package/build/commands/workflow/validate.js +5 -5
  169. package/build/commands/workflow/view.d.ts +2 -3
  170. package/build/commands/workflow/view.js +6 -1
  171. package/build/credentials/android/actions/BuildCredentialsUtils.js +0 -1
  172. package/build/credentials/android/actions/CreateKeystore.js +9 -10
  173. package/build/credentials/android/actions/SetUpBuildCredentials.js +0 -4
  174. package/build/graphql/generated.d.ts +1 -0
  175. package/build/graphql/queries/UserQuery.js +3 -0
  176. package/build/update/utils.d.ts +2 -2
  177. package/build/update/utils.js +21 -10
  178. package/build/worker/assets.d.ts +3 -1
  179. package/build/worker/assets.js +4 -1
  180. package/oclif.manifest.json +8084 -3178
  181. package/package.json +7 -7
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
4
5
  const delete_1 = require("../../channel/delete");
5
6
  const queries_1 = require("../../channel/queries");
6
7
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
@@ -12,13 +13,12 @@ const json_1 = require("../../utils/json");
12
13
  const pollForBackgroundJobReceiptAsync_1 = require("../../utils/pollForBackgroundJobReceiptAsync");
13
14
  class ChannelDelete extends EasCommand_1.default {
14
15
  static description = 'Delete a channel';
15
- static args = [
16
- {
17
- name: 'name',
16
+ static args = {
17
+ name: core_1.Args.string({
18
18
  required: false,
19
19
  description: 'Name of the channel to delete',
20
- },
21
- ];
20
+ }),
21
+ };
22
22
  static flags = {
23
23
  ...flags_1.EasNonInteractiveAndJsonFlags,
24
24
  };
@@ -27,7 +27,8 @@ class ChannelDelete extends EasCommand_1.default {
27
27
  ...this.ContextOptions.LoggedIn,
28
28
  };
29
29
  async runAsync() {
30
- const { args: { name: nameArg }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(ChannelDelete);
30
+ const { args: { name: nameArg }, flags, } = await this.parse(ChannelDelete);
31
+ const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
31
32
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelDelete, {
32
33
  nonInteractive,
33
34
  });
@@ -5,14 +5,12 @@ export declare function updateChannelBranchMappingAsync(graphqlClient: ExpoGraph
5
5
  export default class ChannelEdit extends EasCommand {
6
6
  static description: string;
7
7
  static args: {
8
- name: string;
9
- required: boolean;
10
- description: string;
11
- }[];
8
+ name: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
9
+ };
12
10
  static flags: {
13
11
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
12
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
- branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
13
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
16
14
  };
17
15
  static contextDefinition: {
18
16
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -40,13 +40,12 @@ async function updateChannelBranchMappingAsync(graphqlClient, { channelId, branc
40
40
  }
41
41
  class ChannelEdit extends EasCommand_1.default {
42
42
  static description = 'point a channel at a new branch';
43
- static args = [
44
- {
45
- name: 'name',
43
+ static args = {
44
+ name: core_1.Args.string({
46
45
  required: false,
47
46
  description: 'Name of the channel to edit',
48
- },
49
- ];
47
+ }),
48
+ };
50
49
  static flags = {
51
50
  branch: core_1.Flags.string({
52
51
  description: 'Name of the branch to point to',
@@ -58,7 +57,8 @@ class ChannelEdit extends EasCommand_1.default {
58
57
  ...this.ContextOptions.LoggedIn,
59
58
  };
60
59
  async runAsync() {
61
- const { args, flags: { branch: branchFlag, json, 'non-interactive': nonInteractive }, } = await this.parse(ChannelEdit);
60
+ const { args, flags: { branch: branchFlag, ...rawFlags }, } = await this.parse(ChannelEdit);
61
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(rawFlags);
62
62
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelEdit, {
63
63
  nonInteractive,
64
64
  });
@@ -5,7 +5,7 @@ export default class ChannelList extends EasCommand {
5
5
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
6
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
7
  limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
8
- offset: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
8
+ offset: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  };
10
10
  static contextDefinition: {
11
11
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -20,7 +20,7 @@ class ChannelList extends EasCommand_1.default {
20
20
  async runAsync() {
21
21
  const { flags } = await this.parse(ChannelList);
22
22
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
23
- const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
23
+ const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
24
24
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelList, {
25
25
  nonInteractive,
26
26
  });
@@ -5,14 +5,12 @@ export declare function pauseUpdateChannelAsync(graphqlClient: ExpoGraphqlClient
5
5
  export default class ChannelPause extends EasCommand {
6
6
  static description: string;
7
7
  static args: {
8
- name: string;
9
- required: boolean;
10
- description: string;
11
- }[];
8
+ name: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
9
+ };
12
10
  static flags: {
13
11
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
12
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
- branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
13
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
16
14
  };
17
15
  static contextDefinition: {
18
16
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -36,13 +36,12 @@ async function pauseUpdateChannelAsync(graphqlClient, { channelId }) {
36
36
  }
37
37
  class ChannelPause extends EasCommand_1.default {
38
38
  static description = 'pause a channel to stop it from sending updates';
39
- static args = [
40
- {
41
- name: 'name',
39
+ static args = {
40
+ name: core_1.Args.string({
42
41
  required: false,
43
42
  description: 'Name of the channel to edit',
44
- },
45
- ];
43
+ }),
44
+ };
46
45
  static flags = {
47
46
  branch: core_1.Flags.string({
48
47
  description: 'Name of the branch to point to',
@@ -54,7 +53,8 @@ class ChannelPause extends EasCommand_1.default {
54
53
  ...this.ContextOptions.LoggedIn,
55
54
  };
56
55
  async runAsync() {
57
- const { args, flags: { json, 'non-interactive': nonInteractive }, } = await this.parse(ChannelPause);
56
+ const { args, flags } = await this.parse(ChannelPause);
57
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
58
58
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelPause, {
59
59
  nonInteractive,
60
60
  });
@@ -5,14 +5,12 @@ export declare function resumeUpdateChannelAsync(graphqlClient: ExpoGraphqlClien
5
5
  export default class ChannelResume extends EasCommand {
6
6
  static description: string;
7
7
  static args: {
8
- name: string;
9
- required: boolean;
10
- description: string;
11
- }[];
8
+ name: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
9
+ };
12
10
  static flags: {
13
11
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
12
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
- branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
13
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
16
14
  };
17
15
  static contextDefinition: {
18
16
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -36,13 +36,12 @@ async function resumeUpdateChannelAsync(graphqlClient, { channelId }) {
36
36
  }
37
37
  class ChannelResume extends EasCommand_1.default {
38
38
  static description = 'resume a channel to start sending updates';
39
- static args = [
40
- {
41
- name: 'name',
39
+ static args = {
40
+ name: core_1.Args.string({
42
41
  required: false,
43
42
  description: 'Name of the channel to edit',
44
- },
45
- ];
43
+ }),
44
+ };
46
45
  static flags = {
47
46
  branch: core_1.Flags.string({
48
47
  description: 'Name of the branch to point to',
@@ -54,7 +53,8 @@ class ChannelResume extends EasCommand_1.default {
54
53
  ...this.ContextOptions.LoggedIn,
55
54
  };
56
55
  async runAsync() {
57
- const { args, flags: { json, 'non-interactive': nonInteractive }, } = await this.parse(ChannelResume);
56
+ const { args, flags } = await this.parse(ChannelResume);
57
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
58
58
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelResume, {
59
59
  nonInteractive,
60
60
  });
@@ -9,18 +9,17 @@ declare enum ActionRawFlagValue {
9
9
  export default class ChannelRollout extends EasCommand {
10
10
  static description: string;
11
11
  static args: {
12
- name: string;
13
- description: string;
14
- }[];
12
+ channel: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
13
+ };
15
14
  static flags: {
16
15
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
17
16
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
18
- action: import("@oclif/core/lib/interfaces").OptionFlag<ActionRawFlagValue | undefined>;
19
- percent: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
20
- outcome: import("@oclif/core/lib/interfaces").OptionFlag<EndOutcome | undefined>;
21
- branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
22
- 'runtime-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
23
- 'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
17
+ action: import("@oclif/core/lib/interfaces").OptionFlag<ActionRawFlagValue | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
18
+ percent: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
19
+ outcome: import("@oclif/core/lib/interfaces").OptionFlag<EndOutcome | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
20
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
21
+ 'runtime-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
22
+ 'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
24
23
  };
25
24
  static contextDefinition: {
26
25
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -18,14 +18,13 @@ var ActionRawFlagValue;
18
18
  })(ActionRawFlagValue || (ActionRawFlagValue = {}));
19
19
  class ChannelRollout extends EasCommand_1.default {
20
20
  static description = 'Roll a new branch out on a channel incrementally.';
21
- static args = [
22
- {
23
- name: 'channel',
21
+ static args = {
22
+ channel: core_1.Args.string({
24
23
  description: 'channel on which the rollout should be done',
25
- },
26
- ];
24
+ }),
25
+ };
27
26
  static flags = {
28
- action: core_1.Flags.enum({
27
+ action: core_1.Flags.option({
29
28
  description: 'Rollout action to perform',
30
29
  options: Object.values(ActionRawFlagValue),
31
30
  required: false,
@@ -60,16 +59,16 @@ class ChannelRollout extends EasCommand_1.default {
60
59
  ],
61
60
  },
62
61
  ],
63
- }),
62
+ })(),
64
63
  percent: core_1.Flags.integer({
65
64
  description: 'Percent of users to send to the new branch. Use with --action=edit or --action=create',
66
65
  required: false,
67
66
  }),
68
- outcome: core_1.Flags.enum({
67
+ outcome: core_1.Flags.option({
69
68
  description: 'End outcome of rollout. Use with --action=end',
70
69
  options: Object.values(EndRollout_1.EndOutcome),
71
70
  required: false,
72
- }),
71
+ })(),
73
72
  branch: core_1.Flags.string({
74
73
  description: 'Branch to roll out. Use with --action=create',
75
74
  required: false,
@@ -135,8 +134,7 @@ class ChannelRollout extends EasCommand_1.default {
135
134
  runtimeVersion: rawFlags['runtime-version'],
136
135
  privateKeyPath: rawFlags['private-key-path'] ?? null,
137
136
  action: action ? this.getAction(action) : undefined,
138
- nonInteractive: rawFlags['non-interactive'],
139
- json: rawFlags.json,
137
+ ...(0, flags_1.resolveNonInteractiveAndJsonFlags)(rawFlags),
140
138
  };
141
139
  }
142
140
  }
@@ -2,12 +2,10 @@ import EasCommand from '../../commandUtils/EasCommand';
2
2
  export default class ChannelView extends EasCommand {
3
3
  static description: string;
4
4
  static args: {
5
- name: string;
6
- required: boolean;
7
- description: string;
8
- }[];
5
+ name: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
6
+ };
9
7
  static flags: {
10
- offset: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
8
+ offset: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
9
  limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
12
10
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
13
11
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
4
5
  const assert_1 = tslib_1.__importDefault(require("assert"));
5
6
  const queries_1 = require("../../channel/queries");
6
7
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
@@ -9,13 +10,12 @@ const pagination_1 = require("../../commandUtils/pagination");
9
10
  const json_1 = require("../../utils/json");
10
11
  class ChannelView extends EasCommand_1.default {
11
12
  static description = 'view a channel';
12
- static args = [
13
- {
14
- name: 'name',
13
+ static args = {
14
+ name: core_1.Args.string({
15
15
  required: false,
16
16
  description: 'Name of the channel to view',
17
- },
18
- ];
17
+ }),
18
+ };
19
19
  static flags = {
20
20
  ...flags_1.EasNonInteractiveAndJsonFlags,
21
21
  ...pagination_1.EasPaginatedQueryFlags,
@@ -27,7 +27,7 @@ class ChannelView extends EasCommand_1.default {
27
27
  async runAsync() {
28
28
  let { args: { name: channelName }, flags, } = await this.parse(ChannelView);
29
29
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
30
- const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
30
+ const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
31
31
  const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ChannelView, {
32
32
  nonInteractive,
33
33
  });
@@ -5,8 +5,8 @@ export default class Config extends EasCommand {
5
5
  static flags: {
6
6
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
7
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
- platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform | undefined>;
9
- profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
10
  'eas-json-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static contextDefinition: {
@@ -17,7 +17,7 @@ const json_1 = require("../utils/json");
17
17
  class Config extends EasCommand_1.default {
18
18
  static description = 'display project configuration (app.json + eas.json)';
19
19
  static flags = {
20
- platform: core_1.Flags.enum({ char: 'p', options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS] }),
20
+ platform: core_1.Flags.option({ char: 'p', options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS] })(),
21
21
  profile: core_1.Flags.string({
22
22
  char: 'e',
23
23
  description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
@@ -36,10 +36,11 @@ class Config extends EasCommand_1.default {
36
36
  };
37
37
  async runAsync() {
38
38
  const { flags } = await this.parse(Config);
39
- if (flags.json) {
39
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
40
+ if (json) {
40
41
  (0, json_1.enableJsonOutput)();
41
42
  }
42
- const { platform: maybePlatform, profile: maybeProfile, 'non-interactive': nonInteractive, } = flags;
43
+ const { platform: maybePlatform, profile: maybeProfile } = flags;
43
44
  const { getDynamicPublicProjectConfigAsync, projectDir, getDynamicLoggedInAsync } = await this.getContextAsync(Config, {
44
45
  nonInteractive,
45
46
  withServerSideEnvironment: null,
@@ -63,7 +64,7 @@ class Config extends EasCommand_1.default {
63
64
  ]));
64
65
  const profile = await eas_json_1.EasJsonUtils.getBuildProfileAsync(accessor, platform, profileName);
65
66
  if (flags['eas-json-only']) {
66
- if (flags.json) {
67
+ if (json) {
67
68
  (0, json_1.printJsonOnlyOutput)({ buildProfile: profile });
68
69
  }
69
70
  else {
@@ -83,7 +84,7 @@ class Config extends EasCommand_1.default {
83
84
  getProjectConfig: getDynamicPublicProjectConfigAsync,
84
85
  opts: { env: profile.env },
85
86
  });
86
- if (flags.json) {
87
+ if (json) {
87
88
  (0, json_1.printJsonOnlyOutput)({ buildProfile: profile, appConfig });
88
89
  }
89
90
  else {
@@ -3,8 +3,8 @@ import EasCommand from '../../commandUtils/EasCommand';
3
3
  export default class InitializeBuildCredentials extends EasCommand {
4
4
  static description: string;
5
5
  static flags: {
6
- platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform | undefined>;
7
- profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
7
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
8
  };
9
9
  static contextDefinition: {
10
10
  vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
@@ -10,10 +10,10 @@ const platform_1 = require("../../platform");
10
10
  class InitializeBuildCredentials extends EasCommand_1.default {
11
11
  static description = 'Set up credentials for building your project.';
12
12
  static flags = {
13
- platform: core_1.Flags.enum({
13
+ platform: core_1.Flags.option({
14
14
  char: 'p',
15
15
  options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS],
16
- }),
16
+ })(),
17
17
  profile: core_1.Flags.string({
18
18
  char: 'e',
19
19
  description: 'The name of the build profile in eas.json.',
@@ -2,7 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
2
2
  export default class Credentials extends EasCommand {
3
3
  static description: string;
4
4
  static flags: {
5
- platform: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
5
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
6
6
  };
7
7
  static contextDefinition: {
8
8
  vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
@@ -7,7 +7,7 @@ const SelectPlatform_1 = require("../../credentials/manager/SelectPlatform");
7
7
  class Credentials extends EasCommand_1.default {
8
8
  static description = 'manage credentials';
9
9
  static flags = {
10
- platform: core_1.Flags.enum({ char: 'p', options: ['android', 'ios'] }),
10
+ platform: core_1.Flags.option({ char: 'p', options: ['android', 'ios'] })(),
11
11
  };
12
12
  static contextDefinition = {
13
13
  ...this.ContextOptions.LoggedIn,
@@ -4,8 +4,8 @@ export default class WorkerAliasDelete extends EasCommand {
4
4
  static aliases: string[];
5
5
  static state: string;
6
6
  static args: {
7
- name: string;
8
- }[];
7
+ ALIAS_NAME: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
9
  static flags: {
10
10
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
4
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
5
6
  const EasCommand_1 = tslib_1.__importDefault(require("../../../commandUtils/EasCommand"));
6
7
  const flags_1 = require("../../../commandUtils/flags");
@@ -13,7 +14,9 @@ class WorkerAliasDelete extends EasCommand_1.default {
13
14
  static description = 'Delete deployment aliases.';
14
15
  static aliases = ['worker:alias:delete'];
15
16
  static state = 'preview';
16
- static args = [{ name: 'ALIAS_NAME' }];
17
+ static args = {
18
+ ALIAS_NAME: core_1.Args.string({}),
19
+ };
17
20
  static flags = {
18
21
  ...flags_1.EasNonInteractiveAndJsonFlags,
19
22
  };
@@ -71,9 +74,10 @@ class WorkerAliasDelete extends EasCommand_1.default {
71
74
  }
72
75
  }
73
76
  sanitizeFlags(flags) {
77
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
74
78
  return {
75
- nonInteractive: flags['non-interactive'],
76
- json: flags['json'],
79
+ nonInteractive,
80
+ json,
77
81
  };
78
82
  }
79
83
  }
@@ -7,8 +7,8 @@ export default class WorkerAlias extends EasCommand {
7
7
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
8
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  prod: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
- alias: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
11
- id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
10
+ alias: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
12
  };
13
13
  static contextDefinition: {
14
14
  loggedIn: import("../../../commandUtils/context/LoggedInContextField").default;
@@ -115,9 +115,10 @@ class WorkerAlias extends EasCommand_1.default {
115
115
  }));
116
116
  }
117
117
  sanitizeFlags(flags) {
118
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
118
119
  return {
119
- nonInteractive: flags['non-interactive'],
120
- json: flags['json'],
120
+ nonInteractive,
121
+ json,
121
122
  aliasName: flags.alias?.trim().toLowerCase(),
122
123
  deploymentIdentifier: flags.id?.trim().toLowerCase(),
123
124
  isProduction: flags.prod,
@@ -4,8 +4,8 @@ export default class WorkerDelete extends EasCommand {
4
4
  static aliases: string[];
5
5
  static state: string;
6
6
  static args: {
7
- name: string;
8
- }[];
7
+ DEPLOYMENT_ID: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
9
  static flags: {
10
10
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
4
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
5
6
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
6
7
  const flags_1 = require("../../commandUtils/flags");
@@ -13,7 +14,9 @@ class WorkerDelete extends EasCommand_1.default {
13
14
  static description = 'Delete a deployment.';
14
15
  static aliases = ['worker:delete'];
15
16
  static state = 'preview';
16
- static args = [{ name: 'DEPLOYMENT_ID' }];
17
+ static args = {
18
+ DEPLOYMENT_ID: core_1.Args.string({}),
19
+ };
17
20
  static flags = {
18
21
  ...flags_1.EasNonInteractiveAndJsonFlags,
19
22
  };
@@ -74,9 +77,10 @@ class WorkerDelete extends EasCommand_1.default {
74
77
  }
75
78
  }
76
79
  sanitizeFlags(flags) {
80
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
77
81
  return {
78
- nonInteractive: flags['non-interactive'],
79
- json: flags['json'],
82
+ nonInteractive,
83
+ json,
80
84
  };
81
85
  }
82
86
  }
@@ -7,12 +7,13 @@ export default class WorkerDeploy extends EasCommand {
7
7
  static flags: {
8
8
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
- environment: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
10
+ environment: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
11
  prod: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
- alias: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
13
- id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
14
- 'export-dir': import("@oclif/core/lib/interfaces").OptionFlag<string>;
12
+ alias: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
14
+ 'export-dir': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
15
15
  'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
+ 'source-maps': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
17
  };
17
18
  static contextDefinition: {
18
19
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
@@ -51,6 +51,11 @@ class WorkerDeploy extends EasCommand_1.default {
51
51
  description: 'Outputs a tarball of the new deployment instead of uploading it.',
52
52
  default: false,
53
53
  }),
54
+ 'source-maps': core_1.Flags.boolean({
55
+ description: 'Include source maps in the deployment.',
56
+ default: true,
57
+ allowNo: true,
58
+ }),
54
59
  ...flags_1.EASEnvironmentFlag,
55
60
  ...flags_1.EasNonInteractiveAndJsonFlags,
56
61
  };
@@ -75,7 +80,9 @@ class WorkerDeploy extends EasCommand_1.default {
75
80
  yield ['assets.json', JSON.stringify(params.assetMap)];
76
81
  yield ['manifest.json', JSON.stringify(params.manifest)];
77
82
  if (projectDist.type === 'server' && projectDist.serverPath) {
78
- const workerFiles = WorkerAssets.listWorkerFilesAsync(projectDist.serverPath);
83
+ const workerFiles = WorkerAssets.listWorkerFilesAsync(projectDist.serverPath, {
84
+ skipSourceMaps: !flags.sourceMaps,
85
+ });
79
86
  for await (const workerFile of workerFiles) {
80
87
  yield [`server/${workerFile.normalizedPath}`, workerFile.data];
81
88
  }
@@ -312,15 +319,17 @@ class WorkerDeploy extends EasCommand_1.default {
312
319
  }
313
320
  }
314
321
  sanitizeFlags(flags) {
322
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
315
323
  return {
316
- nonInteractive: flags['non-interactive'],
317
- json: flags['json'],
324
+ nonInteractive,
325
+ json,
318
326
  isProduction: !!flags.prod,
319
327
  aliasName: flags.alias?.trim().toLowerCase(),
320
328
  deploymentIdentifier: flags.id?.trim(),
321
329
  exportDir: flags['export-dir'],
322
330
  environment: flags['environment'],
323
331
  dryRun: flags['dry-run'],
332
+ sourceMaps: flags['source-maps'],
324
333
  };
325
334
  }
326
335
  }
@@ -8,8 +8,8 @@ export default class DeviceDelete extends EasCommand {
8
8
  static flags: {
9
9
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
10
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
- 'apple-team-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
12
- udid: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
11
+ 'apple-team-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
+ udid: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
13
  };
14
14
  static contextDefinition: {
15
15
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;