VipNpm: { formatVersionStr: (template: string, newVersion: string) => string; getNodeVersion: () => Promise<string | null>; getNpmVersion: () => Promise<string | null>; getPackageJSONByPnpm: (pnpmLsCommand: string) => PackageJSONWithPath[]; getPnpmVersion: () => Promise<string | null>; getTurboPackApps: () => Promise<string[]>; getTurboPackVersion: () => Promise<string | null>; installByNpm: ( args: { cwd?: string; force?: boolean; registry?: string }, ) => Promise<void>; installByPnpm: ( args: { cwd?: string; force?: boolean; registry?: string }, ) => Promise<void>; isExistNodeJs: () => Promise<boolean>; isExistNpm: () => Promise<boolean>; isExistPnpm: () => Promise<boolean>; isExistTurboPack: () => Promise<boolean>; userLogin: (args: { registry: string }) => Promise<void>;} = ...
类型声明
-
-
getNodeVersion: () => Promise<string | null>
-
getNpmVersion: () => Promise<string | null>
-
getPackageJSONByPnpm: (pnpmLsCommand: string) => PackageJSONWithPath[]
-
getPnpmVersion: () => Promise<string | null>
-
getTurboPackApps: () => Promise<string[]>
-
getTurboPackVersion: () => Promise<string | null>
-
installByNpm: (args: { cwd?: string; force?: boolean; registry?: string }) => Promise<void>
-
installByPnpm: (args: { cwd?: string; force?: boolean; registry?: string }) => Promise<void>
-
isExistNodeJs: () => Promise<boolean>
-
isExistNpm: () => Promise<boolean>
-
isExistPnpm: () => Promise<boolean>
-
isExistTurboPack: () => Promise<boolean>
-
userLogin: (args: { registry: string }) => Promise<void>