syncpack
Version:
Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces
42 lines (41 loc) • 1.47 kB
TypeScript
import { collect } from './lib/collect';
export declare type DependencyType = 'dependencies' | 'devDependencies' | 'peerDependencies';
export declare const DEPENDENCY_TYPES: DependencyType[];
export declare const SORT_AZ: string[];
export declare const SORT_FIRST: string[];
export declare const GREATER = 1;
export declare const LESSER = -1;
export declare const SAME = 0;
export declare type ValidRange = '*' | '' | '>' | '>=' | '.x' | '<' | '<=' | '^' | '~';
export declare const RANGE_ANY = "*";
export declare const RANGE_EXACT = "";
export declare const RANGE_GT = ">";
export declare const RANGE_GTE = ">=";
export declare const RANGE_LOOSE = ".x";
export declare const RANGE_LT = "<";
export declare const RANGE_LTE = "<=";
export declare const RANGE_MINOR = "^";
export declare const RANGE_PATCH = "~";
export declare const SEMVER_ORDER: ValidRange[];
export declare type SyncpackConfig = Readonly<{
dev: boolean;
filter: RegExp;
indent: string;
peer: boolean;
prod: boolean;
semverRange: string;
source: string[];
}>;
export declare const DEFAULT_CONFIG: SyncpackConfig;
export declare const ALL_PATTERNS: string[];
interface OptionsByName {
dev: [string, string];
filter: [string, string];
indent: [string, string];
peer: [string, string];
prod: [string, string];
semverRange: [string, string];
source: [string, string, typeof collect, string[]];
}
export declare const option: OptionsByName;
export {};