UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

14 lines (13 loc) 608 B
export type PackageManager = "npm" | "pnpm" | "yarn" | "bun"; export type DetectionSource = "runtime" | "env" | "lockfile" | "config" | "default" | "system" | "global"; export interface PkgManagerInfo { packageManager: PackageManager; source: DetectionSource; version?: string; } export interface DetectOptions { cwd?: string; includeGlobalBun?: boolean; } export declare function getUserPkgManager(projectPath?: string, options?: DetectOptions): Promise<PkgManagerInfo>; export declare function getAllPkgManagers(projectPath: string, options?: DetectOptions): Promise<PkgManagerInfo[]>;