UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 1.06 kB
/** Installed peer that the plugin's declared range rejects. */ interface UnmetPeer { /** Peer package name. */ peer: string; /** Range declared by the installed plugin. */ range: string; /** Version actually installed in the project. */ found: string; } /** Package step finished but left the project with an incompatible peer. */ export declare class PeerConflictError extends Error { readonly unmet: UnmetPeer; /** * @param unmet First rejected peer, used for failure advice. */ constructor(unmet: UnmetPeer); } /** * Checks installed peers against the installed plugin's own declaration. * Some managers (pnpm `add`) only warn on peer conflicts and exit zero, so the job * can't rely on the exit code. Missing or optional peers are left to the manager. * @param root Project root. * @param id Installed plugin package name. * @returns The first incompatible peer, if any. */ export declare function findUnmetPeer(root: string, id: string): Promise<UnmetPeer | undefined>; export {}; //# sourceMappingURL=peers.d.ts.map