Add target-specific option to ignore / include files for NX affected #31306
KingScouter
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As mentioned in other issues (for example #15414), currently there seems to be no option to configure NX affected per target to include / exclude certain files for the calculations. This is compared to the "inputs" available per target, which affect how the cache determines changes.
As far as I can tell, for NX Affected the only options to ignore files are using .gitignore or .nxignore, but both of them are "global", meaning you can only exclude files for all targets at once, which limits the possibilities here.
Suggestions:
.nxignore
files. So for example you can have a global.nxignore
which will be considered for all NX operations, and additionally also a target-specific.nxignore.TARGET_NAME
(e.g..nxignore.lint
,.nxignore.test
), which will only be considered for those targets. If a global and a target-specific file exists, they should both be considered, similar to how .gitignore handles other .gitignore files in sub-directories.Beta Was this translation helpful? Give feedback.
All reactions