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

Property

Modifiers

Type

Description

packageManager

readonly

PackageManagerName

The package manager.

shrinkwrapFilename

readonly

string

The filename of the shrinkwrap file that is used by the package manager.

version

readonly

string

The SemVer version of the package manager.