(from: string, to: string)
| 10 | import ts from 'typescript'; |
| 11 | |
| 12 | export function relativePathBetween(from: string, to: string): string | null { |
| 13 | const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to))); |
| 14 | return relativePath !== '' ? toRelativeImport(relativePath) : null; |
| 15 | } |
| 16 | |
| 17 | export function normalizeSeparators(path: string): string { |
| 18 | // TODO: normalize path only for OS that need it. |
no test coverage detected
searching dependent graphs…