Skip to content

Signatures

getPackageManagerVersion(packageManager: PackageManager, cwd: string): 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.

Parameters

  • packageManager: PackageManager
  • cwd: string