-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot ignore root directories #20358
Comments
can you try using We used to read and parse the nxignore file manually and handle special cases like this, but now we use a proper engine that allows us specify custom ignore files, and |
@Cammisuli |
oh no, thats not right then. Let me take a closer look |
After #20500 is released, you can use |
@Cammisuli thanks ! 🙌 |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Considering the following structure:
I would like to set my
.nxignore
to:in order to ignore the root
packages
directory, but NOT the packages in thev1/packages
directory.However, nx fails to respect my ignore when using the
./
prefix, and therefore includes all packages when running commands.Expected Behavior
This works fine in nx
16.1.4
, where only the root./packages
directory is ignored, but hasn't worked any time we've tried to update nx since. 17.1.3 still has the issueGitHub Repo
No response
Steps to Reproduce
try to ignore any root directory
Nx Report
Failure Logs
No response
Package Manager Version
yarn 4.0.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: