UNPKG

crapifyme

Version:

Ultra-fast developer productivity CLI tools - remove comments, logs, and more

28 lines 1.11 kB
import { PathAlias } from './types'; export declare class PathResolver { private aliases; private projectRoot; private tsConfigPaths; constructor(projectRoot?: string); addAlias(pattern: string, replacement: string): void; addAliases(aliases: Array<{ pattern: string; replacement: string; }>): void; parseAliasString(aliasString: string): void; resolveImportPath(importPath: string, currentFile: string): string; convertToAbsolute(importPath: string, currentFile: string): string; convertToRelative(importPath: string, currentFile: string): string; normalizeImportPath(importPath: string): string; getFileExtensions(): string[]; resolveModulePath(importPath: string, currentFile: string): string | null; private createAliasRegex; private loadTsConfigPaths; private matchTsConfigPath; private resolveTsConfigPath; private isExternalModule; private resolveRelativePath; private generatePossiblePaths; static parseCliAliases(aliasString: string): PathAlias[]; } //# sourceMappingURL=path-resolver.d.ts.map