-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
dts resolve to CJS entry dts instead of ESM entry dts when not included in tsconfig #53958
Comments
The files in |
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
1 similar comment
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
1 similar comment
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
dts resolve to CJS entry dts instead of ESM entry dts when js not included in tsconfig
🔎 Search Terms
// @ts-check
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
https://github.com/loynoir/reproduce-typescript-53958
🙁 Actual behavior
./reproduce1/test-esm-dts-resolve-1.mjs
./reproduce1/test-esm-dts-resolve-2.mjs
./reproduce1/test-mts-dts-resolve.mts
dts resolve to
./node_modules/@sinclair/typebox/cjs/typebox.d.ts
🙂 Expected behavior
dts resolve to
./node_modules/@sinclair/typebox/esm/typebox.d.ts
The text was updated successfully, but these errors were encountered: