UNPKG

@visulima/package

Version:

One Package to rule them all, finds your root-dir, monorepo, or package manager.

10 lines (8 loc) 393 B
type Strategy = "lerna" | "npm" | "pnpm" | "turbo" | "yarn"; interface RootMonorepo<T extends Strategy = Strategy> { path: string; strategy: T; } declare const findMonorepoRoot: (cwd?: URL | string) => Promise<RootMonorepo>; declare const findMonorepoRootSync: (cwd?: URL | string) => RootMonorepo; export { type RootMonorepo, type Strategy, findMonorepoRoot, findMonorepoRootSync };