Closed loynoir closed 1 year ago
The files in reproduce1
don't correspond to any tsconfig file, so nothing causes them to have moduleResolution: "nodenext"
as is required to do node16 module resolution
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.
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.
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