UNPKG

syncpack

Version:

Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces

41 lines (40 loc) 849 B
interface Options { source: string[]; } export interface Source { bugs?: { url: string; } | string; dependencies?: { [key: string]: string; }; description?: string; devDependencies?: { [key: string]: string; }; keywords?: string[]; name?: string; peerDependencies?: { [key: string]: string; }; repository?: { type: string; url: string; } | string; resolutions?: { [key: string]: string; }; scripts?: { [key: string]: string; }; version?: string; [otherProps: string]: string | string[] | { [key: string]: string; } | undefined; } export interface SourceWrapper { filePath: string; contents: Source; } export declare const getWrappers: (program: Options) => SourceWrapper[]; export {};