eas-cli 2.6.0 → 2.7.1

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 (49) hide show
  1. package/README.md +101 -50
  2. package/build/branch/queries.d.ts +8 -1
  3. package/build/branch/queries.js +50 -1
  4. package/build/build/android/build.js +1 -0
  5. package/build/build/ios/build.js +1 -0
  6. package/build/build/local.js +1 -1
  7. package/build/build/validate.d.ts +1 -0
  8. package/build/build/validate.js +121 -1
  9. package/build/channel/queries.d.ts +11 -0
  10. package/build/channel/queries.js +46 -1
  11. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +1 -1
  12. package/build/commands/branch/create.d.ts +0 -3
  13. package/build/commands/branch/create.js +2 -27
  14. package/build/commands/channel/create.d.ts +0 -7
  15. package/build/commands/channel/create.js +4 -31
  16. package/build/commands/credentials.d.ts +1 -0
  17. package/build/commands/credentials.js +3 -2
  18. package/build/commands/update/configure.d.ts +1 -0
  19. package/build/commands/update/configure.js +10 -218
  20. package/build/commands/update/index.d.ts +3 -9
  21. package/build/commands/update/index.js +136 -143
  22. package/build/credentials/manager/HelperActions.d.ts +2 -0
  23. package/build/credentials/manager/ManageAndroid.js +8 -1
  24. package/build/credentials/manager/ManageIos.js +8 -1
  25. package/build/credentials/manager/SelectPlatform.d.ts +3 -1
  26. package/build/credentials/manager/SelectPlatform.js +2 -1
  27. package/build/graphql/generated.d.ts +26 -17
  28. package/build/graphql/types/Build.js +1 -0
  29. package/build/log.d.ts +1 -0
  30. package/build/log.js +3 -0
  31. package/build/project/projectUtils.d.ts +3 -1
  32. package/build/project/projectUtils.js +10 -3
  33. package/build/project/publish.d.ts +13 -10
  34. package/build/project/publish.js +68 -38
  35. package/build/project/workflow.d.ts +1 -0
  36. package/build/project/workflow.js +9 -1
  37. package/build/prompts.js +3 -1
  38. package/build/submit/ArchiveSource.js +12 -16
  39. package/build/update/configure.d.ts +22 -0
  40. package/build/update/configure.js +200 -0
  41. package/build/utils/expoCli.d.ts +6 -0
  42. package/build/utils/expoCli.js +46 -1
  43. package/build/utils/expodash/memoize.d.ts +2 -0
  44. package/build/utils/expodash/memoize.js +17 -0
  45. package/build/utils/image.d.ts +6 -0
  46. package/build/utils/image.js +107 -0
  47. package/build/utils/statuspageService.js +1 -0
  48. package/oclif.manifest.json +1 -1
  49. package/package.json +8 -4
package/README.md CHANGED
@@ -95,6 +95,8 @@ eas --help COMMAND
95
95
  * [`eas open`](#eas-open)
96
96
  * [`eas project:info`](#eas-projectinfo)
97
97
  * [`eas project:init`](#eas-projectinit)
98
+ * [`eas run`](#eas-run)
99
+ * [`eas run:run`](#eas-runrun)
98
100
  * [`eas secret:create`](#eas-secretcreate)
99
101
  * [`eas secret:delete`](#eas-secretdelete)
100
102
  * [`eas secret:list`](#eas-secretlist)
@@ -127,7 +129,7 @@ ALIASES
127
129
  $ eas login
128
130
  ```
129
131
 
130
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/account/login.ts)_
132
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/account/login.ts)_
131
133
 
132
134
  ## `eas account:logout`
133
135
 
@@ -144,7 +146,7 @@ ALIASES
144
146
  $ eas logout
145
147
  ```
146
148
 
147
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/account/logout.ts)_
149
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/account/logout.ts)_
148
150
 
149
151
  ## `eas account:view`
150
152
 
@@ -161,7 +163,7 @@ ALIASES
161
163
  $ eas whoami
162
164
  ```
163
165
 
164
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/account/view.ts)_
166
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/account/view.ts)_
165
167
 
166
168
  ## `eas analytics [STATUS]`
167
169
 
@@ -175,7 +177,7 @@ DESCRIPTION
175
177
  display or change analytics settings
176
178
  ```
177
179
 
178
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/analytics.ts)_
180
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/analytics.ts)_
179
181
 
180
182
  ## `eas autocomplete [SHELL]`
181
183
 
@@ -225,7 +227,7 @@ DESCRIPTION
225
227
  create a branch
226
228
  ```
227
229
 
228
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/branch/create.ts)_
230
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/branch/create.ts)_
229
231
 
230
232
  ## `eas branch:delete [NAME]`
231
233
 
@@ -246,7 +248,7 @@ DESCRIPTION
246
248
  delete a branch
247
249
  ```
248
250
 
249
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/branch/delete.ts)_
251
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/branch/delete.ts)_
250
252
 
251
253
  ## `eas branch:list`
252
254
 
@@ -266,7 +268,7 @@ DESCRIPTION
266
268
  list all branches
267
269
  ```
268
270
 
269
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/branch/list.ts)_
271
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/branch/list.ts)_
270
272
 
271
273
  ## `eas branch:rename`
272
274
 
@@ -286,7 +288,7 @@ DESCRIPTION
286
288
  rename a branch
287
289
  ```
288
290
 
289
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/branch/rename.ts)_
291
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/branch/rename.ts)_
290
292
 
291
293
  ## `eas branch:view [NAME]`
292
294
 
@@ -309,7 +311,7 @@ DESCRIPTION
309
311
  view a branch
310
312
  ```
311
313
 
312
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/branch/view.ts)_
314
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/branch/view.ts)_
313
315
 
314
316
  ## `eas build`
315
317
 
@@ -339,7 +341,7 @@ DESCRIPTION
339
341
  start a build
340
342
  ```
341
343
 
342
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/index.ts)_
344
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/index.ts)_
343
345
 
344
346
  ## `eas build:cancel [BUILD_ID]`
345
347
 
@@ -356,7 +358,7 @@ DESCRIPTION
356
358
  cancel a build
357
359
  ```
358
360
 
359
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/cancel.ts)_
361
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/cancel.ts)_
360
362
 
361
363
  ## `eas build:configure`
362
364
 
@@ -373,7 +375,7 @@ DESCRIPTION
373
375
  configure the project to support EAS Build
374
376
  ```
375
377
 
376
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/configure.ts)_
378
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/configure.ts)_
377
379
 
378
380
  ## `eas build:inspect`
379
381
 
@@ -408,7 +410,7 @@ DESCRIPTION
408
410
  inspect the state of the project at specific build stages, useful for troubleshooting
409
411
  ```
410
412
 
411
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/inspect.ts)_
413
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/inspect.ts)_
412
414
 
413
415
  ## `eas build:list`
414
416
 
@@ -445,7 +447,7 @@ DESCRIPTION
445
447
  list all builds for your project
446
448
  ```
447
449
 
448
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/list.ts)_
450
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/list.ts)_
449
451
 
450
452
  ## `eas build:submit`
451
453
 
@@ -492,7 +494,7 @@ DESCRIPTION
492
494
  Update version of an app.
493
495
  ```
494
496
 
495
- _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/version/set.ts)_
497
+ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/version/set.ts)_
496
498
 
497
499
  ## `eas build:version:sync`
498
500
 
@@ -511,7 +513,7 @@ DESCRIPTION
511
513
  Update a version in native code with a value stored on EAS servers
512
514
  ```
513
515
 
514
- _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/version/sync.ts)_
516
+ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/version/sync.ts)_
515
517
 
516
518
  ## `eas build:view [BUILD_ID]`
517
519
 
@@ -528,7 +530,7 @@ DESCRIPTION
528
530
  view a build for your project
529
531
  ```
530
532
 
531
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/build/view.ts)_
533
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/build/view.ts)_
532
534
 
533
535
  ## `eas channel:create [NAME]`
534
536
 
@@ -549,7 +551,7 @@ DESCRIPTION
549
551
  create a channel
550
552
  ```
551
553
 
552
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/channel/create.ts)_
554
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/channel/create.ts)_
553
555
 
554
556
  ## `eas channel:edit [NAME]`
555
557
 
@@ -571,7 +573,7 @@ DESCRIPTION
571
573
  point a channel at a new branch
572
574
  ```
573
575
 
574
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/channel/edit.ts)_
576
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/channel/edit.ts)_
575
577
 
576
578
  ## `eas channel:list`
577
579
 
@@ -591,7 +593,7 @@ DESCRIPTION
591
593
  list all channels
592
594
  ```
593
595
 
594
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/channel/list.ts)_
596
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/channel/list.ts)_
595
597
 
596
598
  ## `eas channel:view [NAME]`
597
599
 
@@ -614,7 +616,7 @@ DESCRIPTION
614
616
  view a channel
615
617
  ```
616
618
 
617
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/channel/view.ts)_
619
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/channel/view.ts)_
618
620
 
619
621
  ## `eas config`
620
622
 
@@ -633,7 +635,7 @@ DESCRIPTION
633
635
  display project configuration (app.json + eas.json)
634
636
  ```
635
637
 
636
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/config.ts)_
638
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/config.ts)_
637
639
 
638
640
  ## `eas credentials`
639
641
 
@@ -650,7 +652,7 @@ DESCRIPTION
650
652
  manage credentials
651
653
  ```
652
654
 
653
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/credentials.ts)_
655
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/credentials.ts)_
654
656
 
655
657
  ## `eas device:create`
656
658
 
@@ -664,7 +666,7 @@ DESCRIPTION
664
666
  register new Apple Devices to use for internal distribution
665
667
  ```
666
668
 
667
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/device/create.ts)_
669
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/device/create.ts)_
668
670
 
669
671
  ## `eas device:delete`
670
672
 
@@ -684,7 +686,7 @@ DESCRIPTION
684
686
  remove a registered device from your account
685
687
  ```
686
688
 
687
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/device/delete.ts)_
689
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/device/delete.ts)_
688
690
 
689
691
  ## `eas device:list`
690
692
 
@@ -705,7 +707,7 @@ DESCRIPTION
705
707
  list all registered devices for your account
706
708
  ```
707
709
 
708
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/device/list.ts)_
710
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/device/list.ts)_
709
711
 
710
712
  ## `eas device:view [UDID]`
711
713
 
@@ -719,7 +721,7 @@ DESCRIPTION
719
721
  view a device for your project
720
722
  ```
721
723
 
722
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/device/view.ts)_
724
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/device/view.ts)_
723
725
 
724
726
  ## `eas diagnostics`
725
727
 
@@ -733,7 +735,7 @@ DESCRIPTION
733
735
  display environment info
734
736
  ```
735
737
 
736
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/diagnostics.ts)_
738
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/diagnostics.ts)_
737
739
 
738
740
  ## `eas help [COMMAND]`
739
741
 
@@ -821,7 +823,7 @@ DESCRIPTION
821
823
  validate the local store configuration
822
824
  ```
823
825
 
824
- _See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/metadata/lint.ts)_
826
+ _See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/metadata/lint.ts)_
825
827
 
826
828
  ## `eas metadata:pull`
827
829
 
@@ -838,7 +840,7 @@ DESCRIPTION
838
840
  generate the local store configuration from the app stores
839
841
  ```
840
842
 
841
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/metadata/pull.ts)_
843
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/metadata/pull.ts)_
842
844
 
843
845
  ## `eas metadata:push`
844
846
 
@@ -855,7 +857,7 @@ DESCRIPTION
855
857
  sync the local store configuration to the app stores
856
858
  ```
857
859
 
858
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/metadata/push.ts)_
860
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/metadata/push.ts)_
859
861
 
860
862
  ## `eas open`
861
863
 
@@ -869,7 +871,7 @@ DESCRIPTION
869
871
  open the project page in a web browser
870
872
  ```
871
873
 
872
- _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/open.ts)_
874
+ _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/open.ts)_
873
875
 
874
876
  ## `eas project:info`
875
877
 
@@ -883,7 +885,7 @@ DESCRIPTION
883
885
  information about the current project
884
886
  ```
885
887
 
886
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/project/info.ts)_
888
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/project/info.ts)_
887
889
 
888
890
  ## `eas project:init`
889
891
 
@@ -905,7 +907,55 @@ ALIASES
905
907
  $ eas init
906
908
  ```
907
909
 
908
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/project/init.ts)_
910
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/project/init.ts)_
911
+
912
+ ## `eas run`
913
+
914
+ run simulator build
915
+
916
+ ```
917
+ USAGE
918
+ $ eas run [--latest | --id <value> | --path <value> | --url <value>] [-p android|ios|all] [--offset
919
+ <value>] [--limit <value>]
920
+
921
+ FLAGS
922
+ -p, --platform=(android|ios|all)
923
+ --id=<value> ID of the simulator build to run
924
+ --latest Run the latest simulator build for specified platform
925
+ --limit=<value> The number of items to fetch each query. Defaults to 50 and is capped at 100.
926
+ --offset=<value> Start queries from specified index. Use for paginating results. Defaults to 0.
927
+ --path=<value> Path to the simulator build file file
928
+ --url=<value> Simulator build archive url
929
+
930
+ DESCRIPTION
931
+ run simulator build
932
+ ```
933
+
934
+ _See code: [src/commands/run/index.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/run/index.ts)_
935
+
936
+ ## `eas run:run`
937
+
938
+ run simulator build
939
+
940
+ ```
941
+ USAGE
942
+ $ eas run:run [--latest | --id <value> | --path <value> | --url <value>] [-p android|ios|all] [--offset
943
+ <value>] [--limit <value>]
944
+
945
+ FLAGS
946
+ -p, --platform=(android|ios|all)
947
+ --id=<value> ID of the simulator build to run
948
+ --latest Run the latest simulator build for specified platform
949
+ --limit=<value> The number of items to fetch each query. Defaults to 50 and is capped at 100.
950
+ --offset=<value> Start queries from specified index. Use for paginating results. Defaults to 0.
951
+ --path=<value> Path to the simulator build file file
952
+ --url=<value> Simulator build archive url
953
+
954
+ DESCRIPTION
955
+ run simulator build
956
+ ```
957
+
958
+ _See code: [src/commands/run/run.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/run/run.ts)_
909
959
 
910
960
  ## `eas secret:create`
911
961
 
@@ -928,7 +978,7 @@ DESCRIPTION
928
978
  create an environment secret on the current project or owner account
929
979
  ```
930
980
 
931
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/secret/create.ts)_
981
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/secret/create.ts)_
932
982
 
933
983
  ## `eas secret:delete`
934
984
 
@@ -946,7 +996,7 @@ DESCRIPTION
946
996
  delete an environment secret by ID
947
997
  ```
948
998
 
949
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/secret/delete.ts)_
999
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/secret/delete.ts)_
950
1000
 
951
1001
  ## `eas secret:list`
952
1002
 
@@ -960,7 +1010,7 @@ DESCRIPTION
960
1010
  list environment secrets available for your current app
961
1011
  ```
962
1012
 
963
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/secret/list.ts)_
1013
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/secret/list.ts)_
964
1014
 
965
1015
  ## `eas secret:push`
966
1016
 
@@ -980,7 +1030,7 @@ DESCRIPTION
980
1030
  read environment secrets from env file and store on the server
981
1031
  ```
982
1032
 
983
- _See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/secret/push.ts)_
1033
+ _See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/secret/push.ts)_
984
1034
 
985
1035
  ## `eas submit`
986
1036
 
@@ -1010,7 +1060,7 @@ ALIASES
1010
1060
  $ eas build:submit
1011
1061
  ```
1012
1062
 
1013
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/submit.ts)_
1063
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/submit.ts)_
1014
1064
 
1015
1065
  ## `eas update`
1016
1066
 
@@ -1040,7 +1090,7 @@ DESCRIPTION
1040
1090
  publish an update group
1041
1091
  ```
1042
1092
 
1043
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/update/index.ts)_
1093
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/update/index.ts)_
1044
1094
 
1045
1095
  ## `eas update:configure`
1046
1096
 
@@ -1048,16 +1098,17 @@ configure the project to support EAS Update
1048
1098
 
1049
1099
  ```
1050
1100
  USAGE
1051
- $ eas update:configure [-p android|ios|all]
1101
+ $ eas update:configure [-p android|ios|all] [--non-interactive]
1052
1102
 
1053
1103
  FLAGS
1054
1104
  -p, --platform=(android|ios|all) [default: all] Platform to configure
1105
+ --non-interactive Run the command in non-interactive mode.
1055
1106
 
1056
1107
  DESCRIPTION
1057
1108
  configure the project to support EAS Update
1058
1109
  ```
1059
1110
 
1060
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/update/configure.ts)_
1111
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/update/configure.ts)_
1061
1112
 
1062
1113
  ## `eas update:delete GROUPID`
1063
1114
 
@@ -1078,7 +1129,7 @@ DESCRIPTION
1078
1129
  delete all the updates in an update group
1079
1130
  ```
1080
1131
 
1081
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/update/delete.ts)_
1132
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/update/delete.ts)_
1082
1133
 
1083
1134
  ## `eas update:list`
1084
1135
 
@@ -1100,7 +1151,7 @@ DESCRIPTION
1100
1151
  view the recent updates
1101
1152
  ```
1102
1153
 
1103
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/update/list.ts)_
1154
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/update/list.ts)_
1104
1155
 
1105
1156
  ## `eas update:view GROUPID`
1106
1157
 
@@ -1120,7 +1171,7 @@ DESCRIPTION
1120
1171
  update group details
1121
1172
  ```
1122
1173
 
1123
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/update/view.ts)_
1174
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/update/view.ts)_
1124
1175
 
1125
1176
  ## `eas webhook:create`
1126
1177
 
@@ -1141,7 +1192,7 @@ DESCRIPTION
1141
1192
  create a webhook
1142
1193
  ```
1143
1194
 
1144
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/webhook/create.ts)_
1195
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/webhook/create.ts)_
1145
1196
 
1146
1197
  ## `eas webhook:delete [ID]`
1147
1198
 
@@ -1161,7 +1212,7 @@ DESCRIPTION
1161
1212
  delete a webhook
1162
1213
  ```
1163
1214
 
1164
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1215
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/webhook/delete.ts)_
1165
1216
 
1166
1217
  ## `eas webhook:list`
1167
1218
 
@@ -1178,7 +1229,7 @@ DESCRIPTION
1178
1229
  list webhooks
1179
1230
  ```
1180
1231
 
1181
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/webhook/list.ts)_
1232
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/webhook/list.ts)_
1182
1233
 
1183
1234
  ## `eas webhook:update`
1184
1235
 
@@ -1200,7 +1251,7 @@ DESCRIPTION
1200
1251
  update a webhook
1201
1252
  ```
1202
1253
 
1203
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/webhook/update.ts)_
1254
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/webhook/update.ts)_
1204
1255
 
1205
1256
  ## `eas webhook:view ID`
1206
1257
 
@@ -1217,7 +1268,7 @@ DESCRIPTION
1217
1268
  view a webhook
1218
1269
  ```
1219
1270
 
1220
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.6.0/packages/eas-cli/src/commands/webhook/view.ts)_
1271
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.7.1/packages/eas-cli/src/commands/webhook/view.ts)_
1221
1272
 
1222
1273
  ## `eas whoami`
1223
1274
 
@@ -1,6 +1,6 @@
1
1
  import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
2
2
  import { PaginatedQueryOptions } from '../commandUtils/pagination';
3
- import { UpdateBranchFragment } from '../graphql/generated';
3
+ import { CreateUpdateBranchForAppMutationVariables, UpdateBranch, UpdateBranchFragment } from '../graphql/generated';
4
4
  export declare const BRANCHES_LIMIT = 50;
5
5
  export declare function selectBranchOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, promptTitle, displayTextForListItem, paginatedQueryOptions, }: {
6
6
  projectId: string;
@@ -12,3 +12,10 @@ export declare function listAndRenderBranchesOnAppAsync(graphqlClient: ExpoGraph
12
12
  projectId: string;
13
13
  paginatedQueryOptions: PaginatedQueryOptions;
14
14
  }): Promise<void>;
15
+ export declare function createUpdateBranchOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, name }: CreateUpdateBranchForAppMutationVariables): Promise<Pick<UpdateBranch, 'id' | 'name'>>;
16
+ export declare function ensureBranchExistsAsync(graphqlClient: ExpoGraphqlClient, { appId, branchName, }: {
17
+ appId: string;
18
+ branchName: string;
19
+ }): Promise<{
20
+ branchId: string;
21
+ }>;
@@ -1,13 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listAndRenderBranchesOnAppAsync = exports.selectBranchOnAppAsync = exports.BRANCHES_LIMIT = void 0;
3
+ exports.ensureBranchExistsAsync = exports.createUpdateBranchOnAppAsync = exports.listAndRenderBranchesOnAppAsync = exports.selectBranchOnAppAsync = exports.BRANCHES_LIMIT = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
+ const client_1 = require("../graphql/client");
6
8
  const BranchQuery_1 = require("../graphql/queries/BranchQuery");
7
9
  const log_1 = tslib_1.__importDefault(require("../log"));
8
10
  const utils_1 = require("../update/utils");
9
11
  const json_1 = require("../utils/json");
10
12
  const queries_1 = require("../utils/queries");
13
+ const utils_2 = require("./utils");
11
14
  exports.BRANCHES_LIMIT = 50;
12
15
  async function selectBranchOnAppAsync(graphqlClient, { projectId, promptTitle, displayTextForListItem, paginatedQueryOptions, }) {
13
16
  var _a;
@@ -69,3 +72,49 @@ function renderPageOfBranches(currentPage, { json }) {
69
72
  .join(`\n\n${chalk_1.default.dim('———')}\n\n`));
70
73
  }
71
74
  }
75
+ async function createUpdateBranchOnAppAsync(graphqlClient, { appId, name }) {
76
+ const result = await (0, client_1.withErrorHandlingAsync)(graphqlClient
77
+ .mutation((0, graphql_tag_1.default) `
78
+ mutation CreateUpdateBranchForApp($appId: ID!, $name: String!) {
79
+ updateBranch {
80
+ createUpdateBranchForApp(appId: $appId, name: $name) {
81
+ id
82
+ name
83
+ }
84
+ }
85
+ }
86
+ `, {
87
+ appId,
88
+ name,
89
+ })
90
+ .toPromise());
91
+ const newBranch = result.updateBranch.createUpdateBranchForApp;
92
+ if (!newBranch) {
93
+ throw new Error(`Could not create branch ${name}.`);
94
+ }
95
+ return newBranch;
96
+ }
97
+ exports.createUpdateBranchOnAppAsync = createUpdateBranchOnAppAsync;
98
+ async function ensureBranchExistsAsync(graphqlClient, { appId, branchName, }) {
99
+ try {
100
+ const updateBranch = await BranchQuery_1.BranchQuery.getBranchByNameAsync(graphqlClient, {
101
+ appId,
102
+ name: branchName,
103
+ });
104
+ const { id } = updateBranch;
105
+ return { branchId: id };
106
+ }
107
+ catch (error) {
108
+ if (error instanceof utils_2.BranchNotFoundError) {
109
+ const newUpdateBranch = await createUpdateBranchOnAppAsync(graphqlClient, {
110
+ appId,
111
+ name: branchName,
112
+ });
113
+ return { branchId: newUpdateBranch.id };
114
+ }
115
+ else {
116
+ throw error;
117
+ }
118
+ }
119
+ }
120
+ exports.ensureBranchExistsAsync = ensureBranchExistsAsync;
@@ -36,6 +36,7 @@ This means that it will most likely produce an AAB and you will not be able to i
36
36
  }
37
37
  (0, validate_1.checkNodeEnvVariable)(ctx);
38
38
  await (0, validate_1.checkGoogleServicesFileAsync)(ctx);
39
+ await (0, validate_1.validatePNGsForManagedProjectAsync)(ctx);
39
40
  const gradleContext = await (0, gradle_1.resolveGradleBuildContextAsync)(ctx.projectDir, buildProfile);
40
41
  if (ctx.workflow === eas_build_job_1.Workflow.MANAGED) {
41
42
  await (0, applicationId_1.ensureApplicationIdIsDefinedForManagedProjectAsync)(ctx.projectDir, ctx.exp, ctx.user);
@@ -23,6 +23,7 @@ async function createIosContextAsync(ctx) {
23
23
  }
24
24
  (0, validate_1.checkNodeEnvVariable)(ctx);
25
25
  await (0, validate_1.checkGoogleServicesFileAsync)(ctx);
26
+ await (0, validate_1.validatePNGsForManagedProjectAsync)(ctx);
26
27
  const xcodeBuildContext = await (0, scheme_1.resolveXcodeBuildContextAsync)({
27
28
  projectDir: ctx.projectDir,
28
29
  nonInteractive: ctx.nonInteractive,
@@ -6,7 +6,7 @@ const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
6
  const semver_1 = tslib_1.__importDefault(require("semver"));
7
7
  const ora_1 = require("../ora");
8
8
  const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin';
9
- const PLUGIN_PACKAGE_VERSION = '0.0.115';
9
+ const PLUGIN_PACKAGE_VERSION = '0.0.119';
10
10
  async function runLocalBuildAsync(job, metadata, options) {
11
11
  var _a;
12
12
  const { command, args } = await getCommandAndArgsAsync(job, metadata);
@@ -2,3 +2,4 @@ import { Platform } from '@expo/eas-build-job';
2
2
  import { CommonContext } from './context';
3
3
  export declare function checkNodeEnvVariable(ctx: CommonContext<Platform>): void;
4
4
  export declare function checkGoogleServicesFileAsync<T extends Platform>(ctx: CommonContext<T>): Promise<void>;
5
+ export declare function validatePNGsForManagedProjectAsync<T extends Platform>(ctx: CommonContext<T>): Promise<void>;