astro-ghostcms/.pnpm-store/v3/files/83/3c70f00c4ba9e51baae50ec89d5...

26 lines
417 B
Plaintext

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