UNPKG

@roots/dependencies

Version:

Automated package installation

16 lines (15 loc) 555 B
import type { IDependencyManager } from './index.js'; export declare class Dependencies { path: string; onMessage?: (...args: any[]) => void; onError?: (...args: any[]) => void; constructor(path: string, onMessage?: (...args: any[]) => void, onError?: (...args: any[]) => void); getClient(): Promise<IDependencyManager>; /** * Get the latest version of a package from the npm registry * * @returns - Package version */ getLatestVersion(signifier: string): Promise<string>; isYarn(): Promise<boolean>; }