Skip to content

Conversation

alan-agius4
Copy link
Collaborator

This commit refactors the package manager lockfile detection logic to:

  • Introduce a LOCKFILE_NAMES constant for better maintainability and clarity.
  • Enhance Bun lockfile detection by checking for both bun.lockb and bun.lock.
  • Optimize lockfile checks by reading the root directory files once and passing them to the hasLockfile method, reducing redundant file system operations.

This addresses issues where Bun lockfiles might not have been correctly identified.

closes #31128

…le checks

This commit refactors the package manager lockfile detection logic to:
- Introduce a `LOCKFILE_NAMES` constant for better maintainability and clarity.
- Enhance Bun lockfile detection by checking for both `bun.lockb` and `bun.lock`.
- Optimize lockfile checks by reading the root directory files once and passing them to the `hasLockfile` method, reducing redundant file system operations.

This addresses issues where Bun lockfiles might not have been correctly identified.

closes angular#31128
@alan-agius4 alan-agius4 requested a review from clydin September 8, 2025 14:51
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Sep 8, 2025
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer 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 8, 2025
@alan-agius4 alan-agius4 merged commit 2037b91 into angular:main Sep 8, 2025
35 checks passed
@alan-agius4 alan-agius4 deleted the bun-lock-file branch September 8, 2025 15:10
@alan-agius4
Copy link
Collaborator Author

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

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: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bunx ng update ignores package manager, defaults to npm
2 participants