sync-rules
Version:
CLI tool to synchronize AI coding assistant rule files between projects.
13 lines (12 loc) • 583 B
TypeScript
/**
* Normalize a path by expanding `~` and resolving to an absolute path.
* No boundary or permission checks are performed here.
* @param input - The path to normalize (supports ~ for home directory)
*/
export declare function normalizePath(input: string): string;
/**
* Resolve a relative path inside a base directory, rejecting escapes.
* - Rejects absolute input paths explicitly (e.g. "/etc/passwd").
* - Uses path.resolve + path.relative to ensure the final path stays within baseDir.
*/
export declare function resolveInside(baseDir: string, relPath: string): string;