tsconfck
tsconfck copied to clipboard
compilerOptions.paths are not rebased correctly if defined in an extended tsconfig in a different directory
Description
see https://github.com/vitest-dev/vitest/issues/7501#issuecomment-2675730438
Reproduction
https://github.com/rixo/vitest-issue-tsconfig-relative-paths
run pnpm dlx tsconfck parse tsconfig.json
expected output
as defined in https://www.typescriptlang.org/docs/handbook/modules/reference.html#relationship-to-baseurl the paths should be treated as relative to baseUrl or the directory of the tsconfig that defined them