UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

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[]>;