Skip to content

TypeScript ignores "tsconfig.json" of linked dependency whose main module has ".ts" extension #31926

@aleclarson

Description

@aleclarson

TypeScript Version: 3.6.0-dev.20190615

Search Terms:
symlink yarn link dependency main tsconfig tsconfig.json

Code: https://github.com/aleclarson/repro/tree/tsc-1

Note: That repro is not my real use case, but it succinctly demonstrates the problem. My real use case involves the linked dependency using compilerOptions.paths to resolve a sub-dependency.

Expected behavior:
The dependency's tsconfig.json should be used, because the main module has a .ts extension.

Actual behavior:
The parent's tsconfig.json is used instead, resulting in a compiler error.

Related Issues: None

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions