Source: https://docs.expo.dev/build-reference/build-with-monorepos
Hide navigation
Search
Ctrl K
Home
Guides
EAS
Reference
Learn
Archive
Expo Snack
Discord and Forums
Newsletter
Set up EAS Build with a monorepo
Edit page
Copy page
Learn how to set up EAS Build with a monorepo.
Edit page
Copy page
To set up EAS Build with a monorepo, you need to follow the standard process as described below:
- Run all EAS CLI commands from the root of the app directory. For example, if your project exists inside your git repository at apps/my-app, then run
eas build from there.
- All files related to EAS Build, such as eas.json and credentials.json, should be in the root of the app directory. If you have multiple apps that use EAS Build in your monorepo, each app directory will have its own copy of these files.
- If you are building a managed project in a monorepo, see Working with Monorepos
guide.
- If your project needs additional setup beyond what is provided, add a
postinstall step to package.json in your project that builds all necessary dependencies in other workspaces. For example:
package.json
Copy
{ "scripts": { "postinstall": "cd ../.. && yarn build" } }