json-merge-resolver
Version:
A rules-based JSON conflict resolver that parses Git conflict markers, reconstructs ours/theirs, and merges with deterministic strategies — beyond line-based merges.
24 lines (23 loc) • 622 B
TypeScript
import type { Config } from "./types";
/**
* Find Git root directory
*/
export declare const findGitRoot: () => string;
/**
* Load configuration file (js/ts) from current dir or Git root.
*/
export declare const loadConfigFile: () => Promise<Partial<Config>>;
/**
* Write a starter config file
*/
export declare const initConfig: (targetDir: string) => void;
/**
* CLI argument parser (minimal, no external deps).
*/
export declare const parseArgs: (argv: string[]) => {
overrides: Partial<Config>;
init?: boolean;
restore?: string;
gitMergeFiles?: [string, string, string];
};