eas-cli 1.1.0 → 2.0.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.
- package/README.md +68 -46
- package/build/analytics/events.d.ts +4 -1
- package/build/analytics/events.js +3 -0
- package/build/build/createContext.js +1 -0
- package/build/build/ios/graphql.js +0 -1
- package/build/commandUtils/EasCommand.d.ts +2 -0
- package/build/commandUtils/EasCommand.js +44 -3
- package/build/commands/build/index.d.ts +2 -1
- package/build/commands/build/index.js +36 -18
- package/build/commands/submit.d.ts +2 -1
- package/build/commands/submit.js +28 -14
- package/build/commands/update/configure.js +54 -1
- package/build/commands/update/index.js +3 -0
- package/build/credentials/android/api/GraphqlClient.js +1 -1
- package/build/credentials/context.d.ts +3 -0
- package/build/credentials/context.js +1 -0
- package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -0
- package/build/credentials/ios/IosCredentialsProvider.js +33 -5
- package/build/credentials/ios/api/GraphqlClient.js +1 -1
- package/build/credentials/ios/appstore/ascApiKey.d.ts +11 -0
- package/build/credentials/ios/appstore/ascApiKey.js +53 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +176 -15
- package/build/credentials/manager/ManageAndroid.js +2 -8
- package/build/credentials/manager/ManageIos.js +2 -4
- package/build/graphql/generated.d.ts +191 -39
- package/build/graphql/generated.js +39 -1
- package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.d.ts +1 -1
- package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.js +2 -2
- package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
- package/build/graphql/queries/EnvironmentSecretsQuery.js +2 -2
- package/build/graphql/queries/StatuspageServiceQuery.d.ts +4 -0
- package/build/graphql/queries/StatuspageServiceQuery.js +28 -0
- package/build/graphql/types/StatuspageService.d.ts +1 -0
- package/build/graphql/types/StatuspageService.js +19 -0
- package/build/project/ensureProjectExists.d.ts +0 -7
- package/build/project/ensureProjectExists.js +4 -14
- package/build/project/projectUtils.d.ts +0 -1
- package/build/project/projectUtils.js +9 -29
- package/build/submit/android/AndroidSubmitter.js +1 -1
- package/build/submit/submit.js +2 -2
- package/build/submit/utils/errors.js +2 -0
- package/build/utils/statuspageService.d.ts +2 -0
- package/build/utils/statuspageService.js +41 -0
- package/build/vcs/local.d.ts +1 -0
- package/build/vcs/local.js +11 -2
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/build/graphql/queries/ProjectQuery.d.ts +0 -6
- 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
|
|
@@ -102,7 +124,7 @@ ALIASES
|
|
|
102
124
|
$ eas login
|
|
103
125
|
```
|
|
104
126
|
|
|
105
|
-
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
106
128
|
|
|
107
129
|
## `eas account:logout`
|
|
108
130
|
|
|
@@ -119,7 +141,7 @@ ALIASES
|
|
|
119
141
|
$ eas logout
|
|
120
142
|
```
|
|
121
143
|
|
|
122
|
-
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
123
145
|
|
|
124
146
|
## `eas account:view`
|
|
125
147
|
|
|
@@ -136,7 +158,7 @@ ALIASES
|
|
|
136
158
|
$ eas whoami
|
|
137
159
|
```
|
|
138
160
|
|
|
139
|
-
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
140
162
|
|
|
141
163
|
## `eas analytics [STATUS]`
|
|
142
164
|
|
|
@@ -150,7 +172,7 @@ DESCRIPTION
|
|
|
150
172
|
display or change analytics settings
|
|
151
173
|
```
|
|
152
174
|
|
|
153
|
-
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/
|
|
175
|
+
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/analytics.ts)_
|
|
154
176
|
|
|
155
177
|
## `eas autocomplete [SHELL]`
|
|
156
178
|
|
|
@@ -199,7 +221,7 @@ DESCRIPTION
|
|
|
199
221
|
create a branch
|
|
200
222
|
```
|
|
201
223
|
|
|
202
|
-
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
203
225
|
|
|
204
226
|
## `eas branch:delete [NAME]`
|
|
205
227
|
|
|
@@ -219,7 +241,7 @@ DESCRIPTION
|
|
|
219
241
|
delete a branch
|
|
220
242
|
```
|
|
221
243
|
|
|
222
|
-
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
223
245
|
|
|
224
246
|
## `eas branch:list`
|
|
225
247
|
|
|
@@ -240,7 +262,7 @@ DESCRIPTION
|
|
|
240
262
|
list all branches
|
|
241
263
|
```
|
|
242
264
|
|
|
243
|
-
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
244
266
|
|
|
245
267
|
## `eas branch:rename`
|
|
246
268
|
|
|
@@ -259,7 +281,7 @@ DESCRIPTION
|
|
|
259
281
|
rename a branch
|
|
260
282
|
```
|
|
261
283
|
|
|
262
|
-
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
263
285
|
|
|
264
286
|
## `eas branch:view [NAME]`
|
|
265
287
|
|
|
@@ -283,7 +305,7 @@ DESCRIPTION
|
|
|
283
305
|
view a branch
|
|
284
306
|
```
|
|
285
307
|
|
|
286
|
-
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
287
309
|
|
|
288
310
|
## `eas build`
|
|
289
311
|
|
|
@@ -313,7 +335,7 @@ DESCRIPTION
|
|
|
313
335
|
start a build
|
|
314
336
|
```
|
|
315
337
|
|
|
316
|
-
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
317
339
|
|
|
318
340
|
## `eas build:cancel [BUILD_ID]`
|
|
319
341
|
|
|
@@ -327,7 +349,7 @@ DESCRIPTION
|
|
|
327
349
|
cancel a build
|
|
328
350
|
```
|
|
329
351
|
|
|
330
|
-
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
331
353
|
|
|
332
354
|
## `eas build:configure`
|
|
333
355
|
|
|
@@ -344,7 +366,7 @@ DESCRIPTION
|
|
|
344
366
|
configure the project to support EAS Build
|
|
345
367
|
```
|
|
346
368
|
|
|
347
|
-
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
348
370
|
|
|
349
371
|
## `eas build:inspect`
|
|
350
372
|
|
|
@@ -379,7 +401,7 @@ DESCRIPTION
|
|
|
379
401
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
|
380
402
|
```
|
|
381
403
|
|
|
382
|
-
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
383
405
|
|
|
384
406
|
## `eas build:list`
|
|
385
407
|
|
|
@@ -412,7 +434,7 @@ DESCRIPTION
|
|
|
412
434
|
list all builds for your project
|
|
413
435
|
```
|
|
414
436
|
|
|
415
|
-
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
416
438
|
|
|
417
439
|
## `eas build:submit`
|
|
418
440
|
|
|
@@ -459,7 +481,7 @@ DESCRIPTION
|
|
|
459
481
|
Update version of an app.
|
|
460
482
|
```
|
|
461
483
|
|
|
462
|
-
_See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
463
485
|
|
|
464
486
|
## `eas build:version:sync`
|
|
465
487
|
|
|
@@ -478,7 +500,7 @@ DESCRIPTION
|
|
|
478
500
|
Update a version in native code with a value stored on EAS servers
|
|
479
501
|
```
|
|
480
502
|
|
|
481
|
-
_See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
482
504
|
|
|
483
505
|
## `eas build:view [BUILD_ID]`
|
|
484
506
|
|
|
@@ -495,7 +517,7 @@ DESCRIPTION
|
|
|
495
517
|
view a build for your project
|
|
496
518
|
```
|
|
497
519
|
|
|
498
|
-
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
499
521
|
|
|
500
522
|
## `eas channel:create [NAME]`
|
|
501
523
|
|
|
@@ -515,7 +537,7 @@ DESCRIPTION
|
|
|
515
537
|
create a channel
|
|
516
538
|
```
|
|
517
539
|
|
|
518
|
-
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
519
541
|
|
|
520
542
|
## `eas channel:edit [NAME]`
|
|
521
543
|
|
|
@@ -536,7 +558,7 @@ DESCRIPTION
|
|
|
536
558
|
point a channel at a new branch
|
|
537
559
|
```
|
|
538
560
|
|
|
539
|
-
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
540
562
|
|
|
541
563
|
## `eas channel:list`
|
|
542
564
|
|
|
@@ -553,7 +575,7 @@ DESCRIPTION
|
|
|
553
575
|
list all channels
|
|
554
576
|
```
|
|
555
577
|
|
|
556
|
-
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
557
579
|
|
|
558
580
|
## `eas channel:view [NAME]`
|
|
559
581
|
|
|
@@ -573,7 +595,7 @@ DESCRIPTION
|
|
|
573
595
|
view a channel
|
|
574
596
|
```
|
|
575
597
|
|
|
576
|
-
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
577
599
|
|
|
578
600
|
## `eas config`
|
|
579
601
|
|
|
@@ -591,7 +613,7 @@ DESCRIPTION
|
|
|
591
613
|
display project configuration (app.json + eas.json)
|
|
592
614
|
```
|
|
593
615
|
|
|
594
|
-
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/
|
|
616
|
+
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/config.ts)_
|
|
595
617
|
|
|
596
618
|
## `eas credentials`
|
|
597
619
|
|
|
@@ -608,7 +630,7 @@ DESCRIPTION
|
|
|
608
630
|
manage credentials
|
|
609
631
|
```
|
|
610
632
|
|
|
611
|
-
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/
|
|
633
|
+
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/credentials.ts)_
|
|
612
634
|
|
|
613
635
|
## `eas device:create`
|
|
614
636
|
|
|
@@ -622,7 +644,7 @@ DESCRIPTION
|
|
|
622
644
|
register new Apple Devices to use for internal distribution
|
|
623
645
|
```
|
|
624
646
|
|
|
625
|
-
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
626
648
|
|
|
627
649
|
## `eas device:delete`
|
|
628
650
|
|
|
@@ -640,7 +662,7 @@ DESCRIPTION
|
|
|
640
662
|
remove a registered device from your account
|
|
641
663
|
```
|
|
642
664
|
|
|
643
|
-
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
644
666
|
|
|
645
667
|
## `eas device:list`
|
|
646
668
|
|
|
@@ -657,7 +679,7 @@ DESCRIPTION
|
|
|
657
679
|
list all registered devices for your account
|
|
658
680
|
```
|
|
659
681
|
|
|
660
|
-
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
661
683
|
|
|
662
684
|
## `eas device:view [UDID]`
|
|
663
685
|
|
|
@@ -671,7 +693,7 @@ DESCRIPTION
|
|
|
671
693
|
view a device for your project
|
|
672
694
|
```
|
|
673
695
|
|
|
674
|
-
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
675
697
|
|
|
676
698
|
## `eas diagnostics`
|
|
677
699
|
|
|
@@ -685,7 +707,7 @@ DESCRIPTION
|
|
|
685
707
|
display environment info
|
|
686
708
|
```
|
|
687
709
|
|
|
688
|
-
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/
|
|
710
|
+
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/diagnostics.ts)_
|
|
689
711
|
|
|
690
712
|
## `eas help [COMMAND]`
|
|
691
713
|
|
|
@@ -767,7 +789,7 @@ DESCRIPTION
|
|
|
767
789
|
generate the local store configuration from the app stores
|
|
768
790
|
```
|
|
769
791
|
|
|
770
|
-
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
771
793
|
|
|
772
794
|
## `eas metadata:push`
|
|
773
795
|
|
|
@@ -784,7 +806,7 @@ DESCRIPTION
|
|
|
784
806
|
sync the local store configuration to the app stores
|
|
785
807
|
```
|
|
786
808
|
|
|
787
|
-
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
788
810
|
|
|
789
811
|
## `eas project:info`
|
|
790
812
|
|
|
@@ -798,7 +820,7 @@ DESCRIPTION
|
|
|
798
820
|
information about the current project
|
|
799
821
|
```
|
|
800
822
|
|
|
801
|
-
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
802
824
|
|
|
803
825
|
## `eas project:init`
|
|
804
826
|
|
|
@@ -815,7 +837,7 @@ ALIASES
|
|
|
815
837
|
$ eas init
|
|
816
838
|
```
|
|
817
839
|
|
|
818
|
-
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
819
841
|
|
|
820
842
|
## `eas secret:create`
|
|
821
843
|
|
|
@@ -835,7 +857,7 @@ DESCRIPTION
|
|
|
835
857
|
create an environment secret on the current project or owner account
|
|
836
858
|
```
|
|
837
859
|
|
|
838
|
-
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
839
861
|
|
|
840
862
|
## `eas secret:delete`
|
|
841
863
|
|
|
@@ -852,7 +874,7 @@ DESCRIPTION
|
|
|
852
874
|
delete an environment secret by ID
|
|
853
875
|
```
|
|
854
876
|
|
|
855
|
-
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
856
878
|
|
|
857
879
|
## `eas secret:list`
|
|
858
880
|
|
|
@@ -866,7 +888,7 @@ DESCRIPTION
|
|
|
866
888
|
list environment secrets available for your current app
|
|
867
889
|
```
|
|
868
890
|
|
|
869
|
-
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
870
892
|
|
|
871
893
|
## `eas submit`
|
|
872
894
|
|
|
@@ -896,7 +918,7 @@ ALIASES
|
|
|
896
918
|
$ eas build:submit
|
|
897
919
|
```
|
|
898
920
|
|
|
899
|
-
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/
|
|
921
|
+
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.0.0/packages/eas-cli/src/commands/submit.ts)_
|
|
900
922
|
|
|
901
923
|
## `eas update`
|
|
902
924
|
|
|
@@ -926,7 +948,7 @@ DESCRIPTION
|
|
|
926
948
|
publish an update group
|
|
927
949
|
```
|
|
928
950
|
|
|
929
|
-
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
930
952
|
|
|
931
953
|
## `eas update:configure`
|
|
932
954
|
|
|
@@ -943,7 +965,7 @@ DESCRIPTION
|
|
|
943
965
|
configure the project to support EAS Update
|
|
944
966
|
```
|
|
945
967
|
|
|
946
|
-
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
947
969
|
|
|
948
970
|
## `eas update:delete GROUPID`
|
|
949
971
|
|
|
@@ -963,7 +985,7 @@ DESCRIPTION
|
|
|
963
985
|
delete all the updates in an update group
|
|
964
986
|
```
|
|
965
987
|
|
|
966
|
-
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
967
989
|
|
|
968
990
|
## `eas update:list`
|
|
969
991
|
|
|
@@ -982,7 +1004,7 @@ DESCRIPTION
|
|
|
982
1004
|
view the recent updates for a branch
|
|
983
1005
|
```
|
|
984
1006
|
|
|
985
|
-
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
986
1008
|
|
|
987
1009
|
## `eas update:view GROUPID`
|
|
988
1010
|
|
|
@@ -1002,7 +1024,7 @@ DESCRIPTION
|
|
|
1002
1024
|
update group details
|
|
1003
1025
|
```
|
|
1004
1026
|
|
|
1005
|
-
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1006
1028
|
|
|
1007
1029
|
## `eas webhook:create`
|
|
1008
1030
|
|
|
@@ -1022,7 +1044,7 @@ DESCRIPTION
|
|
|
1022
1044
|
create a webhook
|
|
1023
1045
|
```
|
|
1024
1046
|
|
|
1025
|
-
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1026
1048
|
|
|
1027
1049
|
## `eas webhook:delete [ID]`
|
|
1028
1050
|
|
|
@@ -1039,7 +1061,7 @@ DESCRIPTION
|
|
|
1039
1061
|
delete a webhook
|
|
1040
1062
|
```
|
|
1041
1063
|
|
|
1042
|
-
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1043
1065
|
|
|
1044
1066
|
## `eas webhook:list`
|
|
1045
1067
|
|
|
@@ -1056,7 +1078,7 @@ DESCRIPTION
|
|
|
1056
1078
|
list webhooks
|
|
1057
1079
|
```
|
|
1058
1080
|
|
|
1059
|
-
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1060
1082
|
|
|
1061
1083
|
## `eas webhook:update`
|
|
1062
1084
|
|
|
@@ -1077,7 +1099,7 @@ DESCRIPTION
|
|
|
1077
1099
|
update a webhook
|
|
1078
1100
|
```
|
|
1079
1101
|
|
|
1080
|
-
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1081
1103
|
|
|
1082
1104
|
## `eas webhook:view ID`
|
|
1083
1105
|
|
|
@@ -1094,7 +1116,7 @@ DESCRIPTION
|
|
|
1094
1116
|
view a webhook
|
|
1095
1117
|
```
|
|
1096
1118
|
|
|
1097
|
-
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/
|
|
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)_
|
|
1098
1120
|
|
|
1099
1121
|
## `eas whoami`
|
|
1100
1122
|
|
|
@@ -12,7 +12,10 @@ export declare enum SubmissionEvent {
|
|
|
12
12
|
GATHER_ARCHIVE_FAIL = "submit cli gather archive fail",
|
|
13
13
|
SUBMIT_REQUEST_ATTEMPT = "submit cli request attempt",
|
|
14
14
|
SUBMIT_REQUEST_SUCCESS = "submit cli request success",
|
|
15
|
-
SUBMIT_REQUEST_FAIL = "submit cli request fail"
|
|
15
|
+
SUBMIT_REQUEST_FAIL = "submit cli request fail",
|
|
16
|
+
API_KEY_DOWNLOAD_FAIL = "submit cli credentials api key download fail",
|
|
17
|
+
API_KEY_DOWNLOAD_RETRY = "submit cli credentials api key download fail temporary",
|
|
18
|
+
API_KEY_DOWNLOAD_SUCCESS = "submit cli credentials api key download succeed"
|
|
16
19
|
}
|
|
17
20
|
export declare enum BuildEvent {
|
|
18
21
|
BUILD_COMMAND = "build cli build command",
|
|
@@ -17,6 +17,9 @@ var SubmissionEvent;
|
|
|
17
17
|
SubmissionEvent["SUBMIT_REQUEST_ATTEMPT"] = "submit cli request attempt";
|
|
18
18
|
SubmissionEvent["SUBMIT_REQUEST_SUCCESS"] = "submit cli request success";
|
|
19
19
|
SubmissionEvent["SUBMIT_REQUEST_FAIL"] = "submit cli request fail";
|
|
20
|
+
SubmissionEvent["API_KEY_DOWNLOAD_FAIL"] = "submit cli credentials api key download fail";
|
|
21
|
+
SubmissionEvent["API_KEY_DOWNLOAD_RETRY"] = "submit cli credentials api key download fail temporary";
|
|
22
|
+
SubmissionEvent["API_KEY_DOWNLOAD_SUCCESS"] = "submit cli credentials api key download succeed";
|
|
20
23
|
})(SubmissionEvent = exports.SubmissionEvent || (exports.SubmissionEvent = {}));
|
|
21
24
|
var BuildEvent;
|
|
22
25
|
(function (BuildEvent) {
|
|
@@ -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
|
|
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
|
|
22
|
+
private sanitizeFlags;
|
|
23
|
+
private ensurePlatformSelectedAsync;
|
|
23
24
|
}
|
|
@@ -6,21 +6,29 @@ const path_1 = tslib_1.__importDefault(require("path"));
|
|
|
6
6
|
const runBuildAndSubmit_1 = require("../../build/runBuildAndSubmit");
|
|
7
7
|
const types_1 = require("../../build/types");
|
|
8
8
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
9
|
+
const generated_1 = require("../../graphql/generated");
|
|
9
10
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
11
|
const platform_1 = require("../../platform");
|
|
11
12
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
13
|
const json_1 = require("../../utils/json");
|
|
14
|
+
const statuspageService_1 = require("../../utils/statuspageService");
|
|
13
15
|
class Build extends EasCommand_1.default {
|
|
14
16
|
async runAsync() {
|
|
15
17
|
const { flags: rawFlags } = await this.parse(Build);
|
|
16
18
|
if (rawFlags.json) {
|
|
17
19
|
(0, json_1.enableJsonOutput)();
|
|
18
20
|
}
|
|
19
|
-
const flags =
|
|
21
|
+
const flags = this.sanitizeFlags(rawFlags);
|
|
20
22
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
21
|
-
|
|
23
|
+
if (!flags.localBuildOptions.enable) {
|
|
24
|
+
await (0, statuspageService_1.maybeWarnAboutEasOutagesAsync)(flags.autoSubmit
|
|
25
|
+
? [generated_1.StatuspageServiceName.EasBuild, generated_1.StatuspageServiceName.EasSubmit]
|
|
26
|
+
: [generated_1.StatuspageServiceName.EasBuild]);
|
|
27
|
+
}
|
|
28
|
+
const flagsWithPlatform = await this.ensurePlatformSelectedAsync(flags);
|
|
29
|
+
await (0, runBuildAndSubmit_1.runBuildAndSubmitAsync)(projectDir, flagsWithPlatform);
|
|
22
30
|
}
|
|
23
|
-
|
|
31
|
+
sanitizeFlags(flags) {
|
|
24
32
|
var _a, _b;
|
|
25
33
|
const nonInteractive = flags['non-interactive'];
|
|
26
34
|
if (!flags.local && flags.output) {
|
|
@@ -32,21 +40,10 @@ class Build extends EasCommand_1.default {
|
|
|
32
40
|
if (flags.json && !nonInteractive) {
|
|
33
41
|
core_1.Errors.error('--json is allowed only when building in non-interactive mode', { exit: 1 });
|
|
34
42
|
}
|
|
35
|
-
const requestedPlatform =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
core_1.Errors.error('Auto-submits are not yet supported when building locally', { exit: 1 });
|
|
40
|
-
}
|
|
41
|
-
if (requestedPlatform === platform_1.RequestedPlatform.All) {
|
|
42
|
-
core_1.Errors.error('Builds for multiple platforms are not supported with flag --local', {
|
|
43
|
-
exit: 1,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
else if (process.platform !== 'darwin' && requestedPlatform === platform_1.RequestedPlatform.Ios) {
|
|
47
|
-
core_1.Errors.error('Unsupported platform, macOS is required to build apps for iOS', { exit: 1 });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
43
|
+
const requestedPlatform = flags.platform &&
|
|
44
|
+
Object.values(platform_1.RequestedPlatform).includes(flags.platform.toLowerCase())
|
|
45
|
+
? flags.platform.toLowerCase()
|
|
46
|
+
: undefined;
|
|
50
47
|
if (flags['skip-credentials-check']) {
|
|
51
48
|
log_1.default.warnDeprecatedFlag('skip-credentials-check', 'Build credentials validation is always skipped with the --non-interactive flag. You can also skip interactively.');
|
|
52
49
|
log_1.default.newLine();
|
|
@@ -82,6 +79,27 @@ class Build extends EasCommand_1.default {
|
|
|
82
79
|
message,
|
|
83
80
|
};
|
|
84
81
|
}
|
|
82
|
+
async ensurePlatformSelectedAsync(flags) {
|
|
83
|
+
const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.requestedPlatform);
|
|
84
|
+
if (flags.localBuildOptions.enable) {
|
|
85
|
+
if (flags.autoSubmit) {
|
|
86
|
+
// TODO: implement this
|
|
87
|
+
core_1.Errors.error('Auto-submits are not yet supported when building locally', { exit: 1 });
|
|
88
|
+
}
|
|
89
|
+
if (requestedPlatform === platform_1.RequestedPlatform.All) {
|
|
90
|
+
core_1.Errors.error('Builds for multiple platforms are not supported with flag --local', {
|
|
91
|
+
exit: 1,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else if (process.platform !== 'darwin' && requestedPlatform === platform_1.RequestedPlatform.Ios) {
|
|
95
|
+
core_1.Errors.error('Unsupported platform, macOS is required to build apps for iOS', { exit: 1 });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
...flags,
|
|
100
|
+
requestedPlatform,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
85
103
|
}
|
|
86
104
|
exports.default = Build;
|
|
87
105
|
Build.description = 'start a build';
|