Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): resolve main module name by real filepath for `eas build --…
…local` (#30340) # Why Should fix #30295 Should fix expo/eas-cli#2449 # How - `eas build --local` uses a temporary file path, which get mixed with `/private/var` and `/var` - One is a symlink, which causes issues in Metro (especially since we use `path.relative` quite a lot) - Due to `path.relative`, it tries to resolve on `../../../../../../../../../var` paths, instead of `/var` instead of the real path `/private/var` on Mac. # Test Plan See #30295 # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Expo Bot <[email protected]>
- Loading branch information