Skip to content
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

Merged
merged 19 commits into from
May 31, 2024
Merged

chore(ng): update to ng 18 #1252

merged 19 commits into from
May 31, 2024

Conversation

Lipata
Copy link
Member

@Lipata Lipata commented May 27, 2024

Closes #1253

@coveralls
Copy link

coveralls commented May 27, 2024

Coverage Status

coverage: 67.062% (-0.08%) from 67.144%
when pulling 74c2d68 on update-18
into 8a036d3 on master.

const dir = this.tree.getDir(dirPath);
const entries: string[] = [];
pattern = pattern.split("**/*").pop() || pattern;

dir.visit((_fullPath, entry) => {
if (ignorePattern && entry?.path.includes(ignorePattern)) {
Copy link
Member

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.

@Lipata Lipata merged commit 08ad6e1 into master May 31, 2024
4 checks passed
@Lipata Lipata deleted the update-18 branch May 31, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade package command is failing
3 participants