Skip to content

${configDir} path candidate resolving is incorrect when extending base config #4361

Description

@Matthieu7503

When using the config extends functionnality, the ${configDir} in the paths is not resolved from the right location, it seems to pick the project root instead of the current package when using typescript 7.

Steps to reproduce

Here is a small repo to reproduce the issue configDir-resolving

Clone the repo, install dependencies and then run pnpm types-v6 which runs the type checking using typescript v6, it passes as expected, then run the pnpm types-v7 and it will fail.

You can then go in the file packages/sub-module/tsconfig.json and uncomment the paths config, which is the exact same as the one that should be extended, rerun the types-v7 command and now it passes.

Behavior with typescript@6.0

Path alias is properly resolved in the package from where the extended config is used.

Behavior with tsgo

Path alias is resolved to the project root instead of the package from where the extended config is used.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions