Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

This removes the old implementation of the package-manager.

@alan-agius4 alan-agius4 requested a review from clydin January 13, 2026 10:52
@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Jan 13, 2026
@alan-agius4 alan-agius4 changed the title refactor(@angular/cli): emove old package manager utilities refactor(@angular/cli): remove old package manager utilities Jan 13, 2026
This removes the old implementation of the package-manager.
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 13, 2026
tempDirectory,
});
task.output = `Using package manager: ${color.dim(context.packageManager.name)}`;
this.context.packageManager.temporaryDirectory = tempDirectory;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should move the temp directory discovery logic to the command runner as well so that other commands can take advantage of it too.

* Gets the version of the package manager binary.
* @returns The version of the package manager binary.
*/
private getVersion(): string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use the async version throughout now. This also allows it to go through the host for debug logging.

* @param globalWorkspace The global workspace.
* @returns The package manager name.
*/
async function getConfiguredPackageManager(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/cli target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants