detectPackageManager(dir: string): PackageManager
Detects which package manager is used in the workspace based on the lock file.
string