Skip to content

Ignore the directories or files in node_modules starting with "." and any file or directory starting with ".git" even in the recursive directory watching logic - #30247

Merged
Sheetal Nandi (sheetalkamat) merged 2 commits into
masterfrom
recursiveDirectoryIgnore
Mar 7, 2019
Merged

Sheetal Nandi (sheetalkamat) merged 2 commits into
masterfrom
recursiveDirectoryIgnore

Conversation

@sheetalkamat

Copy link
Copy Markdown
Member

Fixes #30004 and #29782

Comment thread src/compiler/sys.ts
}

/*@internal*/
export const ignoredPaths = ["/node_modules/.", "/.git"];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're special casing .git and not just ignoring all dotfolders?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if anything starting with "." is too aggressive but we definitely have reports about ".git" and hence added that one. We can relax this further later if needed.

@sheetalkamat
Sheetal Nandi (sheetalkamat) deleted the recursiveDirectoryIgnore branch March 7, 2019 19:24
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants