wrangler-action/node_modules/which-pm/index.d.ts
2023-08-07 15:11:15 -05:00

25 lines
417 B
TypeScript

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