-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore(ng): update to ng 18 #1252
Conversation
const dir = this.tree.getDir(dirPath); | ||
const entries: string[] = []; | ||
pattern = pattern.split("**/*").pop() || pattern; | ||
|
||
dir.visit((_fullPath, entry) => { | ||
if (ignorePattern && entry?.path.includes(ignorePattern)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This here is a rather naive fix for #1253. The underlying issue is that glob
is called for the root of a project and it traverses the node_modules
in an attempt to find package.json
files. It succeeds a bit too well in that regard, and the following logic throws due to various assumptions made for the specific root-level package.json
file. While this change should fix the issue, it is a slow solution as the DirEntry
visitor still loops through the node_modules
. I'm thinking, we should modify the glob
function to build dir-entries as roots for each subfolder that does not match the ignore pattern and then invoke the visitor on each of them separately, populating the entries array in the process, just at thought at this point.
Closes #1253