UNPKG

@devlander/collect-exports-for-bundle

Version:

Generate comprehensive export files for TypeScript/JavaScript projects with Rollup compatibility

28 lines (27 loc) 933 B
import { AutoExporterOptions } from '../types/module-exporter.types'; export interface MixedExportOptions { files: string[]; config: AutoExporterOptions; primaryExportFile?: string; bundleAsObject?: string; } export interface ExportResult { namedExports: string[]; defaultExports: string[]; typeExports: string[]; bundleObject?: string; imports: string[]; } /** * Generates mixed exports that include both named and default exports * This allows for more flexible export patterns */ export declare function generateMixedExports(options: MixedExportOptions): ExportResult; /** * Formats the mixed exports into a final output string */ export declare function formatMixedExports(result: ExportResult, config: AutoExporterOptions): string; /** * Smart export generator that chooses the best export strategy */ export declare function generateSmartExports(options: MixedExportOptions): string;