Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: improve findUp utility correctness and performance #32275

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

Open
clydin wants to merge 1 commit into angular:main
base: main
Choose a base branch
Loading
from clydin:cli/findup-refactor

Conversation

@clydin
Copy link
Member

@clydin clydin commented Jan 12, 2026

This change modernizes the findUp utility across the codebase. Replaced path.parse().root with path.dirname(dir) === dir check. Introduced an asynchronous version (findUp) in the CLI utility and renamed the synchronous version to findUpSync to align with Node.js conventions. Updated packages/angular/cli/src/utilities/config.ts to use the asynchronous findUp for non-blocking configuration discovery.

This change modernizes the `findUp` utility across the codebase. Replaced `path.parse().root` with `path.dirname(dir) === dir` check. Introduced an asynchronous version (`findUp`) in the CLI utility and renamed the synchronous version to `findUpSync` to align with Node.js conventions. Updated `packages/angular/cli/src/utilities/config.ts` to use the asynchronous `findUp` for non-blocking configuration discovery.
@clydin clydin marked this pull request as ready for review January 12, 2026 20:26
@clydin clydin added the target: minor This PR is targeted for the next minor release label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hybrist hybrist hybrist approved these changes

Assignees

No one assigned

Labels

target: minor This PR is targeted for the next minor release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /