Skip to content

refactor: improve findUp utility correctness and performance#32275

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:cli/findup-refactor
Jan 13, 2026
Merged

refactor: improve findUp utility correctness and performance#32275
clydin merged 1 commit intoangular:mainfrom
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
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jan 13, 2026
@clydin clydin merged commit 8ba6967 into angular:main Jan 13, 2026
37 checks passed
@clydin
Copy link
Member Author

clydin commented Jan 13, 2026

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants