UNPKG

295 BTypeScriptView Raw
1/**
2 * Returns the package manager in use by checking for the lock files
3 * on the disk or by inspecting the "npm_config_user_agent".
4 *
5 * Defaults to npm when unable to detect the package manager.
6 */
7export declare function getPackageManager(appRoot: string): 'yarn' | 'pnpm' | 'npm';