eas-cli 0.39.0 → 0.42.3

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 (117) hide show
  1. package/README.md +457 -104
  2. package/bin/run +3 -4
  3. package/build/api.d.ts +1 -0
  4. package/build/api.js +13 -1
  5. package/build/build/build.js +3 -3
  6. package/build/build/configure.js +3 -3
  7. package/build/build/context.d.ts +2 -1
  8. package/build/build/createContext.d.ts +3 -2
  9. package/build/build/createContext.js +3 -3
  10. package/build/build/local.d.ts +9 -1
  11. package/build/build/local.js +35 -5
  12. package/build/build/runBuildAndSubmit.d.ts +15 -0
  13. package/build/build/runBuildAndSubmit.js +173 -0
  14. package/build/build/utils/devClient.js +3 -3
  15. package/build/commandUtils/EasCommand.d.ts +2 -1
  16. package/build/commandUtils/EasCommand.js +7 -4
  17. package/build/commands/account/login.d.ts +1 -0
  18. package/build/commands/account/login.js +1 -0
  19. package/build/commands/account/logout.d.ts +1 -0
  20. package/build/commands/account/logout.js +1 -0
  21. package/build/commands/account/view.d.ts +1 -0
  22. package/build/commands/account/view.js +1 -0
  23. package/build/commands/analytics.js +1 -1
  24. package/build/commands/branch/create.d.ts +1 -2
  25. package/build/commands/branch/create.js +3 -4
  26. package/build/commands/branch/delete.d.ts +1 -2
  27. package/build/commands/branch/delete.js +4 -5
  28. package/build/commands/branch/list.d.ts +1 -2
  29. package/build/commands/branch/list.js +4 -5
  30. package/build/commands/branch/publish.d.ts +1 -18
  31. package/build/commands/branch/publish.js +2 -354
  32. package/build/commands/branch/rename.d.ts +3 -5
  33. package/build/commands/branch/rename.js +5 -6
  34. package/build/commands/branch/view.d.ts +1 -2
  35. package/build/commands/branch/view.js +3 -4
  36. package/build/commands/build/cancel.js +1 -1
  37. package/build/commands/build/configure.d.ts +1 -2
  38. package/build/commands/build/configure.js +3 -3
  39. package/build/commands/build/index.d.ts +11 -17
  40. package/build/commands/build/index.js +28 -178
  41. package/build/commands/build/inspect.d.ts +21 -0
  42. package/build/commands/build/inspect.js +129 -0
  43. package/build/commands/build/list.d.ts +13 -14
  44. package/build/commands/build/list.js +15 -15
  45. package/build/commands/build/view.d.ts +1 -1
  46. package/build/commands/build/view.js +3 -3
  47. package/build/commands/channel/create.d.ts +1 -2
  48. package/build/commands/channel/create.js +3 -4
  49. package/build/commands/channel/edit.d.ts +2 -4
  50. package/build/commands/channel/edit.js +4 -5
  51. package/build/commands/channel/list.d.ts +1 -2
  52. package/build/commands/channel/list.js +3 -4
  53. package/build/commands/channel/rollout.d.ts +4 -5
  54. package/build/commands/channel/rollout.js +6 -7
  55. package/build/commands/channel/view.d.ts +1 -2
  56. package/build/commands/channel/view.js +3 -4
  57. package/build/commands/config.d.ts +2 -3
  58. package/build/commands/config.js +4 -4
  59. package/build/commands/credentials.js +1 -7
  60. package/build/commands/device/list.d.ts +1 -2
  61. package/build/commands/device/list.js +3 -3
  62. package/build/commands/device/view.js +1 -1
  63. package/build/commands/diagnostics.js +1 -0
  64. package/build/commands/secret/create.d.ts +4 -5
  65. package/build/commands/secret/create.js +6 -6
  66. package/build/commands/secret/delete.d.ts +1 -2
  67. package/build/commands/secret/delete.js +3 -3
  68. package/build/commands/submit.d.ts +9 -10
  69. package/build/commands/submit.js +14 -15
  70. package/build/commands/update/configure.d.ts +0 -2
  71. package/build/commands/update/configure.js +14 -14
  72. package/build/commands/update/delete.d.ts +1 -2
  73. package/build/commands/update/delete.js +3 -4
  74. package/build/commands/update/index.d.ts +18 -0
  75. package/build/commands/update/index.js +392 -0
  76. package/build/commands/update/view.d.ts +1 -2
  77. package/build/commands/update/view.js +3 -4
  78. package/build/commands/webhook/create.d.ts +3 -4
  79. package/build/commands/webhook/create.js +5 -5
  80. package/build/commands/webhook/delete.js +1 -1
  81. package/build/commands/webhook/list.d.ts +1 -2
  82. package/build/commands/webhook/list.js +3 -3
  83. package/build/commands/webhook/update.d.ts +4 -5
  84. package/build/commands/webhook/update.js +6 -6
  85. package/build/commands/webhook/view.js +1 -1
  86. package/build/credentials/context.d.ts +5 -0
  87. package/build/credentials/context.js +12 -7
  88. package/build/credentials/manager/ManageAndroid.d.ts +3 -3
  89. package/build/credentials/manager/ManageAndroid.js +21 -13
  90. package/build/credentials/manager/ManageIos.d.ts +3 -3
  91. package/build/credentials/manager/ManageIos.js +23 -13
  92. package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +2 -3
  93. package/build/credentials/manager/SelectBuildProfileFromEasJson.js +3 -6
  94. package/build/credentials/manager/SelectPlatform.d.ts +1 -2
  95. package/build/credentials/manager/SelectPlatform.js +3 -3
  96. package/build/graphql/generated.d.ts +31 -11
  97. package/build/graphql/generated.js +6 -1
  98. package/build/graphql/types/Submission.js +1 -0
  99. package/build/index.d.ts +1 -1
  100. package/build/index.js +2 -2
  101. package/build/project/expoSdk.d.ts +3 -0
  102. package/build/project/expoSdk.js +30 -0
  103. package/build/project/metroConfig.js +2 -2
  104. package/build/project/publish.js +1 -3
  105. package/build/prompts.d.ts +3 -3
  106. package/build/submit/context.js +0 -1
  107. package/build/submit/ios/IosSubmitCommand.js +6 -1
  108. package/build/submit/utils/urls.js +1 -1
  109. package/build/update/utils.js +4 -4
  110. package/build/user/actions.js +2 -2
  111. package/build/utils/expoCli.d.ts +3 -1
  112. package/build/utils/expoCli.js +13 -11
  113. package/build/utils/profiles.d.ts +1 -1
  114. package/build/utils/profiles.js +80 -30
  115. package/build/vcs/clients/git.js +2 -2
  116. package/oclif.manifest.json +1 -1
  117. package/package.json +16 -12
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createUpdateChannelOnAppAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
- const command_1 = require("@oclif/command");
6
+ const core_1 = require("@oclif/core");
7
7
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
8
  const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
9
9
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
@@ -40,7 +40,7 @@ async function createUpdateChannelOnAppAsync({ appId, channelName, branchId, })
40
40
  exports.createUpdateChannelOnAppAsync = createUpdateChannelOnAppAsync;
41
41
  class ChannelCreate extends EasCommand_1.default {
42
42
  async runAsync() {
43
- let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelCreate);
43
+ let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelCreate);
44
44
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
45
45
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
46
46
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
@@ -103,7 +103,6 @@ class ChannelCreate extends EasCommand_1.default {
103
103
  }
104
104
  }
105
105
  exports.default = ChannelCreate;
106
- ChannelCreate.hidden = true;
107
106
  ChannelCreate.description = 'Create a channel on the current project.';
108
107
  ChannelCreate.args = [
109
108
  {
@@ -113,7 +112,7 @@ ChannelCreate.args = [
113
112
  },
114
113
  ];
115
114
  ChannelCreate.flags = {
116
- json: command_1.flags.boolean({
115
+ json: core_1.Flags.boolean({
117
116
  description: 'print output as a JSON object with the new channel ID, name and branch mapping.',
118
117
  default: false,
119
118
  }),
@@ -1,4 +1,3 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
2
  import { UpdateChannelBranchMappingMutationVariables } from '../../graphql/generated';
4
3
  export declare function updateChannelBranchMappingAsync({ channelId, branchMapping, }: UpdateChannelBranchMappingMutationVariables): Promise<{
@@ -7,7 +6,6 @@ export declare function updateChannelBranchMappingAsync({ channelId, branchMappi
7
6
  branchMapping: string;
8
7
  }>;
9
8
  export default class ChannelEdit extends EasCommand {
10
- static hidden: boolean;
11
9
  static description: string;
12
10
  static args: {
13
11
  name: string;
@@ -15,8 +13,8 @@ export default class ChannelEdit extends EasCommand {
15
13
  description: string;
16
14
  }[];
17
15
  static flags: {
18
- branch: flags.IOptionFlag<string | undefined>;
19
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
16
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
17
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
20
18
  };
21
19
  runAsync(): Promise<void>;
22
20
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateChannelBranchMappingAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
- const command_1 = require("@oclif/command");
6
+ const core_1 = require("@oclif/core");
7
7
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
8
  const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
9
9
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
@@ -61,7 +61,7 @@ async function updateChannelBranchMappingAsync({ channelId, branchMapping, }) {
61
61
  exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
62
62
  class ChannelEdit extends EasCommand_1.default {
63
63
  async runAsync() {
64
- let { args: { name: channelName }, flags: { branch: branchName, json: jsonFlag }, } = this.parse(ChannelEdit);
64
+ let { args: { name: channelName }, flags: { branch: branchName, json: jsonFlag }, } = await this.parse(ChannelEdit);
65
65
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
66
66
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
67
67
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
@@ -112,7 +112,6 @@ class ChannelEdit extends EasCommand_1.default {
112
112
  }
113
113
  }
114
114
  exports.default = ChannelEdit;
115
- ChannelEdit.hidden = true;
116
115
  ChannelEdit.description = 'Point a channel at a new branch.';
117
116
  ChannelEdit.args = [
118
117
  {
@@ -122,10 +121,10 @@ ChannelEdit.args = [
122
121
  },
123
122
  ];
124
123
  ChannelEdit.flags = {
125
- branch: command_1.flags.string({
124
+ branch: core_1.Flags.string({
126
125
  description: 'Name of the branch to point to',
127
126
  }),
128
- json: command_1.flags.boolean({
127
+ json: core_1.Flags.boolean({
129
128
  description: 'print output as a JSON object with the channel ID, name and branch mapping.',
130
129
  default: false,
131
130
  }),
@@ -1,9 +1,8 @@
1
1
  import EasCommand from '../../commandUtils/EasCommand';
2
2
  export default class ChannelList extends EasCommand {
3
- static hidden: boolean;
4
3
  static description: string;
5
4
  static flags: {
6
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
6
  };
8
7
  runAsync(): Promise<void>;
9
8
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
5
+ const core_1 = require("@oclif/core");
6
6
  const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
7
7
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
8
8
  const client_1 = require("../../graphql/client");
@@ -53,7 +53,7 @@ async function getAllUpdateChannelForAppAsync({ appId, }) {
53
53
  class ChannelList extends EasCommand_1.default {
54
54
  async runAsync() {
55
55
  var _a;
56
- const { flags: { json: jsonFlag }, } = this.parse(ChannelList);
56
+ const { flags: { json: jsonFlag }, } = await this.parse(ChannelList);
57
57
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
58
58
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
59
59
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
@@ -79,10 +79,9 @@ class ChannelList extends EasCommand_1.default {
79
79
  }
80
80
  }
81
81
  exports.default = ChannelList;
82
- ChannelList.hidden = true;
83
82
  ChannelList.description = 'List all channels on the current project.';
84
83
  ChannelList.flags = {
85
- json: command_1.flags.boolean({
84
+ json: core_1.Flags.boolean({
86
85
  description: 'print output as a JSON object with the channel ID, name and branch mapping.',
87
86
  default: false,
88
87
  }),
@@ -1,4 +1,3 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
2
  export default class ChannelRollout extends EasCommand {
4
3
  static hidden: boolean;
@@ -9,10 +8,10 @@ export default class ChannelRollout extends EasCommand {
9
8
  description: string;
10
9
  }[];
11
10
  static flags: {
12
- branch: flags.IOptionFlag<string | undefined>;
13
- percent: import("@oclif/parser/lib/flags").IOptionFlag<number | undefined>;
14
- end: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
15
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
11
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
12
+ percent: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
13
+ end: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
15
  };
17
16
  runAsync(): Promise<void>;
18
17
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
5
+ const core_1 = require("@oclif/core");
6
6
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
7
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
8
8
  const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
@@ -165,8 +165,7 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
165
165
  class ChannelRollout extends EasCommand_1.default {
166
166
  async runAsync() {
167
167
  var _a, _b;
168
- const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag }, } = this.parse(ChannelRollout);
169
- const { flags: { branch: branchName, percent }, } = this.parse(ChannelRollout);
168
+ const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag, branch: branchName, percent }, } = await this.parse(ChannelRollout);
170
169
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
171
170
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
172
171
  const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
@@ -246,19 +245,19 @@ ChannelRollout.args = [
246
245
  },
247
246
  ];
248
247
  ChannelRollout.flags = {
249
- branch: command_1.flags.string({
248
+ branch: core_1.Flags.string({
250
249
  description: 'branch to rollout',
251
250
  required: false,
252
251
  }),
253
- percent: command_1.flags.integer({
252
+ percent: core_1.Flags.integer({
254
253
  description: 'percent of traffic to redirect to the new branch',
255
254
  required: false,
256
255
  }),
257
- end: command_1.flags.boolean({
256
+ end: core_1.Flags.boolean({
258
257
  description: 'end the rollout',
259
258
  default: false,
260
259
  }),
261
- json: command_1.flags.boolean({
260
+ json: core_1.Flags.boolean({
262
261
  description: 'print output as a JSON object with the new channel ID, name and branch mapping',
263
262
  default: false,
264
263
  }),
@@ -35,7 +35,6 @@ export declare function logChannelDetails(channel: {
35
35
  }[];
36
36
  }): void;
37
37
  export default class ChannelView extends EasCommand {
38
- static hidden: boolean;
39
38
  static description: string;
40
39
  static args: {
41
40
  name: string;
@@ -43,7 +42,7 @@ export default class ChannelView extends EasCommand {
43
42
  description: string;
44
43
  }[];
45
44
  static flags: {
46
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
45
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
47
46
  };
48
47
  runAsync(): Promise<void>;
49
48
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logChannelDetails = exports.getUpdateChannelByNameForAppAsync = exports.getBranchMapping = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
- const command_1 = require("@oclif/command");
6
+ const core_1 = require("@oclif/core");
7
7
  const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
8
8
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
9
9
  const cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
@@ -146,7 +146,7 @@ exports.logChannelDetails = logChannelDetails;
146
146
  class ChannelView extends EasCommand_1.default {
147
147
  async runAsync() {
148
148
  var _a;
149
- let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelView);
149
+ let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelView);
150
150
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
151
151
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
152
152
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
@@ -186,7 +186,6 @@ class ChannelView extends EasCommand_1.default {
186
186
  }
187
187
  }
188
188
  exports.default = ChannelView;
189
- ChannelView.hidden = true;
190
189
  ChannelView.description = 'View a channel on the current project.';
191
190
  ChannelView.args = [
192
191
  {
@@ -196,7 +195,7 @@ ChannelView.args = [
196
195
  },
197
196
  ];
198
197
  ChannelView.flags = {
199
- json: command_1.flags.boolean({
198
+ json: core_1.Flags.boolean({
200
199
  description: 'print output as a JSON object with the channel ID, name and branch mapping.',
201
200
  default: false,
202
201
  }),
@@ -1,10 +1,9 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../commandUtils/EasCommand';
3
2
  export default class Config extends EasCommand {
4
3
  static description: string;
5
4
  static flags: {
6
- platform: flags.IOptionFlag<string>;
7
- profile: flags.IOptionFlag<string | undefined>;
5
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
7
  };
9
8
  protected requiresAuthentication: boolean;
10
9
  runAsync(): Promise<void>;
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const eas_json_1 = require("@expo/eas-json");
7
- const command_1 = require("@oclif/command");
7
+ const core_1 = require("@oclif/core");
8
8
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
9
9
  const log_1 = (0, tslib_1.__importDefault)(require("../log"));
10
10
  const expoConfig_1 = require("../project/expoConfig");
@@ -17,7 +17,7 @@ class Config extends EasCommand_1.default {
17
17
  this.requiresAuthentication = false;
18
18
  }
19
19
  async runAsync() {
20
- const { flags } = this.parse(Config);
20
+ const { flags } = await this.parse(Config);
21
21
  const { platform: maybePlatform, profile: maybeProfile } = flags;
22
22
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
23
23
  await (0, build_1.handleDeprecatedEasJsonAsync)(projectDir, false);
@@ -51,6 +51,6 @@ class Config extends EasCommand_1.default {
51
51
  exports.default = Config;
52
52
  Config.description = 'show the eas.json config';
53
53
  Config.flags = {
54
- platform: command_1.flags.enum({ char: 'p', options: ['android', 'ios'] }),
55
- profile: command_1.flags.string(),
54
+ platform: core_1.Flags.enum({ char: 'p', options: ['android', 'ios'] }),
55
+ profile: core_1.Flags.string(),
56
56
  };
@@ -2,16 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
5
- const context_1 = require("../credentials/context");
6
5
  const SelectPlatform_1 = require("../credentials/manager/SelectPlatform");
7
- const actions_1 = require("../user/actions");
8
6
  class Credentials extends EasCommand_1.default {
9
7
  async runAsync() {
10
- const ctx = new context_1.CredentialsContext({
11
- projectDir: process.cwd(),
12
- user: await (0, actions_1.ensureLoggedInAsync)(),
13
- });
14
- await new SelectPlatform_1.SelectPlatform().runAsync(ctx);
8
+ await new SelectPlatform_1.SelectPlatform().runAsync();
15
9
  }
16
10
  }
17
11
  exports.default = Credentials;
@@ -1,9 +1,8 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
2
  export default class BuildList extends EasCommand {
4
3
  static description: string;
5
4
  static flags: {
6
- 'apple-team-id': flags.IOptionFlag<string | undefined>;
5
+ 'apple-team-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
6
  };
8
7
  runAsync(): Promise<void>;
9
8
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
5
+ const core_1 = require("@oclif/core");
6
6
  const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
7
7
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
8
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
@@ -15,7 +15,7 @@ const projectUtils_1 = require("../../project/projectUtils");
15
15
  const prompts_1 = require("../../prompts");
16
16
  class BuildList extends EasCommand_1.default {
17
17
  async runAsync() {
18
- let appleTeamIdentifier = this.parse(BuildList).flags['apple-team-id'];
18
+ let appleTeamIdentifier = (await this.parse(BuildList)).flags['apple-team-id'];
19
19
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
20
20
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
21
21
  const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
@@ -78,5 +78,5 @@ class BuildList extends EasCommand_1.default {
78
78
  exports.default = BuildList;
79
79
  BuildList.description = 'list all registered devices for your account';
80
80
  BuildList.flags = {
81
- 'apple-team-id': command_1.flags.string(),
81
+ 'apple-team-id': core_1.Flags.string(),
82
82
  };
@@ -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 } = this.parse(DeviceView).args;
13
+ const { UDID } = (await this.parse(DeviceView)).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
 
@@ -28,6 +28,7 @@ class Diagnostics extends EasCommand_1.default {
28
28
  'react-navigation',
29
29
  '@expo/webpack-config',
30
30
  'expo-dev-client',
31
+ 'expo-updates',
31
32
  ],
32
33
  npmGlobalPackages: ['eas-cli', 'expo-cli'],
33
34
  }, {
@@ -1,13 +1,12 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
2
  import { EnvironmentSecretScope } from '../../graphql/queries/EnvironmentSecretsQuery';
4
3
  export default class EnvironmentSecretCreate extends EasCommand {
5
4
  static description: string;
6
5
  static flags: {
7
- scope: flags.IOptionFlag<EnvironmentSecretScope>;
8
- name: flags.IOptionFlag<string | undefined>;
9
- value: flags.IOptionFlag<string | undefined>;
10
- force: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
6
+ scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope>;
7
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
+ value: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
9
+ force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
10
  };
12
11
  runAsync(): Promise<void>;
13
12
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
5
+ const core_1 = require("@oclif/core");
6
6
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
7
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
8
8
  const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
@@ -16,7 +16,7 @@ const actions_1 = require("../../user/actions");
16
16
  class EnvironmentSecretCreate extends EasCommand_1.default {
17
17
  async runAsync() {
18
18
  const actor = await (0, actions_1.ensureLoggedInAsync)();
19
- let { flags: { name, value: secretValue, scope, force }, } = this.parse(EnvironmentSecretCreate);
19
+ let { flags: { name, value: secretValue, scope, force }, } = await this.parse(EnvironmentSecretCreate);
20
20
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
21
21
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
22
22
  const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
@@ -108,18 +108,18 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
108
108
  exports.default = EnvironmentSecretCreate;
109
109
  EnvironmentSecretCreate.description = 'Create an environment secret on the current project or owner account.';
110
110
  EnvironmentSecretCreate.flags = {
111
- scope: command_1.flags.enum({
111
+ scope: core_1.Flags.enum({
112
112
  description: 'Scope for the secret',
113
113
  options: [EnvironmentSecretsQuery_1.EnvironmentSecretScope.ACCOUNT, EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT],
114
114
  default: EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT,
115
115
  }),
116
- name: command_1.flags.string({
116
+ name: core_1.Flags.string({
117
117
  description: 'Name of the secret',
118
118
  }),
119
- value: command_1.flags.string({
119
+ value: core_1.Flags.string({
120
120
  description: 'Value of the secret',
121
121
  }),
122
- force: command_1.flags.boolean({
122
+ force: core_1.Flags.boolean({
123
123
  description: 'Delete and recreate existing secrets',
124
124
  default: false,
125
125
  }),
@@ -1,9 +1,8 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
2
  export default class EnvironmentSecretDelete extends EasCommand {
4
3
  static description: string;
5
4
  static flags: {
6
- id: flags.IOptionFlag<string | undefined>;
5
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
6
  };
8
7
  runAsync(): Promise<void>;
9
8
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
5
+ const core_1 = require("@oclif/core");
6
6
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
7
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
8
8
  const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
@@ -16,7 +16,7 @@ class EnvironmentSecretDelete extends EasCommand_1.default {
16
16
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
17
17
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
18
18
  const projectAccountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
19
- let { flags: { id }, } = this.parse(EnvironmentSecretDelete);
19
+ let { flags: { id }, } = await this.parse(EnvironmentSecretDelete);
20
20
  let secret;
21
21
  if (!id) {
22
22
  const validationMessage = 'You must select which secret to delete.';
@@ -55,7 +55,7 @@ exports.default = EnvironmentSecretDelete;
55
55
  EnvironmentSecretDelete.description = `Delete an environment secret by ID.
56
56
  Unsure where to find the secret's ID? Run ${chalk_1.default.bold('eas secret:list')}`;
57
57
  EnvironmentSecretDelete.flags = {
58
- id: command_1.flags.string({
58
+ id: core_1.Flags.string({
59
59
  description: 'ID of the secret to delete',
60
60
  }),
61
61
  };
@@ -1,18 +1,17 @@
1
- import { flags } from '@oclif/command';
2
1
  import EasCommand from '../commandUtils/EasCommand';
3
2
  export default class Submit extends EasCommand {
4
3
  static description: string;
5
4
  static aliases: string[];
6
5
  static flags: {
7
- platform: flags.IOptionFlag<string>;
8
- profile: flags.IOptionFlag<string | undefined>;
9
- latest: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- id: flags.IOptionFlag<string | undefined>;
11
- path: flags.IOptionFlag<string | undefined>;
12
- url: flags.IOptionFlag<string | undefined>;
13
- verbose: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
14
- wait: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
15
- 'non-interactive': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
6
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
+ latest: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
10
+ path: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
11
+ url: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
12
+ verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
13
+ wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
+ 'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
15
  };
17
16
  runAsync(): Promise<void>;
18
17
  private sanitizeFlagsAsync;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const command_1 = require("@oclif/command");
6
- const errors_1 = require("@oclif/errors");
5
+ const core_1 = require("@oclif/core");
7
6
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
7
  const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
9
8
  const AppPlatform_1 = require("../graphql/types/AppPlatform");
@@ -16,7 +15,7 @@ const urls_1 = require("../submit/utils/urls");
16
15
  const profiles_1 = require("../utils/profiles");
17
16
  class Submit extends EasCommand_1.default {
18
17
  async runAsync() {
19
- const { flags: rawFlags } = this.parse(Submit);
18
+ const { flags: rawFlags } = await this.parse(Submit);
20
19
  const flags = await this.sanitizeFlagsAsync(rawFlags);
21
20
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
22
21
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
@@ -55,12 +54,12 @@ class Submit extends EasCommand_1.default {
55
54
  async sanitizeFlagsAsync(flags) {
56
55
  const { platform, verbose, wait, profile, 'non-interactive': nonInteractive, ...archiveFlags } = flags;
57
56
  if (!flags.platform && nonInteractive) {
58
- (0, errors_1.error)('--platform is required when building in non-interactive mode', { exit: 1 });
57
+ core_1.Errors.error('--platform is required when building in non-interactive mode', { exit: 1 });
59
58
  }
60
59
  const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.platform);
61
60
  if (requestedPlatform === platform_1.RequestedPlatform.All) {
62
61
  if (archiveFlags.id || archiveFlags.path || archiveFlags.url) {
63
- (0, errors_1.error)('--id, --path, and --url params are only supported when performing a single-platform submit', { exit: 1 });
62
+ core_1.Errors.error('--id, --path, and --url params are only supported when performing a single-platform submit', { exit: 1 });
64
63
  }
65
64
  }
66
65
  return {
@@ -74,43 +73,43 @@ class Submit extends EasCommand_1.default {
74
73
  }
75
74
  }
76
75
  exports.default = Submit;
77
- Submit.description = `submit build archive to App Store Connect
76
+ Submit.description = `Submit build archive to App Store Connect
78
77
  See how to configure submits with eas.json: ${(0, log_1.link)('https://docs.expo.dev/submit/eas-json/')}`;
79
78
  Submit.aliases = ['build:submit'];
80
79
  Submit.flags = {
81
- platform: command_1.flags.enum({
80
+ platform: core_1.Flags.enum({
82
81
  char: 'p',
83
82
  options: ['android', 'ios', 'all'],
84
83
  }),
85
- profile: command_1.flags.string({
84
+ profile: core_1.Flags.string({
86
85
  description: 'Name of the submit profile from eas.json. Defaults to "production" if defined in eas.json.',
87
86
  }),
88
- latest: command_1.flags.boolean({
87
+ latest: core_1.Flags.boolean({
89
88
  description: 'Submit the latest build for specified platform',
90
89
  exclusive: ['id', 'path', 'url'],
91
90
  }),
92
- id: command_1.flags.string({
91
+ id: core_1.Flags.string({
93
92
  description: 'ID of the build to submit',
94
93
  exclusive: ['latest, path, url'],
95
94
  }),
96
- path: command_1.flags.string({
95
+ path: core_1.Flags.string({
97
96
  description: 'Path to the .apk/.aab/.ipa file',
98
97
  exclusive: ['latest', 'id', 'url'],
99
98
  }),
100
- url: command_1.flags.string({
99
+ url: core_1.Flags.string({
101
100
  description: 'App archive url',
102
101
  exclusive: ['latest', 'id', 'path'],
103
102
  }),
104
- verbose: command_1.flags.boolean({
103
+ verbose: core_1.Flags.boolean({
105
104
  description: 'Always print logs from Submission Service',
106
105
  default: false,
107
106
  }),
108
- wait: command_1.flags.boolean({
107
+ wait: core_1.Flags.boolean({
109
108
  description: 'Wait for submission to complete',
110
109
  default: true,
111
110
  allowNo: true,
112
111
  }),
113
- 'non-interactive': command_1.flags.boolean({
112
+ 'non-interactive': core_1.Flags.boolean({
114
113
  default: false,
115
114
  description: 'Run command in non-interactive mode',
116
115
  }),
@@ -1,6 +1,4 @@
1
- import { ExpoConfig } from '@expo/config';
2
1
  import EasCommand from '../../commandUtils/EasCommand';
3
- export declare function getEASUpdateURLAsync(exp: ExpoConfig): Promise<string>;
4
2
  export default class UpdateConfigure extends EasCommand {
5
3
  static description: string;
6
4
  runAsync(): Promise<void>;