UNPKG

@oclif/plugin-update

Version:

[![Version](https://img.shields.io/npm/v/@oclif/plugin-update.svg)](https://npmjs.org/package/@oclif/plugin-update) [![Downloads/week](https://img.shields.io/npm/dw/@oclif/plugin-update.svg)](https://npmjs.org/package/@oclif/plugin-update) [![License](htt

27 lines (26 loc) 726 B
import { Config } from '@oclif/core'; type Options = { autoUpdate: boolean; channel?: string | undefined; force?: boolean; version?: string | undefined; }; type VersionIndex = Record<string, string>; export declare class Updater { private config; private readonly clientBin; private readonly clientRoot; constructor(config: Config); fetchVersionIndex(): Promise<VersionIndex>; findLocalVersions(): Promise<string[]>; runUpdate(options: Options): Promise<void>; private createBin; private fetchVersionManifest; private findLocalVersion; private refreshConfig; private tidy; private touch; private update; private updateToExistingVersion; } export {};