eas-cli 2.0.0 → 2.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 (54) hide show
  1. package/README.md +65 -50
  2. package/build/branch/queries.js +11 -8
  3. package/build/build/android/graphql.js +2 -1
  4. package/build/build/android/prepareJob.js +3 -1
  5. package/build/build/ios/graphql.js +2 -1
  6. package/build/build/ios/prepareJob.js +3 -1
  7. package/build/commands/branch/delete.js +1 -1
  8. package/build/commands/build/index.js +55 -1
  9. package/build/commands/channel/delete.js +1 -1
  10. package/build/commands/device/delete.js +3 -2
  11. package/build/commands/open.d.ts +5 -0
  12. package/build/commands/open.js +40 -0
  13. package/build/commands/secret/delete.js +1 -1
  14. package/build/commands/update/configure.js +4 -4
  15. package/build/commands/update/delete.js +1 -1
  16. package/build/commands/webhook/delete.js +1 -1
  17. package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +3 -1
  18. package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +5 -2
  19. package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -1
  20. package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -2
  21. package/build/credentials/ios/actions/ProvisioningProfileUtils.d.ts +2 -1
  22. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +4 -2
  23. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +8 -2
  24. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +30 -18
  25. package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -0
  26. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +8 -2
  27. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +6 -12
  28. package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -1
  29. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +8 -5
  30. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +2 -0
  31. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +5 -5
  32. package/build/credentials/ios/appstore/AppStoreApi.d.ts +7 -4
  33. package/build/credentials/ios/appstore/AppStoreApi.js +8 -8
  34. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -14
  35. package/build/credentials/ios/appstore/Credentials.types.js +0 -6
  36. package/build/credentials/ios/appstore/constants.d.ts +1 -0
  37. package/build/credentials/ios/appstore/constants.js +6 -0
  38. package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
  39. package/build/credentials/ios/appstore/provisioningProfile.d.ts +5 -3
  40. package/build/credentials/ios/appstore/provisioningProfile.js +30 -7
  41. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +3 -1
  42. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +10 -10
  43. package/build/credentials/ios/validators/validateProvisioningProfile.d.ts +2 -1
  44. package/build/credentials/ios/validators/validateProvisioningProfile.js +6 -4
  45. package/build/credentials/manager/ManageIos.js +8 -5
  46. package/build/devices/actions/create/developerPortalMethod.js +2 -2
  47. package/build/graphql/generated.d.ts +39 -0
  48. package/build/project/ios/target.d.ts +7 -0
  49. package/build/project/ios/target.js +26 -1
  50. package/build/project/workflow.js +3 -1
  51. package/build/vcs/clients/git.js +4 -1
  52. package/build/vcs/clients/gitNoCommit.js +2 -1
  53. package/oclif.manifest.json +1 -1
  54. package/package.json +6 -5
package/README.md CHANGED
@@ -32,7 +32,7 @@ An example of **eas.json** that enforces `eas-cli` in version `1.0.0` or newer:
32
32
  },
33
33
  "build": {
34
34
  // build profiles
35
- }
35
+ },
36
36
  "submit": {
37
37
  // submit profiles
38
38
  }
@@ -91,6 +91,7 @@ eas --help COMMAND
91
91
  * [`eas logout`](#eas-logout)
92
92
  * [`eas metadata:pull`](#eas-metadatapull)
93
93
  * [`eas metadata:push`](#eas-metadatapush)
94
+ * [`eas open`](#eas-open)
94
95
  * [`eas project:info`](#eas-projectinfo)
95
96
  * [`eas project:init`](#eas-projectinit)
96
97
  * [`eas secret:create`](#eas-secretcreate)
@@ -124,7 +125,7 @@ ALIASES
124
125
  $ eas login
125
126
  ```
126
127
 
127
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/account/login.ts)_
128
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/account/login.ts)_
128
129
 
129
130
  ## `eas account:logout`
130
131
 
@@ -141,7 +142,7 @@ ALIASES
141
142
  $ eas logout
142
143
  ```
143
144
 
144
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/account/logout.ts)_
145
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/account/logout.ts)_
145
146
 
146
147
  ## `eas account:view`
147
148
 
@@ -158,7 +159,7 @@ ALIASES
158
159
  $ eas whoami
159
160
  ```
160
161
 
161
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/account/view.ts)_
162
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/account/view.ts)_
162
163
 
163
164
  ## `eas analytics [STATUS]`
164
165
 
@@ -172,7 +173,7 @@ DESCRIPTION
172
173
  display or change analytics settings
173
174
  ```
174
175
 
175
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/analytics.ts)_
176
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/analytics.ts)_
176
177
 
177
178
  ## `eas autocomplete [SHELL]`
178
179
 
@@ -221,7 +222,7 @@ DESCRIPTION
221
222
  create a branch
222
223
  ```
223
224
 
224
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/branch/create.ts)_
225
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/branch/create.ts)_
225
226
 
226
227
  ## `eas branch:delete [NAME]`
227
228
 
@@ -241,7 +242,7 @@ DESCRIPTION
241
242
  delete a branch
242
243
  ```
243
244
 
244
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/branch/delete.ts)_
245
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/branch/delete.ts)_
245
246
 
246
247
  ## `eas branch:list`
247
248
 
@@ -262,7 +263,7 @@ DESCRIPTION
262
263
  list all branches
263
264
  ```
264
265
 
265
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/branch/list.ts)_
266
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/branch/list.ts)_
266
267
 
267
268
  ## `eas branch:rename`
268
269
 
@@ -281,7 +282,7 @@ DESCRIPTION
281
282
  rename a branch
282
283
  ```
283
284
 
284
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/branch/rename.ts)_
285
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/branch/rename.ts)_
285
286
 
286
287
  ## `eas branch:view [NAME]`
287
288
 
@@ -305,7 +306,7 @@ DESCRIPTION
305
306
  view a branch
306
307
  ```
307
308
 
308
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/branch/view.ts)_
309
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/branch/view.ts)_
309
310
 
310
311
  ## `eas build`
311
312
 
@@ -335,7 +336,7 @@ DESCRIPTION
335
336
  start a build
336
337
  ```
337
338
 
338
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/index.ts)_
339
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/index.ts)_
339
340
 
340
341
  ## `eas build:cancel [BUILD_ID]`
341
342
 
@@ -349,7 +350,7 @@ DESCRIPTION
349
350
  cancel a build
350
351
  ```
351
352
 
352
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/cancel.ts)_
353
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/cancel.ts)_
353
354
 
354
355
  ## `eas build:configure`
355
356
 
@@ -366,7 +367,7 @@ DESCRIPTION
366
367
  configure the project to support EAS Build
367
368
  ```
368
369
 
369
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/configure.ts)_
370
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/configure.ts)_
370
371
 
371
372
  ## `eas build:inspect`
372
373
 
@@ -401,7 +402,7 @@ DESCRIPTION
401
402
  inspect the state of the project at specific build stages, useful for troubleshooting
402
403
  ```
403
404
 
404
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/inspect.ts)_
405
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/inspect.ts)_
405
406
 
406
407
  ## `eas build:list`
407
408
 
@@ -434,7 +435,7 @@ DESCRIPTION
434
435
  list all builds for your project
435
436
  ```
436
437
 
437
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/list.ts)_
438
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/list.ts)_
438
439
 
439
440
  ## `eas build:submit`
440
441
 
@@ -481,7 +482,7 @@ DESCRIPTION
481
482
  Update version of an app.
482
483
  ```
483
484
 
484
- _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/version/set.ts)_
485
+ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/version/set.ts)_
485
486
 
486
487
  ## `eas build:version:sync`
487
488
 
@@ -500,7 +501,7 @@ DESCRIPTION
500
501
  Update a version in native code with a value stored on EAS servers
501
502
  ```
502
503
 
503
- _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/version/sync.ts)_
504
+ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/version/sync.ts)_
504
505
 
505
506
  ## `eas build:view [BUILD_ID]`
506
507
 
@@ -517,7 +518,7 @@ DESCRIPTION
517
518
  view a build for your project
518
519
  ```
519
520
 
520
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/build/view.ts)_
521
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/build/view.ts)_
521
522
 
522
523
  ## `eas channel:create [NAME]`
523
524
 
@@ -537,7 +538,7 @@ DESCRIPTION
537
538
  create a channel
538
539
  ```
539
540
 
540
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/channel/create.ts)_
541
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/channel/create.ts)_
541
542
 
542
543
  ## `eas channel:edit [NAME]`
543
544
 
@@ -558,7 +559,7 @@ DESCRIPTION
558
559
  point a channel at a new branch
559
560
  ```
560
561
 
561
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/channel/edit.ts)_
562
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/channel/edit.ts)_
562
563
 
563
564
  ## `eas channel:list`
564
565
 
@@ -575,7 +576,7 @@ DESCRIPTION
575
576
  list all channels
576
577
  ```
577
578
 
578
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/channel/list.ts)_
579
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/channel/list.ts)_
579
580
 
580
581
  ## `eas channel:view [NAME]`
581
582
 
@@ -595,7 +596,7 @@ DESCRIPTION
595
596
  view a channel
596
597
  ```
597
598
 
598
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/channel/view.ts)_
599
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/channel/view.ts)_
599
600
 
600
601
  ## `eas config`
601
602
 
@@ -613,7 +614,7 @@ DESCRIPTION
613
614
  display project configuration (app.json + eas.json)
614
615
  ```
615
616
 
616
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/config.ts)_
617
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/config.ts)_
617
618
 
618
619
  ## `eas credentials`
619
620
 
@@ -630,7 +631,7 @@ DESCRIPTION
630
631
  manage credentials
631
632
  ```
632
633
 
633
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/credentials.ts)_
634
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/credentials.ts)_
634
635
 
635
636
  ## `eas device:create`
636
637
 
@@ -644,7 +645,7 @@ DESCRIPTION
644
645
  register new Apple Devices to use for internal distribution
645
646
  ```
646
647
 
647
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/device/create.ts)_
648
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/device/create.ts)_
648
649
 
649
650
  ## `eas device:delete`
650
651
 
@@ -662,7 +663,7 @@ DESCRIPTION
662
663
  remove a registered device from your account
663
664
  ```
664
665
 
665
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/device/delete.ts)_
666
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/device/delete.ts)_
666
667
 
667
668
  ## `eas device:list`
668
669
 
@@ -679,7 +680,7 @@ DESCRIPTION
679
680
  list all registered devices for your account
680
681
  ```
681
682
 
682
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/device/list.ts)_
683
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/device/list.ts)_
683
684
 
684
685
  ## `eas device:view [UDID]`
685
686
 
@@ -693,7 +694,7 @@ DESCRIPTION
693
694
  view a device for your project
694
695
  ```
695
696
 
696
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/device/view.ts)_
697
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/device/view.ts)_
697
698
 
698
699
  ## `eas diagnostics`
699
700
 
@@ -707,11 +708,11 @@ DESCRIPTION
707
708
  display environment info
708
709
  ```
709
710
 
710
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/diagnostics.ts)_
711
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/diagnostics.ts)_
711
712
 
712
713
  ## `eas help [COMMAND]`
713
714
 
714
- Display help for eas.
715
+ display help for eas-cli
715
716
 
716
717
  ```
717
718
  USAGE
@@ -724,10 +725,10 @@ FLAGS
724
725
  -n, --nested-commands Include all nested commands in the output.
725
726
 
726
727
  DESCRIPTION
727
- Display help for eas.
728
+ display help for eas-cli
728
729
  ```
729
730
 
730
- _See code: [@expo/plugin-help](https://github.com/expo/oclif-plugin-help/blob/v5.2.0/src/commands/help.ts)_
731
+ _See code: [@expo/plugin-help](https://github.com/expo/oclif-plugin-help/blob/v5.3.0/src/commands/help.ts)_
731
732
 
732
733
  ## `eas init`
733
734
 
@@ -789,7 +790,7 @@ DESCRIPTION
789
790
  generate the local store configuration from the app stores
790
791
  ```
791
792
 
792
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/metadata/pull.ts)_
793
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/metadata/pull.ts)_
793
794
 
794
795
  ## `eas metadata:push`
795
796
 
@@ -806,7 +807,21 @@ DESCRIPTION
806
807
  sync the local store configuration to the app stores
807
808
  ```
808
809
 
809
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/metadata/push.ts)_
810
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/metadata/push.ts)_
811
+
812
+ ## `eas open`
813
+
814
+ open the project page in a web browser
815
+
816
+ ```
817
+ USAGE
818
+ $ eas open
819
+
820
+ DESCRIPTION
821
+ open the project page in a web browser
822
+ ```
823
+
824
+ _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/open.ts)_
810
825
 
811
826
  ## `eas project:info`
812
827
 
@@ -820,7 +835,7 @@ DESCRIPTION
820
835
  information about the current project
821
836
  ```
822
837
 
823
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/project/info.ts)_
838
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/project/info.ts)_
824
839
 
825
840
  ## `eas project:init`
826
841
 
@@ -837,7 +852,7 @@ ALIASES
837
852
  $ eas init
838
853
  ```
839
854
 
840
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/project/init.ts)_
855
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/project/init.ts)_
841
856
 
842
857
  ## `eas secret:create`
843
858
 
@@ -857,7 +872,7 @@ DESCRIPTION
857
872
  create an environment secret on the current project or owner account
858
873
  ```
859
874
 
860
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/secret/create.ts)_
875
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/secret/create.ts)_
861
876
 
862
877
  ## `eas secret:delete`
863
878
 
@@ -874,7 +889,7 @@ DESCRIPTION
874
889
  delete an environment secret by ID
875
890
  ```
876
891
 
877
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/secret/delete.ts)_
892
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/secret/delete.ts)_
878
893
 
879
894
  ## `eas secret:list`
880
895
 
@@ -888,7 +903,7 @@ DESCRIPTION
888
903
  list environment secrets available for your current app
889
904
  ```
890
905
 
891
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/secret/list.ts)_
906
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/secret/list.ts)_
892
907
 
893
908
  ## `eas submit`
894
909
 
@@ -918,7 +933,7 @@ ALIASES
918
933
  $ eas build:submit
919
934
  ```
920
935
 
921
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/submit.ts)_
936
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/submit.ts)_
922
937
 
923
938
  ## `eas update`
924
939
 
@@ -948,7 +963,7 @@ DESCRIPTION
948
963
  publish an update group
949
964
  ```
950
965
 
951
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/update/index.ts)_
966
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/update/index.ts)_
952
967
 
953
968
  ## `eas update:configure`
954
969
 
@@ -965,7 +980,7 @@ DESCRIPTION
965
980
  configure the project to support EAS Update
966
981
  ```
967
982
 
968
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/update/configure.ts)_
983
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/update/configure.ts)_
969
984
 
970
985
  ## `eas update:delete GROUPID`
971
986
 
@@ -985,7 +1000,7 @@ DESCRIPTION
985
1000
  delete all the updates in an update group
986
1001
  ```
987
1002
 
988
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/update/delete.ts)_
1003
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/update/delete.ts)_
989
1004
 
990
1005
  ## `eas update:list`
991
1006
 
@@ -1004,7 +1019,7 @@ DESCRIPTION
1004
1019
  view the recent updates for a branch
1005
1020
  ```
1006
1021
 
1007
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/update/list.ts)_
1022
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/update/list.ts)_
1008
1023
 
1009
1024
  ## `eas update:view GROUPID`
1010
1025
 
@@ -1024,7 +1039,7 @@ DESCRIPTION
1024
1039
  update group details
1025
1040
  ```
1026
1041
 
1027
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/update/view.ts)_
1042
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/update/view.ts)_
1028
1043
 
1029
1044
  ## `eas webhook:create`
1030
1045
 
@@ -1044,7 +1059,7 @@ DESCRIPTION
1044
1059
  create a webhook
1045
1060
  ```
1046
1061
 
1047
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/webhook/create.ts)_
1062
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/webhook/create.ts)_
1048
1063
 
1049
1064
  ## `eas webhook:delete [ID]`
1050
1065
 
@@ -1061,7 +1076,7 @@ DESCRIPTION
1061
1076
  delete a webhook
1062
1077
  ```
1063
1078
 
1064
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1079
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1065
1080
 
1066
1081
  ## `eas webhook:list`
1067
1082
 
@@ -1078,7 +1093,7 @@ DESCRIPTION
1078
1093
  list webhooks
1079
1094
  ```
1080
1095
 
1081
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/webhook/list.ts)_
1096
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/webhook/list.ts)_
1082
1097
 
1083
1098
  ## `eas webhook:update`
1084
1099
 
@@ -1099,7 +1114,7 @@ DESCRIPTION
1099
1114
  update a webhook
1100
1115
  ```
1101
1116
 
1102
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/webhook/update.ts)_
1117
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/webhook/update.ts)_
1103
1118
 
1104
1119
  ## `eas webhook:view ID`
1105
1120
 
@@ -1116,7 +1131,7 @@ DESCRIPTION
1116
1131
  view a webhook
1117
1132
  ```
1118
1133
 
1119
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/webhook/view.ts)_
1134
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.1.0/packages/eas-cli/src/commands/webhook/view.ts)_
1120
1135
 
1121
1136
  ## `eas whoami`
1122
1137
 
@@ -67,16 +67,19 @@ function renderPageOfBranches(currentPage, { json }) {
67
67
  wordWrap: true,
68
68
  });
69
69
  table.push(...currentPage.map(branch => {
70
- var _a, _b, _c, _d, _e;
70
+ var _a, _b;
71
+ const update = branch.updates[0];
71
72
  return [
72
73
  branch.name,
73
- (0, utils_1.formatUpdate)(branch.updates[0]),
74
- (_b = (_a = branch.updates[0]) === null || _a === void 0 ? void 0 : _a.runtimeVersion) !== null && _b !== void 0 ? _b : 'N/A',
75
- (_d = (_c = branch.updates[0]) === null || _c === void 0 ? void 0 : _c.group) !== null && _d !== void 0 ? _d : 'N/A',
76
- (0, utils_1.getPlatformsForGroup)({
77
- updates: branch.updates,
78
- group: (_e = branch.updates[0]) === null || _e === void 0 ? void 0 : _e.group,
79
- }),
74
+ (0, utils_1.formatUpdate)(update),
75
+ (_a = update === null || update === void 0 ? void 0 : update.runtimeVersion) !== null && _a !== void 0 ? _a : 'N/A',
76
+ (_b = update === null || update === void 0 ? void 0 : update.group) !== null && _b !== void 0 ? _b : 'N/A',
77
+ (update === null || update === void 0 ? void 0 : update.group)
78
+ ? (0, utils_1.getPlatformsForGroup)({
79
+ updates: branch.updates,
80
+ group: update.group,
81
+ })
82
+ : 'N/A',
80
83
  ];
81
84
  }));
82
85
  log_1.default.addNewLineIfNone();
@@ -17,7 +17,8 @@ function transformJob(job) {
17
17
  cache: job.cache,
18
18
  version: ((_a = job.version) === null || _a === void 0 ? void 0 : _a.versionCode) ? { versionCode: job.version.versionCode } : undefined,
19
19
  gradleCommand: job.gradleCommand,
20
- artifactPath: job.artifactPath,
20
+ applicationArchivePath: job.applicationArchivePath,
21
+ buildArtifactPaths: job.buildArtifactPaths,
21
22
  username: job.username,
22
23
  buildType: job.buildType && transformBuildType(job.buildType),
23
24
  developmentClient: job.developmentClient,
@@ -14,6 +14,7 @@ const cacheDefaults = {
14
14
  cacheDefaultPaths: true,
15
15
  };
16
16
  async function prepareJobAsync(ctx, jobData) {
17
+ var _a;
17
18
  const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
18
19
  const buildProfile = ctx.buildProfile;
19
20
  const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await (0, vcs_1.getVcsClient)().getRootPathAsync(), ctx.projectDir)) || '.';
@@ -59,7 +60,8 @@ async function prepareJobAsync(ctx, jobData) {
59
60
  updates: { channel: ctx.buildProfile.channel },
60
61
  developmentClient: buildProfile.developmentClient,
61
62
  gradleCommand: buildProfile.gradleCommand,
62
- artifactPath: buildProfile.artifactPath,
63
+ applicationArchivePath: (_a = buildProfile.applicationArchivePath) !== null && _a !== void 0 ? _a : buildProfile.artifactPath,
64
+ buildArtifactPaths: buildProfile.buildArtifactPaths,
63
65
  buildType,
64
66
  username,
65
67
  ...(ctx.android.versionCodeOverride && {
@@ -18,7 +18,8 @@ function transformJob(job) {
18
18
  version: ((_a = job.version) === null || _a === void 0 ? void 0 : _a.buildNumber) ? { buildNumber: job.version.buildNumber } : undefined,
19
19
  scheme: job.scheme,
20
20
  buildConfiguration: job.buildConfiguration,
21
- artifactPath: job.artifactPath,
21
+ applicationArchivePath: job.applicationArchivePath,
22
+ buildArtifactPaths: job.buildArtifactPaths,
22
23
  username: job.username,
23
24
  developmentClient: job.developmentClient,
24
25
  simulator: job.simulator,
@@ -14,6 +14,7 @@ const cacheDefaults = {
14
14
  cacheDefaultPaths: true,
15
15
  };
16
16
  async function prepareJobAsync(ctx, jobData) {
17
+ var _a;
17
18
  const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await (0, vcs_1.getVcsClient)().getRootPathAsync(), ctx.projectDir)) || '.';
18
19
  const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
19
20
  const buildCredentials = {};
@@ -52,7 +53,8 @@ async function prepareJobAsync(ctx, jobData) {
52
53
  simulator: ctx.buildProfile.simulator,
53
54
  scheme: jobData.buildScheme,
54
55
  buildConfiguration: ctx.buildProfile.buildConfiguration,
55
- artifactPath: ctx.buildProfile.artifactPath,
56
+ applicationArchivePath: (_a = ctx.buildProfile.applicationArchivePath) !== null && _a !== void 0 ? _a : ctx.buildProfile.artifactPath,
57
+ buildArtifactPaths: ctx.buildProfile.buildArtifactPaths,
56
58
  username,
57
59
  ...(ctx.ios.buildNumberOverride && {
58
60
  version: {
@@ -78,7 +78,7 @@ class BranchDelete extends EasCommand_1.default {
78
78
  }
79
79
  if (!jsonFlag) {
80
80
  log_1.default.addNewLineIfNone();
81
- log_1.default.warn(`You are about to permamently delete branch: "${name}" and all of the updates published on it.` +
81
+ log_1.default.warn(`You are about to permanently delete branch: "${name}" and all of the updates published on it.` +
82
82
  `\nThis action is irreversible.`);
83
83
  log_1.default.newLine();
84
84
  const confirmed = await (0, prompts_1.toggleConfirmAsync)({ message: 'Are you sure you wish to proceed?' });
@@ -1,15 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const eas_build_job_1 = require("@expo/eas-build-job");
5
+ const eas_json_1 = require("@expo/eas-json");
4
6
  const core_1 = require("@oclif/core");
7
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
+ const figures_1 = tslib_1.__importDefault(require("figures"));
9
+ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
5
10
  const path_1 = tslib_1.__importDefault(require("path"));
6
11
  const runBuildAndSubmit_1 = require("../../build/runBuildAndSubmit");
7
12
  const types_1 = require("../../build/types");
8
13
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
14
  const generated_1 = require("../../graphql/generated");
10
- const log_1 = tslib_1.__importDefault(require("../../log"));
15
+ const log_1 = tslib_1.__importStar(require("../../log"));
11
16
  const platform_1 = require("../../platform");
12
17
  const projectUtils_1 = require("../../project/projectUtils");
18
+ const prompts_1 = require("../../prompts");
19
+ const uniq_1 = tslib_1.__importDefault(require("../../utils/expodash/uniq"));
13
20
  const json_1 = require("../../utils/json");
14
21
  const statuspageService_1 = require("../../utils/statuspageService");
15
22
  class Build extends EasCommand_1.default {
@@ -20,6 +27,7 @@ class Build extends EasCommand_1.default {
20
27
  }
21
28
  const flags = this.sanitizeFlags(rawFlags);
22
29
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
30
+ await handleDeprecatedEasJsonAsync(projectDir, flags.nonInteractive);
23
31
  if (!flags.localBuildOptions.enable) {
24
32
  await (0, statuspageService_1.maybeWarnAboutEasOutagesAsync)(flags.autoSubmit
25
33
  ? [generated_1.StatuspageServiceName.EasBuild, generated_1.StatuspageServiceName.EasSubmit]
@@ -164,3 +172,49 @@ Build.flags = {
164
172
  description: 'A short message describing the build',
165
173
  }),
166
174
  };
175
+ async function handleDeprecatedEasJsonAsync(projectDir, nonInteractive) {
176
+ const reader = new eas_json_1.EasJsonReader(projectDir);
177
+ const profileNames = await reader.getBuildProfileNamesAsync();
178
+ const platformAndProfileNames = profileNames.flatMap(profileName => [
179
+ [eas_build_job_1.Platform.ANDROID, profileName],
180
+ [eas_build_job_1.Platform.IOS, profileName],
181
+ ]);
182
+ const deprecatedProfiles = [];
183
+ for (const [platform, profileName] of platformAndProfileNames) {
184
+ const buildProfile = await reader.getBuildProfileAsync(platform, profileName);
185
+ if (buildProfile.artifactPath) {
186
+ deprecatedProfiles.push([platform, profileName]);
187
+ }
188
+ }
189
+ if (deprecatedProfiles.length === 0) {
190
+ return;
191
+ }
192
+ const deprecatedProfileNames = (0, uniq_1.default)(deprecatedProfiles.map(([, profileName]) => profileName));
193
+ log_1.default.warn(`Some of your build profiles use deprecated field ${chalk_1.default.bold('artifactPath')}:`);
194
+ for (const profileName of deprecatedProfileNames) {
195
+ log_1.default.warn(`- ${profileName}`);
196
+ }
197
+ log_1.default.newLine();
198
+ if (nonInteractive) {
199
+ log_1.default.warn(`${figures_1.default.warning} Action required: rename ${chalk_1.default.bold('artifactPath')} to ${chalk_1.default.bold('applicationArchivePath')} in all of the build profiles listed above.`);
200
+ log_1.default.warn(`See ${(0, log_1.link)('https://docs.expo.dev/build-reference/eas-json/')} for more information.`);
201
+ log_1.default.warn(`This warning will become an error in a future EAS CLI release. This build will continue to use the ${chalk_1.default.bold('artifactPath')} setting.`);
202
+ return;
203
+ }
204
+ const rename = await (0, prompts_1.selectAsync)('Do you want us to handle renaming the field for you?', [
205
+ { title: 'Yes', value: true },
206
+ { title: 'No, I will edit eas.json manually (EAS CLI exits)', value: false },
207
+ ]);
208
+ if (!rename) {
209
+ core_1.Errors.exit(1);
210
+ }
211
+ const easJsonPath = eas_json_1.EasJsonReader.formatEasJsonPath(projectDir);
212
+ const easJson = await fs_extra_1.default.readJSON(easJsonPath);
213
+ for (const [platform, profileName] of deprecatedProfiles) {
214
+ easJson.build[profileName][platform].applicationArchivePath =
215
+ easJson.build[profileName][platform].artifactPath;
216
+ delete easJson.build[profileName][platform].artifactPath;
217
+ }
218
+ await fs_extra_1.default.writeFile(easJsonPath, `${JSON.stringify(easJson, null, 2)}\n`);
219
+ log_1.default.withTick('Updated eas.json');
220
+ }
@@ -46,7 +46,7 @@ class ChannelDelete extends EasCommand_1.default {
46
46
  }
47
47
  if (!nonInteractiveFlag) {
48
48
  log_1.default.addNewLineIfNone();
49
- log_1.default.warn(`You are about to permamently delete channel: "${name}".\nThis action is irreversible.`);
49
+ log_1.default.warn(`You are about to permanently delete channel: "${name}".\nThis action is irreversible.`);
50
50
  log_1.default.newLine();
51
51
  const confirmed = await (0, prompts_1.toggleConfirmAsync)({ message: 'Are you sure you wish to proceed?' });
52
52
  if (!confirmed) {
@@ -57,8 +57,9 @@ class DeviceDelete extends EasCommand_1.default {
57
57
  log_1.default.addNewLineIfNone();
58
58
  const removeAppleSpinner = (0, ora_1.ora)('Disabling devices on Apple').start();
59
59
  try {
60
- let realDevices = await apple_utils_1.Device.getAllIOSProfileDevicesAsync(context);
61
- realDevices = realDevices.filter(d => chosenDevices.map(cd => cd.identifier).includes(d.attributes.udid));
60
+ const chosenDeviceIdentifiers = chosenDevices.map(cd => cd.identifier);
61
+ const allDevices = await apple_utils_1.Device.getAsync(context);
62
+ const realDevices = allDevices.filter(d => chosenDeviceIdentifiers.includes(d.attributes.udid));
62
63
  for (const device of realDevices) {
63
64
  await device.updateAsync({ status: apple_utils_1.DeviceStatus.DISABLED });
64
65
  }