* Combines and resolves paths. If a path is absolute, it replaces any previous path. Any * `.` and `..` path components are resolved. Trailing directory separators are preserved. * * ```ts * resolvePath("/path", "to", "file.ext") === "path/to/file.ext" * resolvePath("/path",
(path)
| 7952 | * ``` |
| 7953 | */ |
| 7954 | function resolvePath(path) { |
| 7955 | var paths = []; |
| 7956 | for (var _i = 1; _i < arguments.length; _i++) { |
| 7957 | paths[_i - 1] = arguments[_i]; |
| 7958 | } |
| 7959 | return normalizePath(ts.some(paths) ? combinePaths.apply(void 0, __spreadArray([path], paths, false)) : normalizeSlashes(path)); |
| 7960 | } |
| 7961 | ts.resolvePath = resolvePath; |
| 7962 | /** |
| 7963 | * Parse a path into an array containing a root component (at index 0) and zero or more path |
no test coverage detected
searching dependent graphs…