expo / expo/eas-cli

`EAS_PROJECT_ROOT` variable no longer seem to work in monorepo setup

Open
#2,938 6 comments 1 reaction 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

_No response_

### Summary

I have an expo app in the subfolder of a mono repo setup (yarn workspaces). I haven't changed my deploy command or project structure which is the same as always and it's always worked fine. But today I tried to deploy and got some errors at the install stage, I clicked around and noticed that my entire repo had been uploaded to expo and not just the project subfolder like it usually is the case.

So I ran the eas inspect command to see what's actually being uploaded and sure enough the generated folder contained the whole repo.

Did anything change in a recent version that could have broken the use of this env var? I can confirm the other var I'm using `EAS_NO_VCS` is working because I see the yellow warning message like usual:

> Using EAS CLI without version control system is not recommended, use this mode only if you know what you are doing.

My npm scripts:

```
"eas:inspect": "yarn pre-deploy && EAS_NO_VCS=1 EAS_PROJECT_ROOT=. eas build:inspect --platform ios --
"deploy:ios:dev": "yarn pre-deploy && EAS_NO_VCS=1 EAS_PROJECT_ROOT=. eas build --platform ios --clear-cache --profile development && yarn post-deploy"
profile production --stage archive --output ./eas.tmp --force && yarn post-deploy",
"pre-deploy": "tzx ../../scripts/tools/prepost-deploy.ts --predeploy",
"post-deploy": "tzx ../../scripts/tools/prepost-deploy.ts --postdeploy",
```

### Managed or bare?

Managed

### Environment

```
expo-env-info 1.2.2 environment info:
System:
OS: macOS 15.3.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.3 - /opt/homebrew/opt/node@20/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.8.2 - /opt/homebrew/opt/node@20/bin/npm
Watchman: 2025.03.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /Users/towhidkashem/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ~52.0.35 => 52.0.37
react: 18.3.1 => 18.3.1
react-native: 0.76.7 => 0.76.7
Expo Workflow: managed
```

```
npx expo-doctor
Need to install the following packages:
expo-doctor@1.12.7
Ok to proceed? (y) y

15/15 checks passed. No issues detected!
```

### Error output

_No response_

### Reproducible demo or steps to reproduce from a blank project

See message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.