You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting the .eslintrc.json file for example inside a library in an Nx workspace, the nx affected command unexpectedly considers all projects as affected. This behavior is unexpected because the .eslintrc.json file is specific to a single library and should not impact the entire workspace.
Expected Behavior
Nx should only mark the library (and potentially its dependents) as affected rather than the entire workspace.
This is expected on our end, although I can understand why it may be unexpected for users. When using plugins that identify project configurations, any file that the plugin matches could theoretically create a project. Additionally, if a project was removed we always mark everything as affected.
The combination of these 2 statements means that if a file identified as potentially containing projects info is removed, the graph lights up
Current Behavior
When deleting the .eslintrc.json file for example inside a library in an Nx workspace, the nx affected command unexpectedly considers all projects as affected. This behavior is unexpected because the .eslintrc.json file is specific to a single library and should not impact the entire workspace.
Expected Behavior
Nx should only mark the library (and potentially its dependents) as affected rather than the entire workspace.
GitHub Repo
[email protected]:nrwl/nx-examples.git
Steps to Reproduce
Delete the .eslintrc.json file from a specific library.
Run: nx affected test
Observe that Nx considers all projects as affected.
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: