angular-cli
angular-cli copied to clipboard
refactor(@angular/cli): migrate ng add to new package manager abstraction
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
createPackageManagerto detect the project's package manager. - Replacing
fetchPackageMetadatawithpackageManager.getRegistryMetadata. - Replacing
fetchPackageManifestwithpackageManager.getManifest. - Replacing the
installandinstallTempmethods with thepackageManager.addandpackageManager.acquireTempPackagemethods.