( input: string, baseDir = process.cwd(), platform = process.platform, )
| 131 | } |
| 132 | |
| 133 | export function resolveUserPath( |
| 134 | input: string, |
| 135 | baseDir = process.cwd(), |
| 136 | platform = process.platform, |
| 137 | ): string { |
| 138 | const normalizedInput = normalizeUserPathInput(input, platform); |
| 139 | if (!normalizedInput) { |
| 140 | return ""; |
| 141 | } |
| 142 | return isAbsoluteNormalizedUserPath(normalizedInput, platform) |
| 143 | ? resolveAbsolutePath(normalizedInput, platform) |
| 144 | : resolve(baseDir, normalizedInput); |
| 145 | } |
| 146 | |
| 147 | function normalizeComparablePath(input: string): string { |
| 148 | return stripTrailingSlashes(normalizeSeparators(resolveUserPath(input))); |
no test coverage detected