-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Bug Report
🔎 Search Terms
tsconfig, exports, extends
🕗 Version & Regression Information
I encountered this issue in version [email protected].
Error description
You can use the tsconfig.json extends field to inherit configuration options from another tsconfig file. The base tsconfig file can be located in another package, like demonstrated here.
🙁 Actual behavior
Let's say I'm in package my-app, which contains a tsconfig with "extends": "my-lib/tsconfig-base.json. Typescript ignores the exports field of package my-lib. It will always look for a file tsconfig-base.json in the my-lib root directory, even if an "exports" mapping exists for this name.
🙂 Expected behavior
I expected Typescript to use the standard node resolution algorithm when looking up the tsconfig file on disk, which respects the "exports" field.
ilogico, agilgur5, maybeanerd, latin-1, nchevsky and 4 more
Metadata
Metadata
Assignees
Labels
Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript