@bumpup/bump-package-json
Version:
fully automated and extensible software versioning
30 lines (29 loc) • 909 B
TypeScript
/// <reference types="node" />
import { BumpupData } from "@bumpup/lib";
import { PathLike } from "fs";
export declare type FileSystem = {
writeFileSync: (path: PathLike, data: string) => void;
readFileSync: (path: PathLike | number, options?: {
encoding?: string;
flag?: string;
} | null) => string | Buffer;
};
export declare const parse: (string: any) => ({
version: string;
});
export declare const stringify: ({ version: string }: {
version: any;
}) => string;
export declare const replace: (version: string) => (pkg: {
version: string;
}) => {
version: string;
};
export declare const bumpWithEffects: (fs: FileSystem, options: {
logLevel: string;
dry?: boolean;
}) => (data: BumpupData) => BumpupData;
export declare const bump: (options: {
logLevel: string;
dry?: boolean;
}) => (BumpupData: any) => BumpupData;