Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilerOptions.paths are not rebased correctly if defined in an extended tsconfig in a different directory #214

Open
dominikg opened this issue Feb 21, 2025 · 1 comment

Comments

@dominikg
Copy link
Owner

dominikg commented Feb 21, 2025

Description

see vitest-dev/vitest#7501 (comment)

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

@dominikg
Copy link
Owner Author

for parseNative, the output of parseJsonFileContent includes options.pathsBasePath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant