* Ensures a path is either absolute (prefixed with `/` or `c:`) or dot-relative (prefixed * with `./` or `../`) so as not to be confused with an unprefixed module name. * * ```ts * ensurePathIsNonModuleName("/path/to/file.ext") === "/path/to/file.ext" * ensurePathIsNonModule
(path)
| 8038 | * ``` |
| 8039 | */ |
| 8040 | function ensurePathIsNonModuleName(path) { |
| 8041 | return !pathIsAbsolute(path) && !pathIsRelative(path) ? "./" + path : path; |
| 8042 | } |
| 8043 | ts.ensurePathIsNonModuleName = ensurePathIsNonModuleName; |
| 8044 | function changeAnyExtension(path, ext, extensions, ignoreCase) { |
| 8045 | var pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path); |
no test coverage detected
searching dependent graphs…