Home > @microsoft/rush-lib > PackageManager

PackageManager class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

An abstraction for controlling the supported package managers: PNPM, NPM, and Yarn.


export declare abstract class PackageManager 


The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the PackageManager class.


Property Modifiers Type Description
_shrinkwrapFilename   string (BETA)
packageManager   PackageManagerName (BETA) The package manager.
shrinkwrapFilename   string (BETA) The filename of the shrinkwrap file that is used by the package manager.
version   string (BETA) The SemVer version of the package manager.