UNPKG

es-guard

Version:

A tool to check JavaScript compatibility with target environments

46 lines 1.39 kB
/** * Detection result type for all project configuration */ export type DetectionResult = { target?: string; targetSource?: string; outputDir?: string; outputSource?: string; browserslist?: string[]; browserslistSource?: string; }; /** * Get all possible config file names for detection */ export declare const getConfigFileNames: () => string[]; /** * Detection function that extracts all configuration in a single pass * This is more efficient than separate detection functions */ export declare const detectProjectConfig: (cwd?: string) => DetectionResult; /** * Legacy function for backward compatibility - detects only ES target */ export declare const detectTarget: (cwd?: string) => { target: string; source: string; } | null; /** * Legacy function for backward compatibility - detects only output directory */ export declare const detectOutputDir: (cwd?: string) => { outputDir: string; source: string; } | null; /** * Legacy function for backward compatibility - detects only browserslist */ export declare const detectBrowserslist: (cwd?: string) => { browserslist: string[]; source: string; } | null; /** * Legacy function for backward compatibility - detects target and output directory */ export declare const detectTargetAndOutput: (cwd?: string) => DetectionResult; //# sourceMappingURL=detectTarget.d.ts.map