Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > PackageManager

PackageManager class

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

Signature:

export declare abstract class PackageManager 

Remarks

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.

Properties

PropertyModifiersTypeDescription
packageManagerreadonlyPackageManagerNameThe package manager.
shrinkwrapFilenamereadonlystringThe filename of the shrinkwrap file that is used by the package manager.
versionreadonlystringThe SemVer version of the package manager.