** * 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" * ensurePathIsNonModuleName("./path/to/
(path string)
| 134 | * |
| 135 | */ |
| 136 | func ensurePathIsNonModuleName(path string) string { |
| 137 | if PathIsBareSpecifier(path) { |
| 138 | return "./" + path |
| 139 | } |
| 140 | return path |
| 141 | } |
| 142 | |
| 143 | func GetJSExtensionForDeclarationFileExtension(ext string) string { |
| 144 | switch ext { |
no test coverage detected