UNPKG

swap-lock-registry

Version:

A CLI tool to swap the registry URL in the lock file without having to remove it

10 lines (9 loc) 550 B
import { Manifest, TraitOptions } from './types'; export declare function trimString(str: string, char?: string): string; export declare function fetchPackageFromRegistry(url: string, name: string, version: string): Promise<Manifest>; export declare function readFile(path: string): Promise<string>; export declare type TraitPackageOptions = TraitOptions & { lockFile: string; tarballWithShaSum?: boolean; }; export declare function traitPackage(obj: any, pkg: string, name: string, source: string, opts: TraitPackageOptions): Promise<void>;