UNPKG

syncpack

Version:

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

11 lines (10 loc) 445 B
import { SyncpackConfig } from '../constants'; import { Source, SourceWrapper } from './lib/get-wrappers'; interface FormatConfig { sortAz?: string[]; sortFirst?: string[]; } declare type Options = Pick<SyncpackConfig, 'indent' | 'source'>; export declare const format: (wrapper: SourceWrapper, { sortAz, sortFirst }?: FormatConfig) => Source; export declare const formatToDisk: ({ indent, source: source }: Options) => void; export {};