Compare commits

...
Author SHA1 Message Date
Quinlan Jung 819f0b4c6f sdf 2023-07-18 12:52:23 -07:00
Quinlan Jung 9ffd3a096b fix test 2023-07-18 11:52:51 -07:00
Quinlan Jung e3ff26e1ca update CHANGELOG.md 2023-07-18 17:56:15 +00:00
Quinlan Jung bbd26a8030 [eas-cli] bump urql graphql client 2023-07-18 10:42:44 -07:00
Piotr SzeremetaandSzymon Dziedzic 57dd372957 [ENG-9283][eas-cli] Throw error when project tarball exceeds 1GB (#1928)
* [ENG-9283][eas-cli] Throw error when project tarball exceeds 1GB

* update CHANGELOG.md

* Update packages/eas-cli/src/build/build.ts

Co-authored-by: Szymon Dziedzic <[email protected]>

* Update packages/eas-cli/src/build/build.ts

Co-authored-by: Szymon Dziedzic <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Szymon Dziedzic <[email protected]>

---------

Co-authored-by: Szymon Dziedzic <[email protected]>
2023-07-17 14:12:17 +02:00
Will Schurman 5232641217 [eas-cli] Use node server default port selection for SSO login server (#1930) 2023-07-13 09:29:51 -07:00
Cedric van Putten 3c3d3150c9 [eas-cli] Ignore the existing entitlements when ios is gitignored (#1906)
* [eas-cli] Ignore the existing entitlements when ios is gitignored

* chore: add changelog entry
2023-07-13 16:51:39 +02:00
Will Schurman fd322d4189 [eas-cli] Add styling to SSO auth redirect completion page (#1929) 2023-07-12 09:11:03 -07:00
Expo CI 77254f6be1 update CHANGELOG.md 2023-07-11 06:59:32 +00:00
Szymon Dziedzic 44fcbbaf17 v3.15.1 2023-07-11 08:51:55 +02:00
Szymon Dziedzic db841b45ee upgrade eas-cli-local-build-plugin to 1.0.27 2023-07-11 08:51:40 +02:00
Szymon Dziedzic 568669d384 [eas-cli] bump @expo/steps version (#1927) 2023-07-11 08:11:17 +02:00
Quinlan Jung aa50bf11ce [eas-cli] fix runtime logs (#1925)
* [eas-cli] fix runtime logs

* update CHANGELOG.md

* pr feedback
2023-07-10 10:37:46 -07:00
Sundeep Peswani 119133360b [eas-cli] Handle free user limit error messages (#1921)
* [eas-cli] Handle free user limit error messages

* update CHANGELOG.md
2023-07-10 13:18:20 -04:00
Radosław Krzemień 3f0f25dd46 [eas-cli] [ENG-8957] Handle multiple GraphQLErrors in CombinedError (#1924)
* [eas-cli] Handle multiple GraphQLErrors in CombinedError

CombinedError technically can have more than 1 GraphQLError inside it, even though for now we only use it with 1. In such a case it would be good for the eas-cli to be able to handle and properly log/display all the multiple error messages

See: https://linear.app/expo/issue/ENG-8957/improve-error-handling-in-eas-cli-to-support-case-when-combined-error

* [eas-cli] Revert change

Small change made for testing slipped through and got committed

See: https://linear.app/expo/issue/ENG-8957/improve-error-handling-in-eas-cli-to-support-case-when-combined-error

* update CHANGELOG.md
2023-07-10 13:07:10 +02:00
Szymon Dziedzic e821ae95e1 fix changelog (#1926) 2023-07-10 09:20:40 +02:00
Szymon Dziedzic f4e51b4fbc [eas-json] add info about new image to eas.schema.json (#1920) 2023-07-10 08:11:27 +02:00
James Ide 963bea9b03 [ENG-9093][eas-cli] Throw if useClassicUpdates is set when the developer is trying to use EAS Update (#1915)
Why
---
Fail fast with a clear message if the app config contradicts itself or the developer's behavior.

How
---
Throw if useClassicUpdates is set in the app config and the developer is running an EAS Update-related command or if the app config uses an EAS Update URL. If the developer is using a static app config (app.json), offer to modify the config file for them.

Test Plan
---
Added a unit test for ensureEASUpdateIsConfiguredAsync. Manually tested as wlel.
2023-07-05 17:32:20 -07:00
Quinlan Jung 9bf2020b2b [eas-cli] better runtime version error for bare workflow (#1910)
* [eas-cli] better runtime version error for bare workflow

* update CHANGELOG.md

* resolve conflicts
2023-07-03 14:41:27 -07:00
Brent Vatne 50e695b5a3 [eas-cli] Bump dependencies (#1911) 2023-07-03 13:08:42 -07:00
Expo CI f3577deac4 update CHANGELOG.md 2023-06-30 23:13:32 +00:00
Brent Vatne f11c0b4d34 v3.15.0 2023-06-30 16:05:25 -07:00
Szymon Dziedzic 88411e8fc0 [eas-cli] print the list of environment variables that we load in EAS CLI when evaluating app config for a build (#1909) 2023-06-30 16:04:28 -07:00
32 changed files with 725 additions and 345 deletions

No files matched your search

+30 -4
View File
@@ -8,17 +8,43 @@ This is the log of notable changes to EAS CLI and related packages.
### 🎉 New features ### 🎉 New features
- Show build profile when selecting a build for eas build:run. ([#1901](https://github.com/expo/eas-cli/pull/1901) by [@keith-kurak](https://github.com/keith-kurak)) - Add styling to SSO auth redirect completion page. ([#1929](https://github.com/expo/eas-cli/pull/1929) by [@wschurman](https://github.com/wschurman))
- Ignore entitlements from native template when `/ios` is gitignored. ([#1906](https://github.com/expo/eas-cli/pull/1906) by [@byCedric](https://github.com/byCedric))
- Adds -m alias to --message in update/republish and removed README comment. ([#1905](https://github.com/expo/eas-cli/pull/1905) by [@pusongqi](https://github.com/pusongqi)) - Use node server default port selection for SSO login server. ([#1930](https://github.com/expo/eas-cli/pull/1930) by [@wschurman](https://github.com/wschurman))
### 🐛 Bug fixes ### 🐛 Bug fixes
### 🧹 Chores ### 🧹 Chores
- Limit project file upload size to 2GB. ([#1928](https://github.com/expo/eas-cli/pull/1928) by [@khamilowicz](https://github.com/khamilowicz))
- Bump urql graphql client major version. ([#1936](https://github.com/expo/eas-cli/pull/1936) by [@quinlanj](https://github.com/quinlanj))
## [3.15.1](https://github.com/expo/eas-cli/releases/tag/v3.15.1) - 2023-07-11
### 🐛 Bug fixes
- Ensure useClassicUpdates is not set when using EAS Update commands. ([#1915](https://github.com/expo/eas-cli/pull/1915) by [@ide](https://github.com/ide))
- Handle multiple GraphQLErrors when receiving a CombinedError. ([#1924](https://github.com/expo/eas-cli/pull/1924) by [@radoslawkrzemien](https://github.com/radoslawkrzemien))
### 🧹 Chores
- Bump Expo package dependencies. ([#1911](https://github.com/expo/eas-cli/pull/1911) by [@brentvatne](https://github.com/brentvatne))
- Better bare workflow runtimeVersion error. ([#1910](https://github.com/expo/eas-cli/pull/1910) by [@quinlanj](https://github.com/quinlanj))
- Fix runtime version print logs. ([#1925](https://github.com/expo/eas-cli/pull/1925) by [@quinlanj](https://github.com/quinlanj))
- Add info about new `macos-ventura-13.4-xcode-14.3.1` image to `eas.schema.json`. ([#1920](https://github.com/expo/eas-cli/pull/1920) by [@szdziedzic](https://github.com/szdziedzic))
## [3.15.0](https://github.com/expo/eas-cli/releases/tag/v3.15.0) - 2023-06-30
### 🎉 New features
- Show build profile when selecting a build for eas build:run. ([#1901](https://github.com/expo/eas-cli/pull/1901) by [@keith-kurak](https://github.com/keith-kurak))
- Adds -m alias to --message in update/republish and removed README comment. ([#1905](https://github.com/expo/eas-cli/pull/1905) by [@pusongqi](https://github.com/pusongqi))
### 🧹 Chores
- Better runtimeVersion output. ([#1894](https://github.com/expo/eas-cli/pull/1894) by [@quinlanj](https://github.com/quinlanj)) - Better runtimeVersion output. ([#1894](https://github.com/expo/eas-cli/pull/1894) by [@quinlanj](https://github.com/quinlanj))
- Print better error message when uploading project archive tarball fails. ([#1897](https://github.com/expo/eas-cli/pull/1897) by [@szdziedzic](https://github.com/szdziedzic)) - Print better error message when uploading project archive tarball fails. ([#1897](https://github.com/expo/eas-cli/pull/1897) by [@szdziedzic](https://github.com/szdziedzic))
- Adds support for 2 new server-side errors related to build limits. ([#1921](https://github.com/expo/eas-cli/pull/1921) by [@sundeeppeswani](https://github.com/sundeeppeswani))
## [3.14.0](https://github.com/expo/eas-cli/releases/tag/v3.14.0) - 2023-06-20 ## [3.14.0](https://github.com/expo/eas-cli/releases/tag/v3.14.0) - 2023-06-20
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"npmClient": "yarn", "npmClient": "yarn",
"useWorkspaces": true, "useWorkspaces": true,
"version": "3.14.0", "version": "3.15.1",
"$schema": "node_modules/lerna/schemas/lerna-schema.json" "$schema": "node_modules/lerna/schemas/lerna-schema.json"
} }
+123 -125
View File
@@ -55,69 +55,68 @@ eas --help COMMAND
# Commands # Commands
<!-- commands --> <!-- commands -->
* [`eas account:login`](#eas-accountlogin)
- [`eas account:login`](#eas-accountlogin) * [`eas account:logout`](#eas-accountlogout)
- [`eas account:logout`](#eas-accountlogout) * [`eas account:view`](#eas-accountview)
- [`eas account:view`](#eas-accountview) * [`eas analytics [STATUS]`](#eas-analytics-status)
- [`eas analytics [STATUS]`](#eas-analytics-status) * [`eas autocomplete [SHELL]`](#eas-autocomplete-shell)
- [`eas autocomplete [SHELL]`](#eas-autocomplete-shell) * [`eas branch:create [NAME]`](#eas-branchcreate-name)
- [`eas branch:create [NAME]`](#eas-branchcreate-name) * [`eas branch:delete [NAME]`](#eas-branchdelete-name)
- [`eas branch:delete [NAME]`](#eas-branchdelete-name) * [`eas branch:list`](#eas-branchlist)
- [`eas branch:list`](#eas-branchlist) * [`eas branch:rename`](#eas-branchrename)
- [`eas branch:rename`](#eas-branchrename) * [`eas branch:view [NAME]`](#eas-branchview-name)
- [`eas branch:view [NAME]`](#eas-branchview-name) * [`eas build`](#eas-build)
- [`eas build`](#eas-build) * [`eas build:cancel [BUILD_ID]`](#eas-buildcancel-build_id)
- [`eas build:cancel [BUILD_ID]`](#eas-buildcancel-build_id) * [`eas build:configure`](#eas-buildconfigure)
- [`eas build:configure`](#eas-buildconfigure) * [`eas build:inspect`](#eas-buildinspect)
- [`eas build:inspect`](#eas-buildinspect) * [`eas build:list`](#eas-buildlist)
- [`eas build:list`](#eas-buildlist) * [`eas build:resign`](#eas-buildresign)
- [`eas build:resign`](#eas-buildresign) * [`eas build:run`](#eas-buildrun)
- [`eas build:run`](#eas-buildrun) * [`eas build:submit`](#eas-buildsubmit)
- [`eas build:submit`](#eas-buildsubmit) * [`eas build:version:get`](#eas-buildversionget)
- [`eas build:version:get`](#eas-buildversionget) * [`eas build:version:set`](#eas-buildversionset)
- [`eas build:version:set`](#eas-buildversionset) * [`eas build:version:sync`](#eas-buildversionsync)
- [`eas build:version:sync`](#eas-buildversionsync) * [`eas build:view [BUILD_ID]`](#eas-buildview-build_id)
- [`eas build:view [BUILD_ID]`](#eas-buildview-build_id) * [`eas channel:create [NAME]`](#eas-channelcreate-name)
- [`eas channel:create [NAME]`](#eas-channelcreate-name) * [`eas channel:edit [NAME]`](#eas-channeledit-name)
- [`eas channel:edit [NAME]`](#eas-channeledit-name) * [`eas channel:list`](#eas-channellist)
- [`eas channel:list`](#eas-channellist) * [`eas channel:rollout [CHANNEL]`](#eas-channelrollout-channel)
- [`eas channel:rollout [CHANNEL]`](#eas-channelrollout-channel) * [`eas channel:view [NAME]`](#eas-channelview-name)
- [`eas channel:view [NAME]`](#eas-channelview-name) * [`eas config`](#eas-config)
- [`eas config`](#eas-config) * [`eas credentials`](#eas-credentials)
- [`eas credentials`](#eas-credentials) * [`eas device:create`](#eas-devicecreate)
- [`eas device:create`](#eas-devicecreate) * [`eas device:delete`](#eas-devicedelete)
- [`eas device:delete`](#eas-devicedelete) * [`eas device:list`](#eas-devicelist)
- [`eas device:list`](#eas-devicelist) * [`eas device:rename`](#eas-devicerename)
- [`eas device:rename`](#eas-devicerename) * [`eas device:view [UDID]`](#eas-deviceview-udid)
- [`eas device:view [UDID]`](#eas-deviceview-udid) * [`eas diagnostics`](#eas-diagnostics)
- [`eas diagnostics`](#eas-diagnostics) * [`eas help [COMMAND]`](#eas-help-command)
- [`eas help [COMMAND]`](#eas-help-command) * [`eas init`](#eas-init)
- [`eas init`](#eas-init) * [`eas login`](#eas-login)
- [`eas login`](#eas-login) * [`eas logout`](#eas-logout)
- [`eas logout`](#eas-logout) * [`eas metadata:lint`](#eas-metadatalint)
- [`eas metadata:lint`](#eas-metadatalint) * [`eas metadata:pull`](#eas-metadatapull)
- [`eas metadata:pull`](#eas-metadatapull) * [`eas metadata:push`](#eas-metadatapush)
- [`eas metadata:push`](#eas-metadatapush) * [`eas open`](#eas-open)
- [`eas open`](#eas-open) * [`eas project:info`](#eas-projectinfo)
- [`eas project:info`](#eas-projectinfo) * [`eas project:init`](#eas-projectinit)
- [`eas project:init`](#eas-projectinit) * [`eas secret:create`](#eas-secretcreate)
- [`eas secret:create`](#eas-secretcreate) * [`eas secret:delete`](#eas-secretdelete)
- [`eas secret:delete`](#eas-secretdelete) * [`eas secret:list`](#eas-secretlist)
- [`eas secret:list`](#eas-secretlist) * [`eas secret:push`](#eas-secretpush)
- [`eas secret:push`](#eas-secretpush) * [`eas submit`](#eas-submit)
- [`eas submit`](#eas-submit) * [`eas update`](#eas-update)
- [`eas update`](#eas-update) * [`eas update:configure`](#eas-updateconfigure)
- [`eas update:configure`](#eas-updateconfigure) * [`eas update:delete GROUPID`](#eas-updatedelete-groupid)
- [`eas update:delete GROUPID`](#eas-updatedelete-groupid) * [`eas update:list`](#eas-updatelist)
- [`eas update:list`](#eas-updatelist) * [`eas update:republish`](#eas-updaterepublish)
- [`eas update:republish`](#eas-updaterepublish) * [`eas update:view GROUPID`](#eas-updateview-groupid)
- [`eas update:view GROUPID`](#eas-updateview-groupid) * [`eas webhook:create`](#eas-webhookcreate)
- [`eas webhook:create`](#eas-webhookcreate) * [`eas webhook:delete [ID]`](#eas-webhookdelete-id)
- [`eas webhook:delete [ID]`](#eas-webhookdelete-id) * [`eas webhook:list`](#eas-webhooklist)
- [`eas webhook:list`](#eas-webhooklist) * [`eas webhook:update`](#eas-webhookupdate)
- [`eas webhook:update`](#eas-webhookupdate) * [`eas webhook:view ID`](#eas-webhookview-id)
- [`eas webhook:view ID`](#eas-webhookview-id) * [`eas whoami`](#eas-whoami)
- [`eas whoami`](#eas-whoami)
## `eas account:login` ## `eas account:login`
@@ -134,7 +133,7 @@ ALIASES
$ eas login $ eas login
``` ```
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/account/login.ts)_ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/account/login.ts)_
## `eas account:logout` ## `eas account:logout`
@@ -151,7 +150,7 @@ ALIASES
$ eas logout $ eas logout
``` ```
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/account/logout.ts)_ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/account/logout.ts)_
## `eas account:view` ## `eas account:view`
@@ -168,7 +167,7 @@ ALIASES
$ eas whoami $ eas whoami
``` ```
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/account/view.ts)_ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/account/view.ts)_
## `eas analytics [STATUS]` ## `eas analytics [STATUS]`
@@ -182,7 +181,7 @@ DESCRIPTION
display or change analytics settings display or change analytics settings
``` ```
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/analytics.ts)_ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/analytics.ts)_
## `eas autocomplete [SHELL]` ## `eas autocomplete [SHELL]`
@@ -232,7 +231,7 @@ DESCRIPTION
create a branch create a branch
``` ```
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/branch/create.ts)_ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/branch/create.ts)_
## `eas branch:delete [NAME]` ## `eas branch:delete [NAME]`
@@ -253,7 +252,7 @@ DESCRIPTION
delete a branch delete a branch
``` ```
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/branch/delete.ts)_ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/branch/delete.ts)_
## `eas branch:list` ## `eas branch:list`
@@ -273,7 +272,7 @@ DESCRIPTION
list all branches list all branches
``` ```
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/branch/list.ts)_ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/branch/list.ts)_
## `eas branch:rename` ## `eas branch:rename`
@@ -293,7 +292,7 @@ DESCRIPTION
rename a branch rename a branch
``` ```
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/branch/rename.ts)_ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/branch/rename.ts)_
## `eas branch:view [NAME]` ## `eas branch:view [NAME]`
@@ -316,7 +315,7 @@ DESCRIPTION
view a branch view a branch
``` ```
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/branch/view.ts)_ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/branch/view.ts)_
## `eas build` ## `eas build`
@@ -346,7 +345,7 @@ DESCRIPTION
start a build start a build
``` ```
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/index.ts)_ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/index.ts)_
## `eas build:cancel [BUILD_ID]` ## `eas build:cancel [BUILD_ID]`
@@ -363,7 +362,7 @@ DESCRIPTION
cancel a build cancel a build
``` ```
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/cancel.ts)_ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/cancel.ts)_
## `eas build:configure` ## `eas build:configure`
@@ -380,7 +379,7 @@ DESCRIPTION
configure the project to support EAS Build configure the project to support EAS Build
``` ```
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/configure.ts)_ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/configure.ts)_
## `eas build:inspect` ## `eas build:inspect`
@@ -415,7 +414,7 @@ DESCRIPTION
inspect the state of the project at specific build stages, useful for troubleshooting inspect the state of the project at specific build stages, useful for troubleshooting
``` ```
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/inspect.ts)_ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/inspect.ts)_
## `eas build:list` ## `eas build:list`
@@ -453,7 +452,7 @@ DESCRIPTION
list all builds for your project list all builds for your project
``` ```
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/list.ts)_ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/list.ts)_
## `eas build:resign` ## `eas build:resign`
@@ -479,7 +478,7 @@ DESCRIPTION
re-sign a build archive re-sign a build archive
``` ```
_See code: [src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/resign.ts)_ _See code: [src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/resign.ts)_
## `eas build:run` ## `eas build:run`
@@ -503,7 +502,7 @@ DESCRIPTION
run simulator/emulator builds from eas-cli run simulator/emulator builds from eas-cli
``` ```
_See code: [src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/run.ts)_ _See code: [src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/run.ts)_
## `eas build:submit` ## `eas build:submit`
@@ -552,7 +551,7 @@ DESCRIPTION
get the latest version from EAS servers get the latest version from EAS servers
``` ```
_See code: [src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/version/get.ts)_ _See code: [src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/version/get.ts)_
## `eas build:version:set` ## `eas build:version:set`
@@ -571,7 +570,7 @@ DESCRIPTION
update version of an app update version of an app
``` ```
_See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/version/set.ts)_ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/version/set.ts)_
## `eas build:version:sync` ## `eas build:version:sync`
@@ -590,7 +589,7 @@ DESCRIPTION
update a version in native code with a value stored on EAS servers update a version in native code with a value stored on EAS servers
``` ```
_See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/version/sync.ts)_ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/version/sync.ts)_
## `eas build:view [BUILD_ID]` ## `eas build:view [BUILD_ID]`
@@ -607,7 +606,7 @@ DESCRIPTION
view a build for your project view a build for your project
``` ```
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/build/view.ts)_ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/build/view.ts)_
## `eas channel:create [NAME]` ## `eas channel:create [NAME]`
@@ -628,7 +627,7 @@ DESCRIPTION
create a channel create a channel
``` ```
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/channel/create.ts)_ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/channel/create.ts)_
## `eas channel:edit [NAME]` ## `eas channel:edit [NAME]`
@@ -650,7 +649,7 @@ DESCRIPTION
point a channel at a new branch point a channel at a new branch
``` ```
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/channel/edit.ts)_ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/channel/edit.ts)_
## `eas channel:list` ## `eas channel:list`
@@ -670,7 +669,7 @@ DESCRIPTION
list all channels list all channels
``` ```
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/channel/list.ts)_ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/channel/list.ts)_
## `eas channel:rollout [CHANNEL]` ## `eas channel:rollout [CHANNEL]`
@@ -694,7 +693,7 @@ DESCRIPTION
Roll a new branch out on a channel incrementally. Roll a new branch out on a channel incrementally.
``` ```
_See code: [src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/channel/rollout.ts)_ _See code: [src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/channel/rollout.ts)_
## `eas channel:view [NAME]` ## `eas channel:view [NAME]`
@@ -717,7 +716,7 @@ DESCRIPTION
view a channel view a channel
``` ```
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/channel/view.ts)_ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/channel/view.ts)_
## `eas config` ## `eas config`
@@ -738,7 +737,7 @@ DESCRIPTION
display project configuration (app.json + eas.json) display project configuration (app.json + eas.json)
``` ```
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/config.ts)_ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/config.ts)_
## `eas credentials` ## `eas credentials`
@@ -755,7 +754,7 @@ DESCRIPTION
manage credentials manage credentials
``` ```
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/credentials.ts)_ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/credentials.ts)_
## `eas device:create` ## `eas device:create`
@@ -769,7 +768,7 @@ DESCRIPTION
register new Apple Devices to use for internal distribution register new Apple Devices to use for internal distribution
``` ```
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/device/create.ts)_ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/device/create.ts)_
## `eas device:delete` ## `eas device:delete`
@@ -789,7 +788,7 @@ DESCRIPTION
remove a registered device from your account remove a registered device from your account
``` ```
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/device/delete.ts)_ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/device/delete.ts)_
## `eas device:list` ## `eas device:list`
@@ -810,7 +809,7 @@ DESCRIPTION
list all registered devices for your account list all registered devices for your account
``` ```
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/device/list.ts)_ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/device/list.ts)_
## `eas device:rename` ## `eas device:rename`
@@ -831,7 +830,7 @@ DESCRIPTION
rename a registered device rename a registered device
``` ```
_See code: [src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/device/rename.ts)_ _See code: [src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/device/rename.ts)_
## `eas device:view [UDID]` ## `eas device:view [UDID]`
@@ -845,7 +844,7 @@ DESCRIPTION
view a device for your project view a device for your project
``` ```
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/device/view.ts)_ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/device/view.ts)_
## `eas diagnostics` ## `eas diagnostics`
@@ -859,7 +858,7 @@ DESCRIPTION
display environment info display environment info
``` ```
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/diagnostics.ts)_ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/diagnostics.ts)_
## `eas help [COMMAND]` ## `eas help [COMMAND]`
@@ -947,7 +946,7 @@ DESCRIPTION
validate the local store configuration validate the local store configuration
``` ```
_See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/metadata/lint.ts)_ _See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/metadata/lint.ts)_
## `eas metadata:pull` ## `eas metadata:pull`
@@ -964,7 +963,7 @@ DESCRIPTION
generate the local store configuration from the app stores generate the local store configuration from the app stores
``` ```
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/metadata/pull.ts)_ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/metadata/pull.ts)_
## `eas metadata:push` ## `eas metadata:push`
@@ -981,7 +980,7 @@ DESCRIPTION
sync the local store configuration to the app stores sync the local store configuration to the app stores
``` ```
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/metadata/push.ts)_ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/metadata/push.ts)_
## `eas open` ## `eas open`
@@ -995,7 +994,7 @@ DESCRIPTION
open the project page in a web browser open the project page in a web browser
``` ```
_See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/open.ts)_ _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/open.ts)_
## `eas project:info` ## `eas project:info`
@@ -1009,7 +1008,7 @@ DESCRIPTION
information about the current project information about the current project
``` ```
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/project/info.ts)_ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/project/info.ts)_
## `eas project:init` ## `eas project:init`
@@ -1031,7 +1030,7 @@ ALIASES
$ eas init $ eas init
``` ```
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/project/init.ts)_ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/project/init.ts)_
## `eas secret:create` ## `eas secret:create`
@@ -1054,7 +1053,7 @@ DESCRIPTION
create an environment secret on the current project or owner account create an environment secret on the current project or owner account
``` ```
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/secret/create.ts)_ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/secret/create.ts)_
## `eas secret:delete` ## `eas secret:delete`
@@ -1072,7 +1071,7 @@ DESCRIPTION
delete an environment secret by ID delete an environment secret by ID
``` ```
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/secret/delete.ts)_ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/secret/delete.ts)_
## `eas secret:list` ## `eas secret:list`
@@ -1086,7 +1085,7 @@ DESCRIPTION
list environment secrets available for your current app list environment secrets available for your current app
``` ```
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/secret/list.ts)_ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/secret/list.ts)_
## `eas secret:push` ## `eas secret:push`
@@ -1106,7 +1105,7 @@ DESCRIPTION
read environment secrets from env file and store on the server read environment secrets from env file and store on the server
``` ```
_See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/secret/push.ts)_ _See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/secret/push.ts)_
## `eas submit` ## `eas submit`
@@ -1136,7 +1135,7 @@ ALIASES
$ eas build:submit $ eas build:submit
``` ```
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/submit.ts)_ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/submit.ts)_
## `eas update` ## `eas update`
@@ -1144,11 +1143,12 @@ publish an update group
``` ```
USAGE USAGE
$ eas update [--branch <value>] [--channel <value>] [--message <value>] [--republish | --input-dir <value> $ eas update [--branch <value>] [--channel <value>] [-m <value>] [--republish | --input-dir <value> |
| --skip-bundler] [--group <value> | | ] [--clear-cache] [-p android|ios|all] [--auto] [--private-key-path <value>] --skip-bundler] [--group <value> | | ] [--clear-cache] [-p android|ios|all] [--auto] [--private-key-path <value>]
[--json --non-interactive] [--json --non-interactive]
FLAGS FLAGS
-m, --message=<value> A short message describing the update
-p, --platform=(android|ios|all) [default: all] -p, --platform=(android|ios|all) [default: all]
--auto Use the current git branch and commit message for the EAS branch and update message --auto Use the current git branch and commit message for the EAS branch and update message
--branch=<value> Branch to publish the update group on --branch=<value> Branch to publish the update group on
@@ -1157,7 +1157,6 @@ FLAGS
--group=<value> Update group to republish (deprecated, see republish command) --group=<value> Update group to republish (deprecated, see republish command)
--input-dir=<value> [default: dist] Location of the bundle --input-dir=<value> [default: dist] Location of the bundle
--json Enable JSON output, non-JSON messages will be printed to stderr. --json Enable JSON output, non-JSON messages will be printed to stderr.
--message=<value> A short message describing the update
--non-interactive Run the command in non-interactive mode. --non-interactive Run the command in non-interactive mode.
--private-key-path=<value> File containing the PEM-encoded private key corresponding to the certificate in --private-key-path=<value> File containing the PEM-encoded private key corresponding to the certificate in
expo-updates' configuration. Defaults to a file named "private-key.pem" in the expo-updates' configuration. Defaults to a file named "private-key.pem" in the
@@ -1169,7 +1168,7 @@ DESCRIPTION
publish an update group publish an update group
``` ```
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/index.ts)_ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/index.ts)_
## `eas update:configure` ## `eas update:configure`
@@ -1187,7 +1186,7 @@ DESCRIPTION
configure the project to support EAS Update configure the project to support EAS Update
``` ```
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/configure.ts)_ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/configure.ts)_
## `eas update:delete GROUPID` ## `eas update:delete GROUPID`
@@ -1208,7 +1207,7 @@ DESCRIPTION
delete all the updates in an update group delete all the updates in an update group
``` ```
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/delete.ts)_ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/delete.ts)_
## `eas update:list` ## `eas update:list`
@@ -1230,7 +1229,7 @@ DESCRIPTION
view the recent updates view the recent updates
``` ```
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/list.ts)_ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/list.ts)_
## `eas update:republish` ## `eas update:republish`
@@ -1238,23 +1237,23 @@ roll back to an existing update
``` ```
USAGE USAGE
$ eas update:republish [--channel <value> | --branch <value> | --group <value>] [--message <value>] [-p $ eas update:republish [--channel <value> | --branch <value> | --group <value>] [-m <value>] [-p android|ios|all]
android|ios|all] [--json --non-interactive] [--json --non-interactive]
FLAGS FLAGS
-m, --message=<value> Short message describing the republished update
-p, --platform=(android|ios|all) [default: all] -p, --platform=(android|ios|all) [default: all]
--branch=<value> Branch name to select an update to republish from --branch=<value> Branch name to select an update to republish from
--channel=<value> Channel name to select an update to republish from --channel=<value> Channel name to select an update to republish from
--group=<value> Update group ID to republish --group=<value> Update group ID to republish
--json Enable JSON output, non-JSON messages will be printed to stderr. --json Enable JSON output, non-JSON messages will be printed to stderr.
--message=<value> Short message describing the republished update
--non-interactive Run the command in non-interactive mode. --non-interactive Run the command in non-interactive mode.
DESCRIPTION DESCRIPTION
roll back to an existing update roll back to an existing update
``` ```
_See code: [src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/republish.ts)_ _See code: [src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/republish.ts)_
## `eas update:view GROUPID` ## `eas update:view GROUPID`
@@ -1274,7 +1273,7 @@ DESCRIPTION
update group details update group details
``` ```
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/update/view.ts)_ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/update/view.ts)_
## `eas webhook:create` ## `eas webhook:create`
@@ -1295,7 +1294,7 @@ DESCRIPTION
create a webhook create a webhook
``` ```
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/webhook/create.ts)_ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/webhook/create.ts)_
## `eas webhook:delete [ID]` ## `eas webhook:delete [ID]`
@@ -1315,7 +1314,7 @@ DESCRIPTION
delete a webhook delete a webhook
``` ```
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/webhook/delete.ts)_ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/webhook/delete.ts)_
## `eas webhook:list` ## `eas webhook:list`
@@ -1333,7 +1332,7 @@ DESCRIPTION
list webhooks list webhooks
``` ```
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/webhook/list.ts)_ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/webhook/list.ts)_
## `eas webhook:update` ## `eas webhook:update`
@@ -1355,7 +1354,7 @@ DESCRIPTION
update a webhook update a webhook
``` ```
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/webhook/update.ts)_ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/webhook/update.ts)_
## `eas webhook:view ID` ## `eas webhook:view ID`
@@ -1372,7 +1371,7 @@ DESCRIPTION
view a webhook view a webhook
``` ```
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v3.14.0/packages/eas-cli/src/commands/webhook/view.ts)_ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v3.15.1/packages/eas-cli/src/commands/webhook/view.ts)_
## `eas whoami` ## `eas whoami`
@@ -1388,5 +1387,4 @@ DESCRIPTION
ALIASES ALIASES
$ eas whoami $ eas whoami
``` ```
<!-- commandsstop --> <!-- commandsstop -->
+10 -10
View File
@@ -1,7 +1,7 @@
{ {
"name": "eas-cli", "name": "eas-cli",
"description": "EAS command line tool", "description": "EAS command line tool",
"version": "3.14.0", "version": "3.15.1",
"author": "Expo <[email protected]>", "author": "Expo <[email protected]>",
"bin": { "bin": {
"eas": "./bin/run" "eas": "./bin/run"
@@ -10,11 +10,11 @@
"dependencies": { "dependencies": {
"@expo/apple-utils": "1.3.1", "@expo/apple-utils": "1.3.1",
"@expo/code-signing-certificates": "0.0.5", "@expo/code-signing-certificates": "0.0.5",
"@expo/config": "7.0.3", "@expo/config": "8.1.2",
"@expo/config-plugins": "6.0.2", "@expo/config-plugins": "7.2.4",
"@expo/config-types": "47.0.0", "@expo/config-types": "49.0.0",
"@expo/eas-build-job": "1.0.13", "@expo/eas-build-job": "1.0.13",
"@expo/eas-json": "3.13.0", "@expo/eas-json": "3.15.1",
"@expo/json-file": "8.2.37", "@expo/json-file": "8.2.37",
"@expo/multipart-body-parser": "1.1.0", "@expo/multipart-body-parser": "1.1.0",
"@expo/osascript": "2.0.33", "@expo/osascript": "2.0.33",
@@ -23,17 +23,18 @@
"@expo/plist": "0.0.20", "@expo/plist": "0.0.20",
"@expo/plugin-help": "5.1.22", "@expo/plugin-help": "5.1.22",
"@expo/plugin-warn-if-update-available": "2.5.0", "@expo/plugin-warn-if-update-available": "2.5.0",
"@expo/prebuild-config": "5.0.7", "@expo/prebuild-config": "6.2.5",
"@expo/results": "1.0.0", "@expo/results": "1.0.0",
"@expo/rudder-sdk-node": "1.1.1", "@expo/rudder-sdk-node": "1.1.1",
"@expo/spawn-async": "1.7.0", "@expo/spawn-async": "1.7.0",
"@expo/steps": "1.0.23", "@expo/steps": "1.0.25",
"@expo/timeago.js": "1.0.0", "@expo/timeago.js": "1.0.0",
"@oclif/core": "1.23.2", "@oclif/core": "1.23.2",
"@oclif/plugin-autocomplete": "1.3.10", "@oclif/plugin-autocomplete": "1.3.10",
"@segment/ajv-human-errors": "^2.1.2", "@segment/ajv-human-errors": "^2.1.2",
"@urql/core": "3.1.1", "@urql/core": "4.0.11",
"@urql/exchange-retry": "1.0.0", "@urql/exchange-graphcache": "6.1.4",
"@urql/exchange-retry": "1.2.0",
"ajv": "8.11.0", "ajv": "8.11.0",
"ajv-formats": "2.1.1", "ajv-formats": "2.1.1",
"better-opn": "3.0.2", "better-opn": "3.0.2",
@@ -47,7 +48,6 @@
"fast-glob": "3.2.12", "fast-glob": "3.2.12",
"figures": "3.2.0", "figures": "3.2.0",
"form-data": "4.0.0", "form-data": "4.0.0",
"freeport-async": "2.0.0",
"fs-extra": "10.1.0", "fs-extra": "10.1.0",
"getenv": "1.0.0", "getenv": "1.0.0",
"gradle-to-js": "2.0.1", "gradle-to-js": "2.0.1",
-12
View File
@@ -2,7 +2,6 @@ import { JSONValue } from '@expo/json-file';
import { ApiV2Error } from './ApiV2Error'; import { ApiV2Error } from './ApiV2Error';
import fetch, { RequestError, RequestInit } from './fetch'; import fetch, { RequestError, RequestInit } from './fetch';
import { getFreePortAsync } from './utils/port';
interface RequestOptions { interface RequestOptions {
body: JSONValue; body: JSONValue;
@@ -105,14 +104,3 @@ export function getEASUpdateURL(projectId: string): string {
return new URL(projectId, `https://u.expo.dev`).href; return new URL(projectId, `https://u.expo.dev`).href;
} }
} }
export async function getSsoLocalServerPortAsync(): Promise<number> {
let startPort: number;
if (process.env.SSO_LOCAL_SERVER_PORT) {
startPort = Number(process.env.SSO_LOCAL_SERVER_PORT);
} else {
startPort = 19300;
}
const port = await getFreePortAsync(startPort);
return port;
}
@@ -13,6 +13,8 @@ import {
EasBuildFreeTierDisabledAndroidError, EasBuildFreeTierDisabledAndroidError,
EasBuildFreeTierDisabledError, EasBuildFreeTierDisabledError,
EasBuildFreeTierDisabledIOSError, EasBuildFreeTierDisabledIOSError,
EasBuildFreeTierIosLimitExceededError,
EasBuildFreeTierLimitExceededError,
EasBuildResourceClassNotAvailableInFreeTierError, EasBuildResourceClassNotAvailableInFreeTierError,
EasBuildTooManyPendingBuildsError, EasBuildTooManyPendingBuildsError,
RequestValidationError, RequestValidationError,
@@ -25,12 +27,18 @@ beforeEach(() => {
const EXPECTED_STRINGIFIED_GRAPHQL_ERROR_JSON = `[ const EXPECTED_STRINGIFIED_GRAPHQL_ERROR_JSON = `[
{ {
"name": "GraphQLError",
"extensions": {},
"message": "Error 1" "message": "Error 1"
}, },
{ {
"name": "GraphQLError",
"extensions": {},
"message": "Error 2" "message": "Error 2"
}, },
{ {
"name": "GraphQLError",
"extensions": {},
"message": "Error 3" "message": "Error 3"
} }
]`; ]`;
@@ -280,6 +288,45 @@ describe(Build.name, () => {
); );
}); });
}); });
describe('for EAS_BUILD_FREE_TIER_LIMIT_EXCEEDED', () => {
it('throws correct EasCommandError subclass', async () => {
const platform = Platform.ANDROID;
const graphQLError = getGraphQLError('Error 1', 'EAS_BUILD_FREE_TIER_LIMIT_EXCEEDED');
const graphQLErrors = [graphQLError];
const error = new CombinedError({ graphQLErrors });
const handleBuildRequestErrorThrownError = getError<EasBuildFreeTierLimitExceededError>(
() => {
handleBuildRequestError(error, platform);
}
);
assertReThrownError(
handleBuildRequestErrorThrownError,
EasBuildFreeTierLimitExceededError,
'Error 1'
);
});
});
describe('for EAS_BUILD_FREE_TIER_IOS_LIMIT_EXCEEDED', () => {
it('throws correct EasCommandError subclass', async () => {
const platform = Platform.ANDROID;
const graphQLError = getGraphQLError('Error 1', 'EAS_BUILD_FREE_TIER_IOS_LIMIT_EXCEEDED');
const graphQLErrors = [graphQLError];
const error = new CombinedError({ graphQLErrors });
const handleBuildRequestErrorThrownError =
getError<EasBuildFreeTierIosLimitExceededError>(() => {
handleBuildRequestError(error, platform);
});
assertReThrownError(
handleBuildRequestErrorThrownError,
EasBuildFreeTierIosLimitExceededError,
'Error 1'
);
});
});
describe('for VALIDATION_ERROR', () => { describe('for VALIDATION_ERROR', () => {
describe('with Android', () => { describe('with Android', () => {
@@ -424,6 +471,29 @@ describe(Build.name, () => {
assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage); assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage);
}); });
it('throws base Error class with message including all error messages if combined error has multiple GraphQL errors', async () => {
const platform = Platform.ANDROID;
const graphQLErrors = [
getGraphQLError('Error 1', 'UNKNOWN_GRAPHQL_ERROR'),
getGraphQLError('Error 2', 'OTHER_GRAPHQL_ERROR'),
getGraphQLError('Error 3', 'YET_ANOTHER_GRAPHQL_ERROR'),
];
const error = new CombinedError({ graphQLErrors });
const expectedMessage =
`${EXPECTED_GENERIC_MESSAGE}\n` +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 1\n' +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 2\n' +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 3';
const handleBuildRequestErrorThrownError = getError<Error>(() => {
handleBuildRequestError(error, platform);
});
assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage);
});
describe('without request ID', () => { describe('without request ID', () => {
it('throws base Error class with custom message without request ID line', async () => { it('throws base Error class with custom message without request ID line', async () => {
const platform = Platform.ANDROID; const platform = Platform.ANDROID;
@@ -455,6 +525,29 @@ describe(Build.name, () => {
assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage); assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage);
}); });
it('throws base Error class with message including all error messages if combined error has multiple GraphQL errors', async () => {
const platform = Platform.IOS;
const graphQLErrors = [
getGraphQLError('Error 1', 'UNKNOWN_GRAPHQL_ERROR'),
getGraphQLError('Error 2', 'OTHER_GRAPHQL_ERROR'),
getGraphQLError('Error 3', 'YET_ANOTHER_GRAPHQL_ERROR'),
];
const error = new CombinedError({ graphQLErrors });
const expectedMessage =
`${EXPECTED_GENERIC_MESSAGE}\n` +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 1\n' +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 2\n' +
`Request ID: ${mockRequestId}\n` +
'Error message: Error 3';
const handleBuildRequestErrorThrownError = getError<Error>(() => {
handleBuildRequestError(error, platform);
});
assertReThrownError(handleBuildRequestErrorThrownError, Error, expectedMessage);
});
describe('without request ID', () => { describe('without request ID', () => {
it('throws base Error class with custom message without request ID line', async () => { it('throws base Error class with custom message without request ID line', async () => {
const platform = Platform.IOS; const platform = Platform.IOS;
+21 -8
View File
@@ -4,6 +4,7 @@ import assert from 'assert';
import chalk from 'chalk'; import chalk from 'chalk';
import cliProgress from 'cli-progress'; import cliProgress from 'cli-progress';
import fs from 'fs-extra'; import fs from 'fs-extra';
import { GraphQLError } from 'graphql/error';
import nullthrows from 'nullthrows'; import nullthrows from 'nullthrows';
import { BuildEvent } from '../analytics/AnalyticsManager'; import { BuildEvent } from '../analytics/AnalyticsManager';
@@ -42,6 +43,8 @@ import {
EasBuildFreeTierDisabledAndroidError, EasBuildFreeTierDisabledAndroidError,
EasBuildFreeTierDisabledError, EasBuildFreeTierDisabledError,
EasBuildFreeTierDisabledIOSError, EasBuildFreeTierDisabledIOSError,
EasBuildFreeTierIosLimitExceededError,
EasBuildFreeTierLimitExceededError,
EasBuildProjectArchiveUploadError, EasBuildProjectArchiveUploadError,
EasBuildResourceClassNotAvailableInFreeTierError, EasBuildResourceClassNotAvailableInFreeTierError,
EasBuildTooManyPendingBuildsError, EasBuildTooManyPendingBuildsError,
@@ -183,6 +186,8 @@ const SERVER_SIDE_DEFINED_ERRORS: Record<string, typeof EasCommandError> = {
EAS_BUILD_FREE_TIER_DISABLED: EasBuildFreeTierDisabledError, EAS_BUILD_FREE_TIER_DISABLED: EasBuildFreeTierDisabledError,
EAS_BUILD_FREE_TIER_DISABLED_IOS: EasBuildFreeTierDisabledIOSError, EAS_BUILD_FREE_TIER_DISABLED_IOS: EasBuildFreeTierDisabledIOSError,
EAS_BUILD_FREE_TIER_DISABLED_ANDROID: EasBuildFreeTierDisabledAndroidError, EAS_BUILD_FREE_TIER_DISABLED_ANDROID: EasBuildFreeTierDisabledAndroidError,
EAS_BUILD_FREE_TIER_LIMIT_EXCEEDED: EasBuildFreeTierLimitExceededError,
EAS_BUILD_FREE_TIER_IOS_LIMIT_EXCEEDED: EasBuildFreeTierIosLimitExceededError,
EAS_BUILD_RESOURCE_CLASS_NOT_AVAILABLE_IN_FREE_TIER: EAS_BUILD_RESOURCE_CLASS_NOT_AVAILABLE_IN_FREE_TIER:
EasBuildResourceClassNotAvailableInFreeTierError, EasBuildResourceClassNotAvailableInFreeTierError,
VALIDATION_ERROR: RequestValidationError, VALIDATION_ERROR: RequestValidationError,
@@ -206,15 +211,19 @@ export function handleBuildRequestError(error: any, platform: Platform): never {
`You have already reached the maximum number of pending ${requestedPlatformDisplayNames[platform]} builds for your account. Try again later.` `You have already reached the maximum number of pending ${requestedPlatformDisplayNames[platform]} builds for your account. Try again later.`
); );
} else if (error?.graphQLErrors) { } else if (error?.graphQLErrors) {
const graphQLError = error.graphQLErrors[0]; const errorMessage = error.graphQLErrors
const requestIdLine = graphQLError?.extensions?.requestId .map((graphQLError: GraphQLError) => {
? `\nRequest ID: ${graphQLError.extensions.requestId}` const requestIdLine = graphQLError?.extensions?.requestId
: ''; ? `\nRequest ID: ${graphQLError.extensions.requestId}`
const originalErrorMessage = graphQLError?.message : '';
? `\nError message: ${graphQLError.message}` const errorMessageLine = graphQLError?.message
: ''; ? `\nError message: ${graphQLError.message}`
: '';
return `${requestIdLine}${errorMessageLine}`;
})
.join('');
throw new Error( throw new Error(
`Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, report the issue.${requestIdLine}${originalErrorMessage}` `Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, report the issue.${errorMessage}`
); );
} }
throw error; throw error;
@@ -246,6 +255,10 @@ async function uploadProjectAsync<TPlatform extends Platform>(
); );
} }
if (projectTarball.size > 2 * 1024 * 1024 * 1024) {
throw new Error('Project archive is too big. Maximum allowed size is 2GB.');
}
projectTarballPath = projectTarball.path; projectTarballPath = projectTarball.path;
const bucketKey = await uploadFileAtPathToGCSAsync( const bucketKey = await uploadFileAtPathToGCSAsync(
+4
View File
@@ -8,6 +8,10 @@ export class EasBuildFreeTierDisabledIOSError extends EasCommandError {}
export class EasBuildFreeTierDisabledAndroidError extends EasCommandError {} export class EasBuildFreeTierDisabledAndroidError extends EasCommandError {}
export class EasBuildFreeTierLimitExceededError extends EasCommandError {}
export class EasBuildFreeTierIosLimitExceededError extends EasCommandError {}
export class EasBuildResourceClassNotAvailableInFreeTierError extends EasCommandError {} export class EasBuildResourceClassNotAvailableInFreeTierError extends EasCommandError {}
export class RequestValidationError extends EasCommandError {} export class RequestValidationError extends EasCommandError {}
+1 -1
View File
@@ -6,7 +6,7 @@ import semver from 'semver';
import { ora } from '../ora'; import { ora } from '../ora';
const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin'; const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin';
const PLUGIN_PACKAGE_VERSION = '1.0.24'; const PLUGIN_PACKAGE_VERSION = '1.0.27';
export enum LocalBuildMode { export enum LocalBuildMode {
/** /**
@@ -24,7 +24,7 @@ import {
} from '../graphql/generated'; } from '../graphql/generated';
import { BuildQuery } from '../graphql/queries/BuildQuery'; import { BuildQuery } from '../graphql/queries/BuildQuery';
import { toAppPlatform, toPlatform } from '../graphql/types/AppPlatform'; import { toAppPlatform, toPlatform } from '../graphql/types/AppPlatform';
import Log from '../log'; import Log, { learnMore } from '../log';
import { import {
RequestedPlatform, RequestedPlatform,
appPlatformDisplayNames, appPlatformDisplayNames,
@@ -118,6 +118,13 @@ export async function runBuildAndSubmitAsync(
platforms, platforms,
profileName: flags.profile ?? undefined, profileName: flags.profile ?? undefined,
}); });
Log.log(
`Loaded "env" configuration for the "${buildProfiles[0].profileName}" profile: ${
buildProfiles[0].profile.env
? Object.keys(buildProfiles[0].profile.env).join(', ')
: 'no environment variables specified'
}. ${learnMore('https://docs.expo.dev/build-reference/variables/')}`
);
await ensureExpoDevClientInstalledForDevClientBuildsAsync({ await ensureExpoDevClientInstalledForDevClientBuildsAsync({
projectDir, projectDir,
@@ -0,0 +1,8 @@
export class ListChannels {
constructor() {}
async runAsync(): Promise<void> {}
// TODO return channels fragment
async listChannelsAsync(): Promise<void> {}
}
@@ -1,5 +1,6 @@
import { Command } from '@oclif/core'; import { Command } from '@oclif/core';
import { CombinedError } from '@urql/core'; import { CombinedError } from '@urql/core';
import { GraphQLError } from 'graphql/error';
import nullthrows from 'nullthrows'; import nullthrows from 'nullthrows';
import { import {
@@ -193,10 +194,15 @@ export default abstract class EasCommand extends Command {
if (err instanceof EasCommandError) { if (err instanceof EasCommandError) {
Log.error(err.message); Log.error(err.message);
} else if (err instanceof CombinedError && err?.graphQLErrors) { } else if (err instanceof CombinedError && err?.graphQLErrors) {
let cleanMessage = err.message.replace('[GraphQL] ', ''); const cleanMessage = err?.graphQLErrors
cleanMessage += err?.graphQLErrors?.[0]?.extensions?.requestId .map((graphQLError: GraphQLError) => {
? `\nRequest ID: ${err.graphQLErrors[0].extensions.requestId}` const messageLine = graphQLError.message.replace('[GraphQL] ', '');
: ''; const requestIdLine = graphQLError.extensions?.requestId
? `\nRequest ID: ${err.graphQLErrors[0].extensions.requestId}`
: '';
return `${messageLine}${requestIdLine}`;
})
.join('\n');
Log.error(cleanMessage); Log.error(cleanMessage);
baseMessage = BASE_GRAPHQL_ERROR_MESSAGE; baseMessage = BASE_GRAPHQL_ERROR_MESSAGE;
} else { } else {
@@ -172,6 +172,44 @@ describe(EasCommand.name, () => {
expect(logDebugSpy).toBeCalledWith(error); expect(logDebugSpy).toBeCalledWith(error);
}); });
it('logs the cleaned messages with request IDs if multiple GraphQL errors present', async () => {
const TestEasCommand = createTestEasCommand();
const logErrorSpy = jest.spyOn(Log, 'error');
const logDebugSpy = jest.spyOn(Log, 'debug');
const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync');
const graphQLErrors = [
new GraphQLError('Unexpected GraphQL error message', null, null, null, null, null, {
errorCode: 'UNKNOWN_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
new GraphQLError('Other GraphQL error message', null, null, null, null, null, {
errorCode: 'OTHER_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
new GraphQLError('Yet another GraphQL error message', null, null, null, null, null, {
errorCode: 'YET_ANOTHER_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
];
const error = new CombinedError({ graphQLErrors });
runAsyncMock.mockImplementation(() => {
throw error;
});
try {
await TestEasCommand.run();
} catch {}
expect(logErrorSpy).toBeCalledWith(
'Unexpected GraphQL error message\n' +
`Request ID: ${mockRequestId}\n` +
'Other GraphQL error message\n' +
`Request ID: ${mockRequestId}\n` +
'Yet another GraphQL error message\n' +
`Request ID: ${mockRequestId}`
);
expect(logDebugSpy).toBeCalledWith(error);
});
it('re-throws the error with default base message', async () => { it('re-throws the error with default base message', async () => {
const TestEasCommand = createTestEasCommand(); const TestEasCommand = createTestEasCommand();
const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync'); const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync');
@@ -186,7 +224,7 @@ describe(EasCommand.name, () => {
} }
}); });
it('re-throws the error with a different default base message in case of graphQLError', async () => { it('re-throws the error with a different default base message in case of CombinedError', async () => {
const TestEasCommand = createTestEasCommand(); const TestEasCommand = createTestEasCommand();
const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync'); const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync');
runAsyncMock.mockImplementation(() => { runAsyncMock.mockImplementation(() => {
@@ -200,6 +238,34 @@ describe(EasCommand.name, () => {
expect((caughtError as Error).message).toEqual('GraphQL request failed.'); expect((caughtError as Error).message).toEqual('GraphQL request failed.');
} }
}); });
it('re-throws the error with a different default base message in case of CombinedError with multiple GraphQLErrors', async () => {
const TestEasCommand = createTestEasCommand();
const runAsyncMock = jest.spyOn(TestEasCommand.prototype as any, 'runAsync');
runAsyncMock.mockImplementation(() => {
const graphQLErrors = [
new GraphQLError('Unexpected GraphQL error message', null, null, null, null, null, {
errorCode: 'UNEXPECTED_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
new GraphQLError('Other GraphQL error message', null, null, null, null, null, {
errorCode: 'OTHER_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
new GraphQLError('Yet another GraphQL error message', null, null, null, null, null, {
errorCode: 'YET_ANOTHER_GRAPHQL_ERROR',
requestId: mockRequestId,
}),
];
throw new CombinedError({ graphQLErrors });
});
try {
await TestEasCommand.run();
} catch (caughtError) {
expect(caughtError).toBeInstanceOf(Error);
expect((caughtError as Error).message).toEqual('GraphQL request failed.');
}
});
}); });
}); });
}); });
@@ -1,4 +1,4 @@
import { getConfig, modifyConfigAsync } from '@expo/config'; import { getConfig, getConfigFilePaths, modifyConfigAsync } from '@expo/config';
import { vol } from 'memfs'; import { vol } from 'memfs';
import { anything, instance, mock, when } from 'ts-mockito'; import { anything, instance, mock, when } from 'ts-mockito';
@@ -26,6 +26,10 @@ describe(getProjectIdAsync, () => {
let sessionManager: SessionManager; let sessionManager: SessionManager;
beforeEach(() => { beforeEach(() => {
jest
.mocked(getConfigFilePaths)
.mockReturnValue({ staticConfigPath: null, dynamicConfigPath: null });
const sessionManagerMock = mock<SessionManager>(); const sessionManagerMock = mock<SessionManager>();
when(sessionManagerMock.ensureLoggedInAsync(anything())).thenResolve({ when(sessionManagerMock.ensureLoggedInAsync(anything())).thenResolve({
actor: { actor: {
@@ -3,13 +3,14 @@ import {
Client, Client,
OperationContext, OperationContext,
OperationResult, OperationResult,
PromisifiedSource, OperationResultSource,
TypedDocumentNode, TypedDocumentNode,
cacheExchange,
createClient as createUrqlClient, createClient as createUrqlClient,
dedupExchange, cacheExchange as defaultCacheExchange,
fetchExchange, fetchExchange,
} from '@urql/core'; } from '@urql/core';
import { cacheExchange as graphqlCacheExchange } from '@urql/exchange-graphcache';
import { relayPagination } from '@urql/exchange-graphcache/extras';
import { retryExchange } from '@urql/exchange-retry'; import { retryExchange } from '@urql/exchange-retry';
import { DocumentNode } from 'graphql'; import { DocumentNode } from 'graphql';
import fetch from 'node-fetch'; import fetch from 'node-fetch';
@@ -22,18 +23,28 @@ export interface ExpoGraphqlClient extends Client {
query: DocumentNode | TypedDocumentNode<Data, Variables> | string, query: DocumentNode | TypedDocumentNode<Data, Variables> | string,
variables: Variables, variables: Variables,
context: Partial<OperationContext> & { additionalTypenames: string[] } context: Partial<OperationContext> & { additionalTypenames: string[] }
): PromisifiedSource<OperationResult<Data, Variables>>; ): OperationResultSource<OperationResult<Data, Variables>>;
} }
export function createGraphqlClient(authInfo: { // TODO: plumb this down, maybe use a feature gate for this?
accessToken: string | null; export function createGraphqlClient(
sessionSecret: string | null; authInfo: {
}): ExpoGraphqlClient { accessToken: string | null;
sessionSecret: string | null;
},
_options: { useGraphqlCachePolicy?: boolean } = {}
): ExpoGraphqlClient {
return createUrqlClient({ return createUrqlClient({
url: getExpoApiBaseUrl() + '/graphql', url: getExpoApiBaseUrl() + '/graphql',
exchanges: [ exchanges: [
dedupExchange, //options.useGraphqlCachePolicy ? graphqlCacheExchange() : defaultCacheExchange,
cacheExchange, graphqlCacheExchange({
resolvers: {
App: {
updateChannels: relayPagination(),
},
},
}),
retryExchange({ retryExchange({
maxDelayMs: 4000, maxDelayMs: 4000,
retryIf: (err, operation) => { retryIf: (err, operation) => {
@@ -11,7 +11,10 @@ import { isExpoUpdatesInstalled, isUsingEASUpdate } from '../../project/projectU
import { resolveWorkflowAsync } from '../../project/workflow'; import { resolveWorkflowAsync } from '../../project/workflow';
import { promptAsync } from '../../prompts'; import { promptAsync } from '../../prompts';
import { syncUpdatesConfigurationAsync as syncAndroidUpdatesConfigurationAsync } from '../../update/android/UpdatesModule'; import { syncUpdatesConfigurationAsync as syncAndroidUpdatesConfigurationAsync } from '../../update/android/UpdatesModule';
import { ensureEASUpdateIsConfiguredInEasJsonAsync } from '../../update/configure'; import {
ensureEASUpdateIsConfiguredInEasJsonAsync,
ensureUseClassicUpdatesIsRemovedAsync,
} from '../../update/configure';
import { syncUpdatesConfigurationAsync as syncIosUpdatesConfigurationAsync } from '../../update/ios/UpdatesModule'; import { syncUpdatesConfigurationAsync as syncIosUpdatesConfigurationAsync } from '../../update/ios/UpdatesModule';
import { getVcsClient } from '../../vcs'; import { getVcsClient } from '../../vcs';
@@ -63,6 +66,12 @@ export default class BuildConfigure extends EasCommand {
nonInteractive: false, nonInteractive: false,
}); });
if (didCreateEasJson && isUsingEASUpdate(exp, projectId)) { if (didCreateEasJson && isUsingEASUpdate(exp, projectId)) {
if (exp.updates?.useClassicUpdates) {
// NOTE: this method modifies the Expo config; be sure to use this function's return value
// if the config object is used later in the future
await ensureUseClassicUpdatesIsRemovedAsync({ exp, projectDir });
}
await ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir); await ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir);
} }
@@ -0,0 +1,27 @@
import { ExpoConfig } from '@expo/config';
import { instance, mock } from 'ts-mockito';
import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
import { ensureEASUpdateIsConfiguredAsync } from '../../../update/configure';
describe(ensureEASUpdateIsConfiguredAsync, () => {
it('errors with "useClassicUpdates" set and no app.json', async () => {
const graphqlClient = instance(mock<ExpoGraphqlClient>({}));
const exp: ExpoConfig = {
name: 'test',
slug: 'test',
updates: { useClassicUpdates: true },
};
await expect(async () => {
await ensureEASUpdateIsConfiguredAsync(graphqlClient, {
exp,
projectId: 'test',
projectDir: '/tmp/test',
platform: null,
});
}).rejects.toThrow(
`Your app config sets "updates.useClassicUpdates" but EAS Update does not support classic updates. Remove "useClassicUpdates" from your app config and run this command again.`
);
});
});
@@ -41,7 +41,7 @@ export default class UpdateConfigure extends EasCommand {
}); });
Log.log( Log.log(
'💡 The following process will configure your project to run EAS Update. These changes only apply to your local project files and you can safely revert them at any time.' '💡 The following process will configure your project to use EAS Update. These changes only apply to your local project files and you can safely revert them at any time.'
); );
await getVcsClient().ensureRepoExistsAsync(); await getVcsClient().ensureRepoExistsAsync();
@@ -56,7 +56,7 @@ export default class UpdateConfigure extends EasCommand {
await ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir); await ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir);
Log.addNewLineIfNone(); Log.addNewLineIfNone();
Log.log(`🎉 Your app is configured with EAS Update!`); Log.log(`🎉 Your app is configured to use EAS Update!`);
Log.newLine(); Log.newLine();
const easJsonExists = await easJsonExistsAsync(projectDir); const easJsonExists = await easJsonExistsAsync(projectDir);
if (!easJsonExists) { if (!easJsonExists) {
+10 -1
View File
@@ -6,7 +6,16 @@ export async function withErrorHandlingAsync<T>(promise: Promise<OperationResult
const { data, error } = await promise; const { data, error } = await promise;
if (error) { if (error) {
if (error.graphQLErrors.some(e => e?.extensions?.isTransient)) { if (
error.graphQLErrors.some(
e =>
e?.extensions?.isTransient &&
![
'EAS_BUILD_FREE_TIER_LIMIT_EXCEEDED',
'EAS_BUILD_FREE_TIER_IOS_LIMIT_EXCEEDED',
].includes(e?.extensions?.errorCode as string)
)
) {
Log.error(`We've encountered a transient error. Try again shortly.`); Log.error(`We've encountered a transient error. Try again shortly.`);
} }
throw error; throw error;
@@ -106,6 +106,41 @@ export const ChannelQuery = {
throw new Error(`Could not find channels on project with id ${appId}`); throw new Error(`Could not find channels on project with id ${appId}`);
} }
return updateChannels;
},
async viewUpdateChannelsPaginatedOnAppAsync(
graphqlClient: ExpoGraphqlClient,
{ appId, limit, offset }: ViewUpdateChannelsOnAppQueryVariables
): Promise<UpdateChannelObject[]> {
const response = await withErrorHandlingAsync(
graphqlClient
.query<ViewUpdateChannelsOnAppQuery, ViewUpdateChannelsOnAppQueryVariables>(
gql`
query ViewUpdateChannelsOnApp($appId: String!, $offset: Int!, $limit: Int!) {
app {
byId(appId: $appId) {
id
updateChannels(offset: $offset, limit: $limit) {
id
name
branchMapping
}
}
}
}
${print(UpdateFragmentNode)}
`,
{ appId, offset, limit },
{ additionalTypenames: ['UpdateChannel', 'UpdateBranch', 'Update'] }
)
.toPromise()
);
const { updateChannels } = response.app.byId;
if (!updateChannels) {
throw new Error(`Could not find channels on project with id ${appId}`);
}
return updateChannels; return updateChannels;
}, },
}; };
+10 -4
View File
@@ -3,6 +3,7 @@ import { Env } from '@expo/eas-build-job';
import JsonFile from '@expo/json-file'; import JsonFile from '@expo/json-file';
import fs from 'fs-extra'; import fs from 'fs-extra';
import Joi from 'joi'; import Joi from 'joi';
import nullthrows from 'nullthrows';
import path from 'path'; import path from 'path';
export type PublicExpoConfig = Omit< export type PublicExpoConfig = Omit<
@@ -93,19 +94,24 @@ export function ensureExpoConfigExists(projectDir: string): void {
} }
async function ensureStaticExpoConfigIsValidAsync(projectDir: string): Promise<void> { async function ensureStaticExpoConfigIsValidAsync(projectDir: string): Promise<void> {
const paths = getConfigFilePaths(projectDir); if (isUsingStaticExpoConfig(projectDir)) {
if (paths?.staticConfigPath?.endsWith('app.json') && !paths?.dynamicConfigPath) { const staticConfigPath = nullthrows(getConfigFilePaths(projectDir).staticConfigPath);
const staticConfig = await JsonFile.readAsync(paths.staticConfigPath); const staticConfig = await JsonFile.readAsync(staticConfigPath);
// Add the "expo" key if it doesn't exist on app.json yet, such as in // Add the "expo" key if it doesn't exist on app.json yet, such as in
// projects initialized with RNC CLI // projects initialized with RNC CLI
if (!staticConfig?.expo) { if (!staticConfig?.expo) {
staticConfig.expo = {}; staticConfig.expo = {};
await JsonFile.writeAsync(paths.staticConfigPath, staticConfig); await JsonFile.writeAsync(staticConfigPath, staticConfig);
} }
} }
} }
export function isUsingStaticExpoConfig(projectDir: string): boolean {
const paths = getConfigFilePaths(projectDir);
return !!(paths.staticConfigPath?.endsWith('app.json') && !paths.dynamicConfigPath);
}
export function getPublicExpoConfig( export function getPublicExpoConfig(
projectDir: string, projectDir: string,
opts: ExpoConfigOptions = {} opts: ExpoConfigOptions = {}
@@ -3,6 +3,7 @@ import { JSONObject } from '@expo/json-file';
import { getPrebuildConfigAsync } from '@expo/prebuild-config'; import { getPrebuildConfigAsync } from '@expo/prebuild-config';
import { readPlistAsync } from '../../utils/plist'; import { readPlistAsync } from '../../utils/plist';
import { hasIgnoredIosProjectAsync } from '../workflow';
interface Target { interface Target {
buildConfiguration?: string; buildConfiguration?: string;
@@ -13,6 +14,7 @@ export async function getManagedApplicationTargetEntitlementsAsync(
env: Record<string, string> env: Record<string, string>
): Promise<JSONObject> { ): Promise<JSONObject> {
const originalProcessEnv: NodeJS.ProcessEnv = process.env; const originalProcessEnv: NodeJS.ProcessEnv = process.env;
try { try {
process.env = { process.env = {
...process.env, ...process.env,
@@ -24,6 +26,7 @@ export async function getManagedApplicationTargetEntitlementsAsync(
projectRoot: projectDir, projectRoot: projectDir,
platforms: ['ios'], platforms: ['ios'],
introspect: true, introspect: true,
ignoreExistingNativeFiles: await hasIgnoredIosProjectAsync(projectDir),
}); });
return expWithMods.ios?.entitlements || {}; return expWithMods.ios?.entitlements || {};
} finally { } finally {
+3 -1
View File
@@ -644,7 +644,9 @@ export async function getRuntimeVersionObjectAsync(
Workflow.MANAGED; Workflow.MANAGED;
if (!isManaged) { if (!isManaged) {
throw new Error( throw new Error(
'Runtime version policies are only supported in the managed workflow. In the bare workflow, runtime version needs to be set manually.' `You're currently using the bare workflow, where runtime version policies are not supported. You must set your runtime version manually. For example, define your runtime version as "1.0.0", not {"policy": "appVersion"} in your app config. ${learnMore(
'https://docs.expo.dev/eas-update/runtime-versions'
)}`
); );
} }
} }
+12
View File
@@ -44,3 +44,15 @@ export async function resolveWorkflowPerPlatformAsync(
]); ]);
return { android, ios }; return { android, ios };
} }
export async function hasIgnoredIosProjectAsync(projectDir: string): Promise<boolean> {
const vcsClient = getVcsClient();
const vcsRootPath = path.normalize(await vcsClient.getRootPathAsync());
try {
const pbxProjectPath = IOSConfig.Paths.getPBXProjectPath(projectDir);
return await vcsClient.isFileIgnoredAsync(path.relative(vcsRootPath, pbxProjectPath));
} finally {
return false;
}
}
+78 -12
View File
@@ -9,13 +9,14 @@ import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGr
import { AppPlatform } from '../graphql/generated'; import { AppPlatform } from '../graphql/generated';
import Log, { learnMore } from '../log'; import Log, { learnMore } from '../log';
import { RequestedPlatform, appPlatformDisplayNames } from '../platform'; import { RequestedPlatform, appPlatformDisplayNames } from '../platform';
import { createOrModifyExpoConfigAsync } from '../project/expoConfig'; import { createOrModifyExpoConfigAsync, isUsingStaticExpoConfig } from '../project/expoConfig';
import { import {
installExpoUpdatesAsync, installExpoUpdatesAsync,
isExpoUpdatesInstalledAsDevDependency, isExpoUpdatesInstalledAsDevDependency,
isExpoUpdatesInstalledOrAvailable, isExpoUpdatesInstalledOrAvailable,
} from '../project/projectUtils'; } from '../project/projectUtils';
import { resolveWorkflowPerPlatformAsync } from '../project/workflow'; import { resolveWorkflowPerPlatformAsync } from '../project/workflow';
import { confirmAsync } from '../prompts';
import { syncUpdatesConfigurationAsync as syncAndroidUpdatesConfigurationAsync } from './android/UpdatesModule'; import { syncUpdatesConfigurationAsync as syncAndroidUpdatesConfigurationAsync } from './android/UpdatesModule';
import { syncUpdatesConfigurationAsync as syncIosUpdatesConfigurationAsync } from './ios/UpdatesModule'; import { syncUpdatesConfigurationAsync as syncIosUpdatesConfigurationAsync } from './ios/UpdatesModule';
@@ -154,6 +155,16 @@ async function ensureEASUpdatesIsConfiguredInExpoConfigAsync({
} }
} }
function serializeRuntimeVersionToString(
runtimeVersion: NonNullable<ExpoConfig['runtimeVersion']>
): string {
if (typeof runtimeVersion === 'object') {
return JSON.stringify(runtimeVersion);
} else {
return runtimeVersion;
}
}
function logEasUpdatesAutoConfig({ function logEasUpdatesAutoConfig({
modifyConfig, modifyConfig,
exp, exp,
@@ -175,21 +186,21 @@ function logEasUpdatesAutoConfig({
Log.withTick( Log.withTick(
`Configured runtimeVersion for ${appPlatformDisplayNames[AppPlatform.Android]} and ${ `Configured runtimeVersion for ${appPlatformDisplayNames[AppPlatform.Android]} and ${
appPlatformDisplayNames[AppPlatform.Ios] appPlatformDisplayNames[AppPlatform.Ios]
} with "${modifyConfig.android?.runtimeVersion ?? modifyConfig.runtimeVersion}"` } with "${serializeRuntimeVersionToString(androidRuntime)}"`
); );
} else { } else {
if (androidRuntime) { if (androidRuntime) {
Log.withTick( Log.withTick(
`Configured runtimeVersion for ${appPlatformDisplayNames[AppPlatform.Android]} with "${ `Configured runtimeVersion for ${
modifyConfig.android?.runtimeVersion ?? modifyConfig.runtimeVersion appPlatformDisplayNames[AppPlatform.Android]
}"` } with "${serializeRuntimeVersionToString(androidRuntime)}"`
); );
} }
if (iosRuntime) { if (iosRuntime) {
Log.withTick( Log.withTick(
`Configured runtimeVersion for ${appPlatformDisplayNames[AppPlatform.Ios]} with "${ `Configured runtimeVersion for ${
modifyConfig.ios?.runtimeVersion ?? modifyConfig.runtimeVersion appPlatformDisplayNames[AppPlatform.Ios]
}"` } with "${serializeRuntimeVersionToString(iosRuntime)}"`
); );
} }
} }
@@ -324,7 +335,8 @@ export async function ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir: stri
/** /**
* Make sure EAS Update is fully configured in the current project. * Make sure EAS Update is fully configured in the current project.
* This goes over a checklist and performs the following checks or changes: * This goes over a checklist and performs the following checks or changes:
* - Enure the `expo-updates` package is currently installed. * - Ensure `updates.useClassicUpdates` (SDK 49) is not set in the app config
* - Ensure the `expo-updates` package is currently installed.
* - Ensure `app.json` is configured for EAS Updates * - Ensure `app.json` is configured for EAS Updates
* - Sets `runtimeVersion` if not set * - Sets `runtimeVersion` if not set
* - Sets `updates.url` if not set * - Sets `updates.url` if not set
@@ -333,7 +345,7 @@ export async function ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir: stri
export async function ensureEASUpdateIsConfiguredAsync( export async function ensureEASUpdateIsConfiguredAsync(
graphqlClient: ExpoGraphqlClient, graphqlClient: ExpoGraphqlClient,
{ {
exp: expWithoutUpdates, exp: expMaybeWithoutUpdates,
projectId, projectId,
projectDir, projectDir,
platform, platform,
@@ -344,9 +356,17 @@ export async function ensureEASUpdateIsConfiguredAsync(
platform: RequestedPlatform | null; platform: RequestedPlatform | null;
} }
): Promise<void> { ): Promise<void> {
// EAS Update and SDK 49's "useClassicUpdates" option are mutually exclusive
if (expMaybeWithoutUpdates.updates?.useClassicUpdates) {
expMaybeWithoutUpdates = await ensureUseClassicUpdatesIsRemovedAsync({
exp: expMaybeWithoutUpdates,
projectDir,
});
}
const hasExpoUpdates = isExpoUpdatesInstalledOrAvailable( const hasExpoUpdates = isExpoUpdatesInstalledOrAvailable(
projectDir, projectDir,
expWithoutUpdates.sdkVersion expMaybeWithoutUpdates.sdkVersion
); );
const hasExpoUpdatesInDevDependencies = isExpoUpdatesInstalledAsDevDependency(projectDir); const hasExpoUpdatesInDevDependencies = isExpoUpdatesInstalledAsDevDependency(projectDir);
if (!hasExpoUpdates && !hasExpoUpdatesInDevDependencies) { if (!hasExpoUpdates && !hasExpoUpdatesInDevDependencies) {
@@ -367,7 +387,7 @@ export async function ensureEASUpdateIsConfiguredAsync(
const workflows = await resolveWorkflowPerPlatformAsync(projectDir); const workflows = await resolveWorkflowPerPlatformAsync(projectDir);
const { projectChanged, exp: expWithUpdates } = const { projectChanged, exp: expWithUpdates } =
await ensureEASUpdatesIsConfiguredInExpoConfigAsync({ await ensureEASUpdatesIsConfiguredInExpoConfigAsync({
exp: expWithoutUpdates, exp: expMaybeWithoutUpdates,
projectDir, projectDir,
projectId, projectId,
platform, platform,
@@ -392,3 +412,49 @@ export async function ensureEASUpdateIsConfiguredAsync(
Log.newLine(); Log.newLine();
} }
} }
export async function ensureUseClassicUpdatesIsRemovedAsync({
exp: expMaybeWithoutUpdates,
projectDir,
}: {
exp: ExpoConfig;
projectDir: string;
}): Promise<ExpoConfig> {
if (!isUsingStaticExpoConfig(projectDir)) {
throw new Error(
`Your app config sets "updates.useClassicUpdates" but EAS Update does not support classic updates. Remove "useClassicUpdates" from your app config and run this command again.`
);
}
const shouldEditConfig = await confirmAsync({
message: `Your app config sets "updates.useClassicUpdates" but EAS Update does not support classic updates. Remove "updates.useClassicUpdates" from your app config?`,
});
if (!shouldEditConfig) {
throw new Error(
`Manually remove "updates.useClassicUpdates" from your app config and run this command again.`
);
}
const editedExpoConfig = mergeExpoConfig(expMaybeWithoutUpdates, {
updates: { useClassicUpdates: undefined },
}) as ExpoConfig;
const result = await createOrModifyExpoConfigAsync(projectDir, editedExpoConfig);
switch (result.type) {
case 'success':
Log.withTick(`Removed "updates.useClassicUpdates"`);
expMaybeWithoutUpdates = editedExpoConfig;
break;
case 'warn':
case 'fail':
throw new Error(result.message);
default:
throw new Error(
`Unexpected result type "${result.type}" received when modifying the project config.`
);
}
return editedExpoConfig;
}
+48 -15
View File
@@ -1,3 +1,4 @@
import assert from 'assert';
import openBrowserAsync from 'better-opn'; import openBrowserAsync from 'better-opn';
import http from 'http'; import http from 'http';
import { Socket } from 'node:net'; import { Socket } from 'node:net';
@@ -5,22 +6,48 @@ import querystring from 'querystring';
import Log from '../log'; import Log from '../log';
export async function getSessionUsingBrowserAuthFlowAsync(options: { const successBody = `
<!DOCTYPE html>
<html lang="en">
<head>
<title>Expo SSO Login</title>
<meta charset="utf-8">
<style type="text/css">
html {
margin: 0;
padding: 0
}
body {
background-color: #fff;
font-family: Tahoma,Verdana;
font-size: 16px;
color: #000;
max-width: 100%;
box-sizing: border-box;
padding: .5rem;
margin: 1em;
overflow-wrap: break-word
}
</style>
</head>
<body>
SSO login complete. You may now close this tab and return to the command prompt.
</body>
</html>`;
export async function getSessionUsingBrowserAuthFlowAsync({
expoWebsiteUrl,
}: {
expoWebsiteUrl: string; expoWebsiteUrl: string;
serverPort: number;
}): Promise<string> { }): Promise<string> {
const { expoWebsiteUrl, serverPort } = options;
if (!expoWebsiteUrl || !serverPort) {
throw new Error('Expo website URL and local server port are required.');
}
const scheme = 'http'; const scheme = 'http';
const hostname = 'localhost'; const hostname = 'localhost';
const path = '/auth/callback'; const path = '/auth/callback';
const redirectUri = `${scheme}://${hostname}:${serverPort}${path}`;
const buildExpoSsoLoginUrl = (): string => { const buildExpoSsoLoginUrl = (port: number): string => {
const data = { const data = {
app_redirect_uri: redirectUri, app_redirect_uri: `${scheme}://${hostname}:${port}${path}`,
}; };
const params = querystring.stringify(data); const params = querystring.stringify(data);
return `${expoWebsiteUrl}/sso-login?${params}`; return `${expoWebsiteUrl}/sso-login?${params}`;
@@ -44,8 +71,8 @@ export async function getSessionUsingBrowserAuthFlowAsync(options: {
throw new Error('Request missing session_secret search parameter.'); throw new Error('Request missing session_secret search parameter.');
} }
resolve(sessionSecret); resolve(sessionSecret);
response.writeHead(200, { 'Content-Type': 'text/plain' }); response.writeHead(200, { 'Content-Type': 'text/html' });
response.write(`Website login has completed. You can now close this tab.`); response.write(successBody);
response.end(); response.end();
} catch (error) { } catch (error) {
reject(error); reject(error);
@@ -59,8 +86,17 @@ export async function getSessionUsingBrowserAuthFlowAsync(options: {
} }
); );
server.listen(serverPort, hostname, () => { server.listen(0, hostname, () => {
Log.log('Waiting for browser login...'); Log.log('Waiting for browser login...');
const address = server.address();
assert(
address !== null && typeof address === 'object',
'Server address and port should be set after listening has begun'
);
const port = address.port;
const authorizeUrl = buildExpoSsoLoginUrl(port);
openBrowserAsync(authorizeUrl);
}); });
server.on('connection', connection => { server.on('connection', connection => {
@@ -70,9 +106,6 @@ export async function getSessionUsingBrowserAuthFlowAsync(options: {
connections.delete(connection); connections.delete(connection);
}); });
}); });
const authorizeUrl = buildExpoSsoLoginUrl();
openBrowserAsync(authorizeUrl);
}); });
}; };
@@ -1,4 +1,4 @@
import { getExpoWebsiteBaseUrl, getSsoLocalServerPortAsync } from '../api'; import { getExpoWebsiteBaseUrl } from '../api';
import { getSessionUsingBrowserAuthFlowAsync } from './expoSsoLauncher'; import { getSessionUsingBrowserAuthFlowAsync } from './expoSsoLauncher';
import { fetchUserAsync } from './fetchUser'; import { fetchUserAsync } from './fetchUser';
@@ -7,11 +7,9 @@ export async function fetchSessionSecretAndSsoUserAsync(): Promise<{
id: string; id: string;
username: string; username: string;
}> { }> {
const config = { const sessionSecret = await getSessionUsingBrowserAuthFlowAsync({
expoWebsiteUrl: getExpoWebsiteBaseUrl(), expoWebsiteUrl: getExpoWebsiteBaseUrl(),
serverPort: await getSsoLocalServerPortAsync(), });
};
const sessionSecret = await getSessionUsingBrowserAuthFlowAsync(config);
const userData = await fetchUserAsync({ sessionSecret }); const userData = await fetchUserAsync({ sessionSecret });
-11
View File
@@ -1,11 +0,0 @@
import freeportAsync from 'freeport-async';
/** Get a free port or throw an error. */
export async function getFreePortAsync(rangeStart: number): Promise<number> {
const port = await freeportAsync(rangeStart, { hostnames: [null, 'localhost'] });
if (!port) {
throw new Error('No available port found');
}
return port;
}
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@expo/eas-json", "name": "@expo/eas-json",
"description": "A library for interacting with eas.json", "description": "A library for interacting with eas.json",
"version": "3.13.0", "version": "3.15.1",
"author": "Expo <[email protected]>", "author": "Expo <[email protected]>",
"bugs": "https://github.com/expo/eas-cli/issues", "bugs": "https://github.com/expo/eas-cli/issues",
"dependencies": { "dependencies": {
+4 -2
View File
@@ -334,6 +334,7 @@
"enum": [ "enum": [
"default", "default",
"latest", "latest",
"macos-ventura-13.4-xcode-14.3.1",
"macos-ventura-13.3-xcode-14.3", "macos-ventura-13.3-xcode-14.3",
"macos-monterey-12.6-xcode-14.2", "macos-monterey-12.6-xcode-14.2",
"macos-monterey-12.6-xcode-14.1", "macos-monterey-12.6-xcode-14.1",
@@ -345,8 +346,9 @@
"macos-big-sur-11.4-xcode-12.5" "macos-big-sur-11.4-xcode-12.5"
], ],
"markdownEnumDescriptions": [ "markdownEnumDescriptions": [
"`macos-monterey-12.6-xcode-14.2` for Apple silicon builders, `macos-monterey-12.6-xcode-14.1` for Intel builders", "`macos-ventura-13.3-xcode-14.3` for Apple silicon builders, `macos-monterey-12.6-xcode-14.1` for Intel builders",
"`macos-ventura-13.3-xcode-14.3` for Apple silicon builders, `macos-monterey-12.6-xcode-14.2` for Intel builders", "`macos-ventura-13.4-xcode-14.3.1` for Apple silicon builders, `macos-monterey-12.6-xcode-14.2` for Intel builders",
"only available for Apple silicon builders",
"only available for Apple silicon builders" "only available for Apple silicon builders"
] ]
}, },
-8
View File
@@ -1,8 +0,0 @@
declare module 'freeport-async' {
interface FreePortOptions {
hostnames?: (string | null)[];
}
function freePortAsync(rangeStart: number, options?: FreePortOptions): Promise<number>;
export = freePortAsync;
}
Generated
+77 -104
View File
@@ -2,6 +2,11 @@
# yarn lockfile v1 # yarn lockfile v1
"@0no-co/graphql.web@^1.0.1":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.4.tgz#9606eb651955499525d068ce0ad8bea596286ce2"
integrity sha512-W3ezhHGfO0MS1PtGloaTpg0PbaT8aZSmmaerL7idtU5F7oCI+uu25k+MsMS31BVFlp4aMkHSrNRxiD72IlK8TA==
"@ampproject/remapping@^2.1.0": "@ampproject/remapping@^2.1.0":
version "2.2.0" version "2.2.0"
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
@@ -1347,12 +1352,12 @@
node-forge "^1.2.1" node-forge "^1.2.1"
nullthrows "^1.1.1" nullthrows "^1.1.1"
"@expo/config-plugins@6.0.2": "@expo/config-plugins@7.2.4", "@expo/config-plugins@~7.2.0":
version "6.0.2" version "7.2.4"
resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-6.0.2.tgz#cf07319515022ba94d9aa9fa30e0cff43a14256f" resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-7.2.4.tgz#c8d354348b746e53d70224f0bf7b87994f7c2936"
integrity sha512-Cn01fXMHwjU042EgO9oO3Mna0o/UCrW91MQLMbJa4pXM41CYGjNgVy1EVXiuRRx/upegHhvltBw5D+JaUm8aZQ== integrity sha512-TItGwmKH1GDjA5GlMkXo1A8pqeqppSK40aSVRVQaGZraUj+nuvtpWxNgEWZxWFumiatP2ocWwyWVjfmH+rJY6g==
dependencies: dependencies:
"@expo/config-types" "^48.0.0" "@expo/config-types" "^49.0.0-alpha.1"
"@expo/json-file" "~8.2.37" "@expo/json-file" "~8.2.37"
"@expo/plist" "^0.0.20" "@expo/plist" "^0.0.20"
"@expo/sdk-runtime-versions" "^1.0.0" "@expo/sdk-runtime-versions" "^1.0.0"
@@ -1363,56 +1368,30 @@
getenv "^1.0.0" getenv "^1.0.0"
glob "7.1.6" glob "7.1.6"
resolve-from "^5.0.0" resolve-from "^5.0.0"
semver "^7.3.5" semver "^7.5.3"
slash "^3.0.0" slash "^3.0.0"
xcode "^3.0.1" xcode "^3.0.1"
xml2js "0.4.23" xml2js "0.6.0"
"@expo/config-plugins@~5.0.3": "@expo/config-[email protected]", "@expo/config-types@^49.0.0-alpha.1":
version "5.0.4" version "49.0.0"
resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-5.0.4.tgz#216fea6558fe66615af1370de55193f4181cb23e" resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-49.0.0.tgz#15ffef715285c06703f6fb7ec0cda853f645cc09"
integrity sha512-vzUcVpqOMs3h+hyRdhGwk+eGIOhXa5xYdd92yO17RMNHav3v/+ekMbs7XA2c3lepMO8Yd4/5hqmRw9ZTL6jGzg== integrity sha512-8eyREVi+K2acnMBe/rTIu1dOfyR2+AMnTLHlut+YpMV9OZPdeKV0Bs9BxAewGqBA2slslbQ9N39IS2CuTKpXkA==
dependencies:
"@expo/config-types" "^47.0.0"
"@expo/json-file" "8.2.36"
"@expo/plist" "0.0.18"
"@expo/sdk-runtime-versions" "^1.0.0"
"@react-native/normalize-color" "^2.0.0"
chalk "^4.1.2"
debug "^4.3.1"
find-up "~5.0.0"
getenv "^1.0.0"
glob "7.1.6"
resolve-from "^5.0.0"
semver "^7.3.5"
slash "^3.0.0"
xcode "^3.0.1"
xml2js "0.4.23"
"@expo/config[email protected]", "@expo/config-types@^47.0.0": "@expo/config@8.1.2", "@expo/config@~8.1.0":
version "47.0.0" version "8.1.2"
resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-47.0.0.tgz#99eeabe0bba7a776e0f252b78beb0c574692c38d" resolved "https://registry.yarnpkg.com/@expo/config/-/config-8.1.2.tgz#7fff28b3acefe39702e9f3ce1c9fd896a52caa80"
integrity sha512-r0pWfuhkv7KIcXMUiNACJmJKKwlTBGMw9VZHNdppS8/0Nve8HZMTkNRFQzTHW1uH3pBj8jEXpyw/2vSWDHex9g== integrity sha512-4e7hzPj50mQIlsrzOH6XZ36O094mPfPTIDIH4yv49bWNMc7GFLTofB/lcT+QyxiLaJuC0Wlk9yOLB8DIqmtwug==
"@expo/config-types@^48.0.0":
version "48.0.0"
resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-48.0.0.tgz#15a46921565ffeda3c3ba010701398f05193d5b3"
integrity sha512-DwyV4jTy/+cLzXGAo1xftS6mVlSiLIWZjl9DjTCLPFVgNYQxnh7htPilRv4rBhiNs7KaznWqKU70+4zQoKVT9A==
"@expo/[email protected]", "@expo/config@~7.0.2":
version "7.0.3"
resolved "https://registry.yarnpkg.com/@expo/config/-/config-7.0.3.tgz#c9c634e76186de25e296485e51418f1e52966e6e"
integrity sha512-joVtB5o+NF40Tmsdp65UzryRtbnCuMbXkVO4wJnNJO4aaK0EYLdHCYSewORVqNcDfGN0LphQr8VTG2npbd9CJA==
dependencies: dependencies:
"@babel/code-frame" "~7.10.4" "@babel/code-frame" "~7.10.4"
"@expo/config-plugins" "~5.0.3" "@expo/config-plugins" "~7.2.0"
"@expo/config-types" "^47.0.0" "@expo/config-types" "^49.0.0-alpha.1"
"@expo/json-file" "8.2.36" "@expo/json-file" "^8.2.37"
getenv "^1.0.0" getenv "^1.0.0"
glob "7.1.6" glob "7.1.6"
require-from-string "^2.0.2" require-from-string "^2.0.2"
resolve-from "^5.0.0" resolve-from "^5.0.0"
semver "7.3.2" semver "7.5.3"
slugify "^1.3.4" slugify "^1.3.4"
sucrase "^3.20.0" sucrase "^3.20.0"
@@ -1450,7 +1429,7 @@
json5 "^1.0.1" json5 "^1.0.1"
write-file-atomic "^2.3.0" write-file-atomic "^2.3.0"
"@expo/[email protected]", "@expo/json-file@~8.2.37": "@expo/[email protected]", "@expo/json-file@^8.2.37", "@expo/json-file@~8.2.37":
version "8.2.37" version "8.2.37"
resolved "https://registry.yarnpkg.com/@expo/json-file/-/json-file-8.2.37.tgz#9c02d3b42134907c69cc0a027b18671b69344049" resolved "https://registry.yarnpkg.com/@expo/json-file/-/json-file-8.2.37.tgz#9c02d3b42134907c69cc0a027b18671b69344049"
integrity sha512-YaH6rVg11JoTS2P6LsW7ybS2CULjf40AbnAHw2F1eDPuheprNjARZMnyHFPkKv7GuxCy+B9GPcbOKgc4cgA80Q== integrity sha512-YaH6rVg11JoTS2P6LsW7ybS2CULjf40AbnAHw2F1eDPuheprNjARZMnyHFPkKv7GuxCy+B9GPcbOKgc4cgA80Q==
@@ -1507,15 +1486,6 @@
dependencies: dependencies:
node-forge "^1.2.1" node-forge "^1.2.1"
"@expo/[email protected]":
version "0.0.18"
resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.0.18.tgz#9abcde78df703a88f6d9fa1a557ee2f045d178b0"
integrity sha512-+48gRqUiz65R21CZ/IXa7RNBXgAI/uPSdvJqoN9x1hfL44DNbUoWHgHiEXTx7XelcATpDwNTz6sHLfy0iNqf+w==
dependencies:
"@xmldom/xmldom" "~0.7.0"
base64-js "^1.2.3"
xmlbuilder "^14.0.0"
"@expo/[email protected]", "@expo/plist@^0.0.20": "@expo/[email protected]", "@expo/plist@^0.0.20":
version "0.0.20" version "0.0.20"
resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.0.20.tgz#a6b3124438031c02b762bad5a47b70584d3c0072" resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.0.20.tgz#a6b3124438031c02b762bad5a47b70584d3c0072"
@@ -1546,21 +1516,21 @@
semver "^7.3.7" semver "^7.3.7"
tslib "^2.4.0" tslib "^2.4.0"
"@expo/prebuild-config@5.0.7": "@expo/prebuild-config@6.2.5":
version "5.0.7" version "6.2.5"
resolved "https://registry.yarnpkg.com/@expo/prebuild-config/-/prebuild-config-5.0.7.tgz#4658b66126c4d32c7b6302571e458a71811b07aa" resolved "https://registry.yarnpkg.com/@expo/prebuild-config/-/prebuild-config-6.2.5.tgz#2e7fdce8ddef3ac97fa05b4542f2b62a43bcea4b"
integrity sha512-D+TBpJUHe4+oTGFPb4o0rrw/h1xxc6wF+abJnbDHUkhnaeiHkE2O3ByS7FdiZ2FT36t0OKqeSKG/xFwWT3m1Ew== integrity sha512-XHgQ4OWZ03rzczD+D2ulQRjyHCVnA36cfX4q+r2x1Say4hI7lIg75ZQEsWdEMU9rZV8TbDUtZlPL4pxNWpYu7Q==
dependencies: dependencies:
"@expo/config" "~7.0.2" "@expo/config" "~8.1.0"
"@expo/config-plugins" "~5.0.3" "@expo/config-plugins" "~7.2.0"
"@expo/config-types" "^47.0.0" "@expo/config-types" "^49.0.0-alpha.1"
"@expo/image-utils" "0.3.22" "@expo/image-utils" "0.3.22"
"@expo/json-file" "8.2.36" "@expo/json-file" "^8.2.37"
debug "^4.3.1" debug "^4.3.1"
fs-extra "^9.0.0" fs-extra "^9.0.0"
resolve-from "^5.0.0" resolve-from "^5.0.0"
semver "7.3.2" semver "7.5.3"
xml2js "0.4.23" xml2js "0.6.0"
"@expo/[email protected]": "@expo/[email protected]":
version "1.0.0" version "1.0.0"
@@ -1606,15 +1576,16 @@
dependencies: dependencies:
cross-spawn "^7.0.3" cross-spawn "^7.0.3"
"@expo/[email protected]3": "@expo/[email protected]5":
version "1.0.23" version "1.0.25"
resolved "https://registry.yarnpkg.com/@expo/steps/-/steps-1.0.23.tgz#a996244be55ae939636a00fdc27c9922bb4f0c42" resolved "https://registry.yarnpkg.com/@expo/steps/-/steps-1.0.25.tgz#04f8c18bb12f2445cdca443b48497d3c2be3e133"
integrity sha512-H6rW49Dje0O/EDamhpbiYwpVltWM+057Exd7RFz8pzmPnkIAYHMXOErIftl3P79LM+ydWe5WWLX92cYU5uCFgA== integrity sha512-MBtJ/3+T5qvXxmnOVlfapKlKQsxPUyKoEUaA6lLbpmm8yCcXJEblnmQP/2ZokAG78IWjsYl5E02Ei/AnrIxB9g==
dependencies: dependencies:
"@expo/logger" "1.0.21" "@expo/logger" "1.0.21"
"@expo/spawn-async" "^1.7.0" "@expo/spawn-async" "^1.7.0"
arg "^5.0.2" arg "^5.0.2"
joi "^17.7.0" joi "^17.7.0"
lodash.get "^4.4.2"
this-file "^2.0.3" this-file "^2.0.3"
uuid "^9.0.0" uuid "^9.0.0"
yaml "^2.2.1" yaml "^2.2.1"
@@ -4571,20 +4542,30 @@
"@typescript-eslint/types" "5.33.0" "@typescript-eslint/types" "5.33.0"
eslint-visitor-keys "^3.3.0" eslint-visitor-keys "^3.3.0"
"@urql/core@3.1.1", "@urql/core@>=3.0.0": "@urql/core@4.0.11", "@urql/core@>=4.0.0":
version "3.1.1" version "4.0.11"
resolved "https://registry.yarnpkg.com/@urql/core/-/core-3.1.1.tgz#a49cd572360d01f2469a786b294fba2269a65e53" resolved "https://registry.yarnpkg.com/@urql/core/-/core-4.0.11.tgz#b4e8bf3a3ff1a2519bb3aec38c7be99d2523308d"
integrity sha512-Mnxtq4I4QeFJsgs7Iytw+HyhiGxISR6qtyk66c9tipozLZ6QVxrCiUPF2HY4BxNIabaxcp+rivadvm8NAnXj4Q== integrity sha512-FFdY97vF5xnUrElcGw9erOLvtu+KGMLfwrLNDfv4IPgdp2IBsiGe+Kb7Aypfd3kH//BETewVSLm3+y2sSzjX6A==
dependencies: dependencies:
wonka "^6.1.2" "@0no-co/graphql.web" "^1.0.1"
wonka "^6.3.2"
"@urql/exchange-[email protected]": "@urql/exchange-[email protected]":
version "1.0.0" version "6.1.4"
resolved "https://registry.yarnpkg.com/@urql/exchange-retry/-/exchange-retry-1.0.0.tgz#25a48ef0c2f6854f5617e2ca4ea25ae240f1fcbc" resolved "https://registry.yarnpkg.com/@urql/exchange-graphcache/-/exchange-graphcache-6.1.4.tgz#5d69c838f7a1d313018f63abb8ead79f8c1ea133"
integrity sha512-UGyyGAMXzop9C/fIoe7Ij63DkPSy1uMw2jipB5dnB8R3kl80za7LYzVnA1HvBEt2ZPWfMuwez/VGLOQ7XX4bTA== integrity sha512-GQ1scnYjMVoUHrPoYOlw3ZfU2nXuLTEhWhKzPquhZz87GliVpZPuFMf+o64cI1dKy9xDlbU7aQnKiSaGeT248w==
dependencies: dependencies:
"@urql/core" ">=3.0.0" "@0no-co/graphql.web" "^1.0.1"
wonka "^6.0.0" "@urql/core" ">=4.0.0"
wonka "^6.3.2"
"@urql/[email protected]":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@urql/exchange-retry/-/exchange-retry-1.2.0.tgz#23d3ec711754e3c67a843e0106f2cabddff2e5ff"
integrity sha512-1O/biKiVhhn0EtvDF4UOvz325K4RrLupfL8rHcmqD2TBLv4qVDWQuzx4JGa1FfqjjRb+C9TNZ6w19f32Mq85Ug==
dependencies:
"@urql/core" ">=4.0.0"
wonka "^6.3.2"
"@whatwg-node/[email protected]", "@whatwg-node/fetch@^0.5.0": "@whatwg-node/[email protected]", "@whatwg-node/fetch@^0.5.0":
version "0.5.4" version "0.5.4"
@@ -4615,11 +4596,6 @@
undici "^5.8.0" undici "^5.8.0"
web-streams-polyfill "^3.2.0" web-streams-polyfill "^3.2.0"
"@xmldom/xmldom@~0.7.0":
version "0.7.2"
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.2.tgz#d920079e66806b2626b5311955f6a7c4bed1cba8"
integrity sha512-t/Zqo0ewes3iq6zGqEqJNUWI27Acr3jkmSUNp6E3nl0Z2XbtqAG5XYqPNLdYonILmhcxANsIidh69tHzjXtuRg==
"@xmldom/xmldom@~0.7.7": "@xmldom/xmldom@~0.7.7":
version "0.7.9" version "0.7.9"
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.9.tgz#7f9278a50e737920e21b297b8a35286e9942c056" resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.9.tgz#7f9278a50e737920e21b297b8a35286e9942c056"
@@ -7480,11 +7456,6 @@ [email protected]:
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/freeport-async/-/freeport-async-2.0.0.tgz#6adf2ec0c629d11abff92836acd04b399135bab4"
integrity sha512-K7od3Uw45AJg00XUmy15+Hae2hOcgKcmN3/EF6Y7i01O0gaqiRx8sUSpsb9+BRNL8RPBrhzPsVfy8q9ADlJuWQ==
[email protected]: [email protected]:
version "0.5.2" version "0.5.2"
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
@@ -9771,7 +9742,7 @@ lodash.flatten@^4.4.0:
resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f"
integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=
lodash.get@^4: lodash.get@^4, lodash.get@^4.4.2:
version "4.4.2" version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=
@@ -12113,6 +12084,13 @@ [email protected], semver@^7.0.0, semver@^7.3.8:
dependencies: dependencies:
lru-cache "^6.0.0" lru-cache "^6.0.0"
[email protected], semver@^7.5.3:
version "7.5.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e"
integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==
dependencies:
lru-cache "^6.0.0"
[email protected], semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.4, semver@^7.3.5: [email protected], semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.4, semver@^7.3.5:
version "7.3.5" version "7.3.5"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7"
@@ -13653,15 +13631,10 @@ widest-line@^3.1.0:
dependencies: dependencies:
string-width "^4.0.0" string-width "^4.0.0"
wonka@^6.0.0: wonka@^6.3.2:
version "6.1.0" version "6.3.2"
resolved "https://registry.yarnpkg.com/wonka/-/wonka-6.1.0.tgz#65297ebf7031ae46d4b0c56da93950fb3ae5baaa" resolved "https://registry.yarnpkg.com/wonka/-/wonka-6.3.2.tgz#6f32992b332251d7b696b038990f4dc284b3b33d"
integrity sha512-VgiMCz7BXOiDbgpVhf5iNhK7hurteY5Jv0fDJewUkY0s4fbxQD2iKqfGxNXNTwp2v3bgT8QVu2l5H7YdkZ5WIA== integrity sha512-2xXbQ1LnwNS7egVm1HPhW2FyKrekolzhpM3mCwXdQr55gO+tAiY76rhb32OL9kKsW8taj++iP7C6hxlVzbnvrw==
wonka@^6.1.2:
version "6.1.2"
resolved "https://registry.yarnpkg.com/wonka/-/wonka-6.1.2.tgz#2c66fa5b26a12f002a03619b988258313d0b5352"
integrity sha512-zNrXPMccg/7OEp9tSfFkMgTvhhowqasiSHdJ3eCZolXxVTV/aT6HUTofoZk9gwRbGoFey/Nss3JaZKUMKMbofg==
word-wrap@^1.2.3: word-wrap@^1.2.3:
version "1.2.3" version "1.2.3"
@@ -13807,10 +13780,10 @@ [email protected]:
sax ">=0.6.0" sax ">=0.6.0"
xmlbuilder "~9.0.1" xmlbuilder "~9.0.1"
xml2js@0.4.23: xml2js@0.6.0:
version "0.4.23" version "0.6.0"
resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.6.0.tgz#07afc447a97d2bd6507a1f76eeadddb09f7a8282"
integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug== integrity sha512-eLTh0kA8uHceqesPqSE+VvO1CDDJWMwlQfB6LuN6T8w6MaDJ8Txm8P7s5cHD0miF0V+GGTZrDQfxPZQVsur33w==
dependencies: dependencies:
sax ">=0.6.0" sax ">=0.6.0"
xmlbuilder "~11.0.0" xmlbuilder "~11.0.0"