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

Fix pattern matching when upgrading packages #1347

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jackofdiamond5
Copy link
Member

@jackofdiamond5 jackofdiamond5 commented Nov 25, 2024

Closes #1298

Additional information related to this pull request:

This PR modifies the NgFileSystem's glob function to expect multiple ignore patterns. It then loops through the contents of the root directory and its subdirectories, ignoring all entries that match any of the provided patterns and collects only the entries that match the expected pattern. Angular's file visitor is used only if no ignore patterns are provided. Additionally, when upgrading packages, the dist folder is now also ignored.

Currently the @igniteui/angular-schematics:upgrade-packages schematic will fail for projects that have not defined an ignite-ui-cli.json config file. The reason is that, at runtime, the schematic will attempt to infer the project's framework from the local config file. This is a rather easy thing to fix but should be done in a separate PR. So, note for testing - a project should always have a config file when attempting to run schematics or cli commands.

@coveralls
Copy link

coveralls commented Nov 25, 2024

Coverage Status

coverage: 70.301% (-0.08%) from 70.38%
when pulling 071df46 on bpenkov/ig-upgrade-fixes
into 19241ab on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using upgrade-packages throws an error for Angular projects with workspaces containing ng-package.json file
4 participants