nx graph
and @nx/enforce-module-boundaries
break when customizing workspaceLayout.appsDir
to src
#30541
Open
1 of 4 tasks
Labels
Current Behavior
After customizing the workspace layout in
nx.json
:With the following monorepo structure:
Running
nx graph
shows an unexpected extra project, in addition to the correct ones:✅ Expected:
❌ Actual:
This "ghost" root-level project seems to be inferred automatically, which causes issues downstream.
Side Effect
This behavior also breaks the ESLint
@nx/enforce-module-boundaries
rule:Expected Behavior
nx lint web
should pass.GitHub Repo
https://github.com/denchiklut/nx-demo
Steps to Reproduce
nx graph
➜ You’ll see an unexpected extra project (named after the root package.json).nx lint web
➜ This will fail due to a broken@nx/enforce-module-boundaries
rule.src
directory toapps
and now bothnx graph
andnx lint web
work as expected.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: