@mesh-tech/mesh-cli
Version:
CLI for Mesh platform development utilities
15 lines (14 loc) • 703 B
TypeScript
export declare const DOCS_PACKAGE = "@mesh-tech/docs";
export interface DocsRegistryAuth {
endpoint: string;
token: string;
}
export declare function readDocsRegistryAuth(npmrcPath?: string): DocsRegistryAuth | null;
export declare function compareVersions(a: string, b: string): number;
export interface DocsVersionList {
versions: string[];
latest: string | undefined;
}
export declare function listDocsVersions(auth: DocsRegistryAuth, fetchImpl?: typeof fetch): Promise<DocsVersionList>;
export declare function docsCacheRoot(): string;
export declare function fetchDocsArtifact(auth: DocsRegistryAuth, version: string, cacheRoot?: string, fetchImpl?: typeof fetch): Promise<string>;