(filePath: string)
| 250 | * moves the alias map from one that doesn't, like a `strict` flag (#2977). |
| 251 | */ |
| 252 | export function aliasConfigFields(filePath: string): string | null { |
| 253 | const raw = readTsconfigLike(path.resolve(filePath)); |
| 254 | if (!raw) return null; |
| 255 | const co = raw.compilerOptions ?? {}; |
| 256 | return JSON.stringify([raw.extends ?? null, co.baseUrl ?? null, co.paths ?? null]); |
| 257 | } |
| 258 | |
| 259 | function splitWildcard(pattern: string): { |
| 260 | prefix: string; |
no test coverage detected