diff --git a/packages/build-tools/src/common/setup.ts b/packages/build-tools/src/common/setup.ts index c990239b..55a63b10 100644 --- a/packages/build-tools/src/common/setup.ts +++ b/packages/build-tools/src/common/setup.ts @@ -89,7 +89,7 @@ export async function setupAsync(ctx: BuildContext) } const hasExpoPackage = !!packageJson.dependencies?.expo; - if (hasExpoPackage) { + if (!ctx.env.EAS_BUILD_DISABLE_EXPO_DOCTOR_STEP && hasExpoPackage) { await ctx.runBuildPhase(BuildPhase.RUN_EXPO_DOCTOR, async () => { try { const { stdout } = await runExpoDoctor(ctx);