(fromFile, specifier)
| 53 | } |
| 54 | |
| 55 | function resolveRelativeImport(fromFile, specifier) { |
| 56 | const resolved = path.resolve(path.dirname(fromFile), specifier); |
| 57 | if (path.extname(resolved)) { |
| 58 | return resolved; |
| 59 | } |
| 60 | return `${resolved}.ts`; |
| 61 | } |
| 62 | |
| 63 | function normalizeText(text) { |
| 64 | return text.replace(/\r\n/g, '\n').trim(); |
no test coverage detected