(fromFile, toFile)
| 205 | } |
| 206 | |
| 207 | function relativeSpecifier(fromFile, toFile) { |
| 208 | const fromDir = path.dirname(fromFile); |
| 209 | const withoutExtension = toFile.slice(0, -'.d.ts'.length); |
| 210 | let relative = path.relative(fromDir, withoutExtension).replaceAll(path.sep, '/'); |
| 211 | |
| 212 | if (!relative.startsWith('.')) { |
| 213 | relative = `./${relative}`; |
| 214 | } |
| 215 | |
| 216 | return relative; |
| 217 | } |
no outgoing calls
no test coverage detected