angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

refactor(@angular/cli): migrate ng add to new package manager abstraction

Open clydin opened this issue 1 month ago • 0 comments

This commit fully refactors the ng add command to use the new, centralized package manager abstraction.

All package installation and metadata fetching logic now goes through the new API. This includes:

  • Using createPackageManager to detect the project's package manager.
  • Replacing fetchPackageMetadata with packageManager.getRegistryMetadata.
  • Replacing fetchPackageManifest with packageManager.getManifest.
  • Replacing the install and installTemp methods with the packageManager.add and packageManager.acquireTempPackage methods.

clydin avatar Dec 01 '25 13:12 clydin