diff --git a/CHANGELOG.md b/CHANGELOG.md index dddf7c0b4d..42911a5b83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐Ÿ› Bug fixes - Show `eas deploy` upload error messages. ([#2771](https://github.com/expo/eas-cli/pull/2771) by [@kadikraman](https://github.com/kadikraman)) +- Prevent EAS CLI dependencies check from running repeatedly. ([#2781](https://github.com/expo/eas-cli/pull/2781) by [@kitten](https://github.com/kitten)) ### ๐Ÿงน Chores diff --git a/packages/eas-cli/src/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.ts b/packages/eas-cli/src/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.ts index 6dc64c6af7..e69c507b53 100644 --- a/packages/eas-cli/src/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.ts +++ b/packages/eas-cli/src/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.ts @@ -103,6 +103,8 @@ export async function findProjectRootAsync({ } } +let ranEnsureEasCliIsNotInDependencies = false; + /** * Determine the project root directory and ensure some constraints about the project setup * like CLI version and dependencies. @@ -113,6 +115,9 @@ export async function findProjectRootAsync({ export async function findProjectDirAndVerifyProjectSetupAsync(): Promise { const projectDir = await findProjectRootAsync(); await applyCliConfigAsync(projectDir); - await ensureEasCliIsNotInDependenciesAsync(projectDir); + if (!ranEnsureEasCliIsNotInDependencies) { + ranEnsureEasCliIsNotInDependencies = true; + await ensureEasCliIsNotInDependenciesAsync(projectDir); + } return projectDir; }