Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 21, 2025

This commit refactors the onpush-zoneless-migration tool to improve its internal structure, readability, and error handling.

The file discovery and categorization logic has been extracted from the main tool function into a new, dedicated discoverAndCategorizeFiles helper function. This change improves separation of concerns and makes the main function's orchestration role clearer.

Additionally, focused try...catch blocks have been added to gracefully handle cases where the user provides an invalid or inaccessible file path. This prevents the tool from crashing and provides a clear error message to the user, while allowing other internal errors to propagate correctly.

…ess tool

This commit refactors the `onpush-zoneless-migration` tool to improve its internal structure, readability, and error handling.

The file discovery and categorization logic has been extracted from the main tool function into a new, dedicated `discoverAndCategorizeFiles` helper function. This change improves separation of concerns and makes the main function's orchestration role clearer.

Additionally, focused `try...catch` blocks have been added to gracefully handle cases where the user provides an invalid or inaccessible file path. This prevents the tool from crashing and provides a clear error message to the user, while allowing other internal errors to propagate correctly.
@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Sep 21, 2025
@clydin clydin requested a review from atscott September 22, 2025 14:54
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 22, 2025
@clydin clydin merged commit c97fffe into angular:main Sep 22, 2025
35 checks passed
@clydin clydin deleted the mcp/zoneless-2 branch September 22, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants