Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extends clause in tsconfig should look into the exports field #3058

Closed
ilogico opened this issue Apr 13, 2023 · 0 comments
Closed

extends clause in tsconfig should look into the exports field #3058

ilogico opened this issue Apr 13, 2023 · 0 comments

Comments

@ilogico
Copy link

ilogico commented Apr 13, 2023

TypeScript 5.0 now looks into the exports field of package.json when resolving the extended files, but esbuild doesn't appear to do so.
Example:

{
  "extends": "@whatever/tsconfig/node"
}
{
  "name": "@whatever/tsconfig",
  "exports": {
    "./node": "./tsconfig.node.json"
  }
}

will emit this warning:

▲ [WARNING] Cannot find base config file "@whatever/tsconfig/node" [tsconfig.json]

    tsconfig.json:2:13:
      2 │   "extends": "@whatever/tsconfig/node",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant