Skip to content
AI Monorepos Free online conference · June 23 Join us!

getPackageManagerVersion(packageManager?, cwd?): string

Returns the version of the package manager used in the workspace. By default, the package manager is derived based on the lock file, but it can also be passed in explicitly.

NameType
packageManager?PackageManager
cwd?string

string