Go to repository

Function getInUsePackageManager

Return the package manager in use based different features. First, by identifying the current runner through the npm_config_user_agent environment variable. It such variable is not set, which is common for global runs, attempts to identify the runner by locating the global gobstones-scripts command. If no match is found, defaults to npm.

Parameters

Returns keyof ConfigPackageManagers

The package manager in use