mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2025-02-16 16:44:46 +01:00
25 lines
417 B
TypeScript
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
|