UNPKG

@devlander/collect-exports-for-bundle

Version:

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

8 lines (7 loc) 366 B
/** * Converts a filepath to a relative path and removes its file extension. * @param filepath - The full file path. * @param rootDir - The root directory to make the path relative to. * @returns The relative file path without the extension. */ export declare function removeExtensionAndMakeRelative(filepath: string, rootDir: string, debug?: boolean): string;