Skip to content

Commit

Permalink
fix: add tsconfig to exports map (#1278)
Browse files Browse the repository at this point in the history
TypeScript used to be able to resolve the extends field in `tsconfig.json`
using the node require algorithm.

Recent versions of TypeScript have a regression that means that if
a module has an exports map, the extendable typescript config file
has to be in that exports map so add it here.

Refs: microsoft/TypeScript#53314
  • Loading branch information
achingbrain authored May 17, 2023
1 parent 716c6ee commit 94b4c4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
"types": "./dist/utils/resolve.d.ts",
"browser": "./utils/resolve.browser.js",
"import": "./utils/resolve.js"
},
"./src/config/tsconfig.aegir.json": {
"require": "./src/config/tsconfig.aegir.json"
}
},
"eslintConfig": {
Expand Down

0 comments on commit 94b4c4b

Please sign in to comment.