Skip to content

Commit 82d0b9a

Browse files
committed
Add more info on Proper Monorepo Support
1 parent 3ae6901 commit 82d0b9a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_blogposts/2025-11-11-reforging-build-system.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,15 @@ This approach emerged naturally from solving the problem of maximizing parallel
210210

211211
### Proper Monorepo Support
212212

213-
The build system was designed from the ground up with monorepos in mind. File watching works correctly across all packages, detecting changes wherever they occur. The formatter is also properly integrated, working seamlessly across the entire monorepo structure.
213+
The build system was designed from the ground up with monorepos in mind. It automatically detects the parent-child relationship between your monorepo root and its packages by examining `rescript.json` files and package dependencies.
214214

215-
For teams working with multiple packages, these features are essential rather than optional. The build system now handles monorepos as intended.
215+
This detection means commands work intuitively wherever you run them:
216+
217+
- **Building from the root** builds all local packages
218+
- **Building from a child package** builds just that package, with full knowledge of the parent for resolving dependencies
219+
- **Clean and format commands** follow the same pattern: operate on all packages from the root, or on a single package from a child
220+
221+
File watching works correctly across all packages, detecting changes wherever they occur. This works with npm workspaces, yarn workspaces, pnpm, and other package managers that use symlinking for local dependencies.
216222

217223
## A Unified Developer Experience
218224

0 commit comments

Comments
 (0)