index.d.ts 273 B

123456789
  1. declare type PM = "npm" | "yarn" | "pnpm";
  2. declare const detect: ({ cwd }?: {
  3. cwd?: string | undefined;
  4. }) => Promise<PM>;
  5. declare function getNpmVersion(pm: PM): Promise<string>;
  6. declare function clearCache(): void;
  7. export { PM, clearCache, detect, getNpmVersion };