RoadmapShopEvents
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
_shrinkwrapFilenamestring
packageManagerPackageManagerNameThe package manager.
shrinkwrapFilenamestringThe filename of the shrinkwrap file that is used by the package manager.
versionstringThe SemVer version of the package manager.