From ef9d22d9c7ca7bf85ba5c09e6a95900fd26dbe14 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Wed, 17 May 2023 07:49:11 +0100 Subject: [PATCH] fix: add tsconfig to exports map 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: https://github.com/microsoft/TypeScript/issues/53314 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index ac3617a58..ab2b0e6af 100644 --- a/package.json +++ b/package.json @@ -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": {