Files
ry.kazcloud.dev/node_modules/which-pm/index.d.ts
Ryan Kazokas d181f77fb2
All checks were successful
Build and Push / build (push) Successful in 55s
Updates dockerfile
2026-02-16 15:09:37 -05:00

30 lines
478 B
TypeScript

declare function whichpm (pkgPath: string): Promise<whichpm.Result | null>
declare namespace whichpm {
type Result = NPM | YARN | PNPM | BUN | Other
interface NPM {
readonly name: 'npm'
}
interface YARN {
readonly name: 'yarn'
}
interface PNPM {
readonly name: 'pnpm'
readonly version: string
}
interface BUN {
readonly name: 'bun'
}
interface Other {
readonly name: string
readonly version?: string
}
}
export = whichpm