eas-cli 1.1.1 → 1.2.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 (42) hide show
  1. package/README.md +68 -76
  2. package/build/build/createContext.js +1 -0
  3. package/build/build/ios/graphql.js +0 -1
  4. package/build/commandUtils/EasCommand.d.ts +2 -0
  5. package/build/commandUtils/EasCommand.js +44 -3
  6. package/build/commands/build/index.d.ts +2 -1
  7. package/build/commands/build/index.js +36 -18
  8. package/build/commands/submit.d.ts +2 -1
  9. package/build/commands/submit.js +28 -14
  10. package/build/commands/update/index.js +3 -0
  11. package/build/credentials/android/api/GraphqlClient.js +1 -1
  12. package/build/credentials/context.d.ts +3 -0
  13. package/build/credentials/context.js +1 -0
  14. package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -0
  15. package/build/credentials/ios/IosCredentialsProvider.js +33 -5
  16. package/build/credentials/ios/api/GraphqlClient.js +1 -1
  17. package/build/credentials/ios/appstore/bundleIdCapabilities.js +176 -15
  18. package/build/credentials/manager/ManageAndroid.js +2 -8
  19. package/build/credentials/manager/ManageIos.js +2 -4
  20. package/build/graphql/generated.d.ts +191 -39
  21. package/build/graphql/generated.js +39 -1
  22. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.d.ts +1 -1
  23. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.js +2 -2
  24. package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
  25. package/build/graphql/queries/EnvironmentSecretsQuery.js +2 -2
  26. package/build/graphql/queries/StatuspageServiceQuery.d.ts +4 -0
  27. package/build/graphql/queries/StatuspageServiceQuery.js +28 -0
  28. package/build/graphql/types/StatuspageService.d.ts +1 -0
  29. package/build/graphql/types/StatuspageService.js +19 -0
  30. package/build/project/ensureProjectExists.d.ts +0 -7
  31. package/build/project/ensureProjectExists.js +4 -14
  32. package/build/project/projectUtils.d.ts +0 -1
  33. package/build/project/projectUtils.js +9 -29
  34. package/build/submit/android/AndroidSubmitter.js +1 -1
  35. package/build/submit/submit.js +2 -2
  36. package/build/submit/utils/errors.js +2 -0
  37. package/build/utils/statuspageService.d.ts +2 -0
  38. package/build/utils/statuspageService.js +41 -0
  39. package/oclif.manifest.json +1 -1
  40. package/package.json +4 -4
  41. package/build/graphql/queries/ProjectQuery.d.ts +0 -6
  42. package/build/graphql/queries/ProjectQuery.js +0 -24
package/README.md CHANGED
@@ -19,6 +19,28 @@ npm install -g eas-cli
19
19
  yarn global add eas-cli
20
20
  ```
21
21
 
22
+ ## Enforcing eas-cli version for your project
23
+
24
+ If you want to enforce the `eas-cli` version for your project, use the `"cli.version"` field in **eas.json**. Installing `eas-cli` to your project dependencies is strongly discouraged because it may cause dependency conflicts that are difficult to debug.
25
+
26
+ An example of **eas.json** that enforces `eas-cli` in version `1.0.0` or newer:
27
+
28
+ ```json
29
+ {
30
+ "cli": {
31
+ "version": ">=1.0.0"
32
+ },
33
+ "build": {
34
+ // build profiles
35
+ }
36
+ "submit": {
37
+ // submit profiles
38
+ }
39
+ }
40
+ ```
41
+
42
+ Learn more: https://docs.expo.dev/build-reference/eas-json/
43
+
22
44
  # Usage
23
45
 
24
46
  ```sh
@@ -58,13 +80,11 @@ eas --help COMMAND
58
80
  * [`eas channel:view [NAME]`](#eas-channelview-name)
59
81
  * [`eas config`](#eas-config)
60
82
  * [`eas credentials`](#eas-credentials)
61
- * [`eas database:create`](#eas-databasecreate)
62
83
  * [`eas device:create`](#eas-devicecreate)
63
84
  * [`eas device:delete`](#eas-devicedelete)
64
85
  * [`eas device:list`](#eas-devicelist)
65
86
  * [`eas device:view [UDID]`](#eas-deviceview-udid)
66
87
  * [`eas diagnostics`](#eas-diagnostics)
67
- * [`eas functions:start`](#eas-functionsstart)
68
88
  * [`eas help [COMMAND]`](#eas-help-command)
69
89
  * [`eas init`](#eas-init)
70
90
  * [`eas login`](#eas-login)
@@ -104,7 +124,7 @@ ALIASES
104
124
  $ eas login
105
125
  ```
106
126
 
107
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/account/login.ts)_
127
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/login.ts)_
108
128
 
109
129
  ## `eas account:logout`
110
130
 
@@ -121,7 +141,7 @@ ALIASES
121
141
  $ eas logout
122
142
  ```
123
143
 
124
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/account/logout.ts)_
144
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/logout.ts)_
125
145
 
126
146
  ## `eas account:view`
127
147
 
@@ -138,7 +158,7 @@ ALIASES
138
158
  $ eas whoami
139
159
  ```
140
160
 
141
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/account/view.ts)_
161
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/view.ts)_
142
162
 
143
163
  ## `eas analytics [STATUS]`
144
164
 
@@ -152,7 +172,7 @@ DESCRIPTION
152
172
  display or change analytics settings
153
173
  ```
154
174
 
155
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/analytics.ts)_
175
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/analytics.ts)_
156
176
 
157
177
  ## `eas autocomplete [SHELL]`
158
178
 
@@ -201,7 +221,7 @@ DESCRIPTION
201
221
  create a branch
202
222
  ```
203
223
 
204
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/branch/create.ts)_
224
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/create.ts)_
205
225
 
206
226
  ## `eas branch:delete [NAME]`
207
227
 
@@ -221,7 +241,7 @@ DESCRIPTION
221
241
  delete a branch
222
242
  ```
223
243
 
224
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/branch/delete.ts)_
244
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/delete.ts)_
225
245
 
226
246
  ## `eas branch:list`
227
247
 
@@ -242,7 +262,7 @@ DESCRIPTION
242
262
  list all branches
243
263
  ```
244
264
 
245
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/branch/list.ts)_
265
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/list.ts)_
246
266
 
247
267
  ## `eas branch:rename`
248
268
 
@@ -261,7 +281,7 @@ DESCRIPTION
261
281
  rename a branch
262
282
  ```
263
283
 
264
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/branch/rename.ts)_
284
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/rename.ts)_
265
285
 
266
286
  ## `eas branch:view [NAME]`
267
287
 
@@ -285,7 +305,7 @@ DESCRIPTION
285
305
  view a branch
286
306
  ```
287
307
 
288
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/branch/view.ts)_
308
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/view.ts)_
289
309
 
290
310
  ## `eas build`
291
311
 
@@ -315,7 +335,7 @@ DESCRIPTION
315
335
  start a build
316
336
  ```
317
337
 
318
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/index.ts)_
338
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/index.ts)_
319
339
 
320
340
  ## `eas build:cancel [BUILD_ID]`
321
341
 
@@ -329,7 +349,7 @@ DESCRIPTION
329
349
  cancel a build
330
350
  ```
331
351
 
332
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/cancel.ts)_
352
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/cancel.ts)_
333
353
 
334
354
  ## `eas build:configure`
335
355
 
@@ -346,7 +366,7 @@ DESCRIPTION
346
366
  configure the project to support EAS Build
347
367
  ```
348
368
 
349
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/configure.ts)_
369
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/configure.ts)_
350
370
 
351
371
  ## `eas build:inspect`
352
372
 
@@ -381,7 +401,7 @@ DESCRIPTION
381
401
  inspect the state of the project at specific build stages, useful for troubleshooting
382
402
  ```
383
403
 
384
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/inspect.ts)_
404
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/inspect.ts)_
385
405
 
386
406
  ## `eas build:list`
387
407
 
@@ -414,7 +434,7 @@ DESCRIPTION
414
434
  list all builds for your project
415
435
  ```
416
436
 
417
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/list.ts)_
437
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/list.ts)_
418
438
 
419
439
  ## `eas build:submit`
420
440
 
@@ -461,7 +481,7 @@ DESCRIPTION
461
481
  Update version of an app.
462
482
  ```
463
483
 
464
- _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/version/set.ts)_
484
+ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/version/set.ts)_
465
485
 
466
486
  ## `eas build:version:sync`
467
487
 
@@ -480,7 +500,7 @@ DESCRIPTION
480
500
  Update a version in native code with a value stored on EAS servers
481
501
  ```
482
502
 
483
- _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/version/sync.ts)_
503
+ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/version/sync.ts)_
484
504
 
485
505
  ## `eas build:view [BUILD_ID]`
486
506
 
@@ -497,7 +517,7 @@ DESCRIPTION
497
517
  view a build for your project
498
518
  ```
499
519
 
500
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/build/view.ts)_
520
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/view.ts)_
501
521
 
502
522
  ## `eas channel:create [NAME]`
503
523
 
@@ -517,7 +537,7 @@ DESCRIPTION
517
537
  create a channel
518
538
  ```
519
539
 
520
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/channel/create.ts)_
540
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/create.ts)_
521
541
 
522
542
  ## `eas channel:edit [NAME]`
523
543
 
@@ -538,7 +558,7 @@ DESCRIPTION
538
558
  point a channel at a new branch
539
559
  ```
540
560
 
541
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/channel/edit.ts)_
561
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/edit.ts)_
542
562
 
543
563
  ## `eas channel:list`
544
564
 
@@ -555,7 +575,7 @@ DESCRIPTION
555
575
  list all channels
556
576
  ```
557
577
 
558
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/channel/list.ts)_
578
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/list.ts)_
559
579
 
560
580
  ## `eas channel:view [NAME]`
561
581
 
@@ -575,7 +595,7 @@ DESCRIPTION
575
595
  view a channel
576
596
  ```
577
597
 
578
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/channel/view.ts)_
598
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/view.ts)_
579
599
 
580
600
  ## `eas config`
581
601
 
@@ -593,7 +613,7 @@ DESCRIPTION
593
613
  display project configuration (app.json + eas.json)
594
614
  ```
595
615
 
596
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/config.ts)_
616
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/config.ts)_
597
617
 
598
618
  ## `eas credentials`
599
619
 
@@ -610,21 +630,7 @@ DESCRIPTION
610
630
  manage credentials
611
631
  ```
612
632
 
613
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/credentials.ts)_
614
-
615
- ## `eas database:create`
616
-
617
- create a database
618
-
619
- ```
620
- USAGE
621
- $ eas database:create
622
-
623
- DESCRIPTION
624
- create a database
625
- ```
626
-
627
- _See code: [src/commands/database/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/database/create.ts)_
633
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/credentials.ts)_
628
634
 
629
635
  ## `eas device:create`
630
636
 
@@ -638,7 +644,7 @@ DESCRIPTION
638
644
  register new Apple Devices to use for internal distribution
639
645
  ```
640
646
 
641
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/device/create.ts)_
647
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/create.ts)_
642
648
 
643
649
  ## `eas device:delete`
644
650
 
@@ -656,7 +662,7 @@ DESCRIPTION
656
662
  remove a registered device from your account
657
663
  ```
658
664
 
659
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/device/delete.ts)_
665
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/delete.ts)_
660
666
 
661
667
  ## `eas device:list`
662
668
 
@@ -673,7 +679,7 @@ DESCRIPTION
673
679
  list all registered devices for your account
674
680
  ```
675
681
 
676
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/device/list.ts)_
682
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/list.ts)_
677
683
 
678
684
  ## `eas device:view [UDID]`
679
685
 
@@ -687,7 +693,7 @@ DESCRIPTION
687
693
  view a device for your project
688
694
  ```
689
695
 
690
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/device/view.ts)_
696
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/view.ts)_
691
697
 
692
698
  ## `eas diagnostics`
693
699
 
@@ -701,21 +707,7 @@ DESCRIPTION
701
707
  display environment info
702
708
  ```
703
709
 
704
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/diagnostics.ts)_
705
-
706
- ## `eas functions:start`
707
-
708
- start a function
709
-
710
- ```
711
- USAGE
712
- $ eas functions:start
713
-
714
- DESCRIPTION
715
- start a function
716
- ```
717
-
718
- _See code: [src/commands/functions/start.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/functions/start.ts)_
710
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/diagnostics.ts)_
719
711
 
720
712
  ## `eas help [COMMAND]`
721
713
 
@@ -797,7 +789,7 @@ DESCRIPTION
797
789
  generate the local store configuration from the app stores
798
790
  ```
799
791
 
800
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/metadata/pull.ts)_
792
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/metadata/pull.ts)_
801
793
 
802
794
  ## `eas metadata:push`
803
795
 
@@ -814,7 +806,7 @@ DESCRIPTION
814
806
  sync the local store configuration to the app stores
815
807
  ```
816
808
 
817
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/metadata/push.ts)_
809
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/metadata/push.ts)_
818
810
 
819
811
  ## `eas project:info`
820
812
 
@@ -828,7 +820,7 @@ DESCRIPTION
828
820
  information about the current project
829
821
  ```
830
822
 
831
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/project/info.ts)_
823
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/project/info.ts)_
832
824
 
833
825
  ## `eas project:init`
834
826
 
@@ -845,7 +837,7 @@ ALIASES
845
837
  $ eas init
846
838
  ```
847
839
 
848
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/project/init.ts)_
840
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/project/init.ts)_
849
841
 
850
842
  ## `eas secret:create`
851
843
 
@@ -865,7 +857,7 @@ DESCRIPTION
865
857
  create an environment secret on the current project or owner account
866
858
  ```
867
859
 
868
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/secret/create.ts)_
860
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/create.ts)_
869
861
 
870
862
  ## `eas secret:delete`
871
863
 
@@ -882,7 +874,7 @@ DESCRIPTION
882
874
  delete an environment secret by ID
883
875
  ```
884
876
 
885
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/secret/delete.ts)_
877
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/delete.ts)_
886
878
 
887
879
  ## `eas secret:list`
888
880
 
@@ -896,7 +888,7 @@ DESCRIPTION
896
888
  list environment secrets available for your current app
897
889
  ```
898
890
 
899
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/secret/list.ts)_
891
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/list.ts)_
900
892
 
901
893
  ## `eas submit`
902
894
 
@@ -926,7 +918,7 @@ ALIASES
926
918
  $ eas build:submit
927
919
  ```
928
920
 
929
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/submit.ts)_
921
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/submit.ts)_
930
922
 
931
923
  ## `eas update`
932
924
 
@@ -956,7 +948,7 @@ DESCRIPTION
956
948
  publish an update group
957
949
  ```
958
950
 
959
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/update/index.ts)_
951
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/index.ts)_
960
952
 
961
953
  ## `eas update:configure`
962
954
 
@@ -973,7 +965,7 @@ DESCRIPTION
973
965
  configure the project to support EAS Update
974
966
  ```
975
967
 
976
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/update/configure.ts)_
968
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/configure.ts)_
977
969
 
978
970
  ## `eas update:delete GROUPID`
979
971
 
@@ -993,7 +985,7 @@ DESCRIPTION
993
985
  delete all the updates in an update group
994
986
  ```
995
987
 
996
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/update/delete.ts)_
988
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/delete.ts)_
997
989
 
998
990
  ## `eas update:list`
999
991
 
@@ -1012,7 +1004,7 @@ DESCRIPTION
1012
1004
  view the recent updates for a branch
1013
1005
  ```
1014
1006
 
1015
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/update/list.ts)_
1007
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/list.ts)_
1016
1008
 
1017
1009
  ## `eas update:view GROUPID`
1018
1010
 
@@ -1032,7 +1024,7 @@ DESCRIPTION
1032
1024
  update group details
1033
1025
  ```
1034
1026
 
1035
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/update/view.ts)_
1027
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/view.ts)_
1036
1028
 
1037
1029
  ## `eas webhook:create`
1038
1030
 
@@ -1052,7 +1044,7 @@ DESCRIPTION
1052
1044
  create a webhook
1053
1045
  ```
1054
1046
 
1055
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/webhook/create.ts)_
1047
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/create.ts)_
1056
1048
 
1057
1049
  ## `eas webhook:delete [ID]`
1058
1050
 
@@ -1069,7 +1061,7 @@ DESCRIPTION
1069
1061
  delete a webhook
1070
1062
  ```
1071
1063
 
1072
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/webhook/delete.ts)_
1064
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1073
1065
 
1074
1066
  ## `eas webhook:list`
1075
1067
 
@@ -1086,7 +1078,7 @@ DESCRIPTION
1086
1078
  list webhooks
1087
1079
  ```
1088
1080
 
1089
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/webhook/list.ts)_
1081
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/list.ts)_
1090
1082
 
1091
1083
  ## `eas webhook:update`
1092
1084
 
@@ -1107,7 +1099,7 @@ DESCRIPTION
1107
1099
  update a webhook
1108
1100
  ```
1109
1101
 
1110
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/webhook/update.ts)_
1102
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/update.ts)_
1111
1103
 
1112
1104
  ## `eas webhook:view ID`
1113
1105
 
@@ -1124,7 +1116,7 @@ DESCRIPTION
1124
1116
  view a webhook
1125
1117
  ```
1126
1118
 
1127
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v1.1.1/packages/eas-cli/src/commands/webhook/view.ts)_
1119
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/view.ts)_
1128
1120
 
1129
1121
  ## `eas whoami`
1130
1122
 
@@ -32,6 +32,7 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, easJson
32
32
  projectDir,
33
33
  user,
34
34
  env: buildProfile.env,
35
+ easJsonCliConfig,
35
36
  });
36
37
  const devClientProperties = getDevClientEventProperties({
37
38
  platform,
@@ -40,6 +40,5 @@ function transformIosSecrets(secrets) {
40
40
  }
41
41
  return {
42
42
  buildCredentials,
43
- environmentSecrets: secrets.env,
44
43
  };
45
44
  }
@@ -10,4 +10,6 @@ export default abstract class EasCommand extends Command {
10
10
  run(): Promise<any>;
11
11
  finally(err: Error): Promise<any>;
12
12
  private applyCliConfigAsync;
13
+ private ensureEasCliIsNotInDependenciesAsync;
14
+ private isEasCliInDependenciesAsync;
13
15
  }
@@ -2,9 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const eas_json_1 = require("@expo/eas-json");
5
+ const PackageManagerUtils = tslib_1.__importStar(require("@expo/package-manager"));
5
6
  const core_1 = require("@oclif/core");
7
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
+ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
+ const path_1 = tslib_1.__importDefault(require("path"));
6
10
  const semver_1 = tslib_1.__importDefault(require("semver"));
7
11
  const rudderstackClient_1 = require("../analytics/rudderstackClient");
12
+ const log_1 = require("../log");
8
13
  const projectUtils_1 = require("../project/projectUtils");
9
14
  const User_1 = require("../user/User");
10
15
  const actions_1 = require("../user/actions");
@@ -26,7 +31,9 @@ class EasCommand extends core_1.Command {
26
31
  var _a;
27
32
  await (0, rudderstackClient_1.initAsync)();
28
33
  if (this.mustBeRunInsideProject) {
29
- await this.applyCliConfigAsync();
34
+ const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
35
+ await this.applyCliConfigAsync(projectDir);
36
+ await this.ensureEasCliIsNotInDependenciesAsync(projectDir);
30
37
  }
31
38
  if (this.requiresAuthentication) {
32
39
  const { flags } = await this.parse();
@@ -48,8 +55,7 @@ class EasCommand extends core_1.Command {
48
55
  await (0, rudderstackClient_1.flushAsync)();
49
56
  return super.finally(err);
50
57
  }
51
- async applyCliConfigAsync() {
52
- const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
58
+ async applyCliConfigAsync(projectDir) {
53
59
  const easJsonReader = new eas_json_1.EasJsonReader(projectDir);
54
60
  const config = await easJsonReader.getCliConfigAsync();
55
61
  if ((config === null || config === void 0 ? void 0 : config.version) && !semver_1.default.satisfies(easCli_1.easCliVersion, config.version)) {
@@ -59,5 +65,40 @@ class EasCommand extends core_1.Command {
59
65
  (0, vcs_1.setVcsClient)(new git_1.default());
60
66
  }
61
67
  }
68
+ async ensureEasCliIsNotInDependenciesAsync(projectDir) {
69
+ var _a;
70
+ let printCliVersionWarning = false;
71
+ const consoleWarn = (msg) => {
72
+ if (msg) {
73
+ // eslint-disable-next-line no-console
74
+ console.warn(chalk_1.default.yellow(msg));
75
+ }
76
+ else {
77
+ // eslint-disable-next-line no-console
78
+ console.warn();
79
+ }
80
+ };
81
+ if (await this.isEasCliInDependenciesAsync(projectDir)) {
82
+ printCliVersionWarning = true;
83
+ consoleWarn(`Found ${chalk_1.default.bold('eas-cli')} in your project dependencies.`);
84
+ }
85
+ const maybeRepoRoot = (_a = PackageManagerUtils.findWorkspaceRoot(projectDir)) !== null && _a !== void 0 ? _a : projectDir;
86
+ if (maybeRepoRoot !== projectDir && (await this.isEasCliInDependenciesAsync(maybeRepoRoot))) {
87
+ printCliVersionWarning = true;
88
+ consoleWarn(`Found ${chalk_1.default.bold('eas-cli')} in your monorepo dependencies.`);
89
+ }
90
+ if (printCliVersionWarning) {
91
+ consoleWarn(`It's recommended to use the ${chalk_1.default.bold('"cli.version"')} field in eas.json to enforce the ${chalk_1.default.bold('eas-cli')} version for your project.`);
92
+ consoleWarn((0, log_1.learnMore)('https://github.com/expo/eas-cli#enforcing-eas-cli-version-for-your-project'));
93
+ consoleWarn();
94
+ }
95
+ }
96
+ async isEasCliInDependenciesAsync(dir) {
97
+ var _a, _b;
98
+ const packageJsonPath = path_1.default.join(dir, 'package.json');
99
+ const packageJson = JSON.parse(await fs_extra_1.default.readFile(packageJsonPath, 'utf8'));
100
+ return (((_a = packageJson === null || packageJson === void 0 ? void 0 : packageJson.dependencies) === null || _a === void 0 ? void 0 : _a['eas-cli']) !== undefined ||
101
+ ((_b = packageJson === null || packageJson === void 0 ? void 0 : packageJson.devDependencies) === null || _b === void 0 ? void 0 : _b['eas-cli']) !== undefined);
102
+ }
62
103
  }
63
104
  exports.default = EasCommand;
@@ -19,5 +19,6 @@ export default class Build extends EasCommand {
19
19
  message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
20
20
  };
21
21
  runAsync(): Promise<void>;
22
- private sanitizeFlagsAsync;
22
+ private sanitizeFlags;
23
+ private ensurePlatformSelectedAsync;
23
24
  }