Provide compatibility for moduleResolution "Node" #6

Closed
opened 2026-09-15 09:26:56 +02:00 by milgner · 2 comments

The library includes TypeScript declarations at dist/index.d.mts, but its package.json does not expose them through a top-level types field.

With TypeScript 5.9 and traditional moduleResolution: "Node" (Node10), a normal import fails:

TS2307: Cannot find module 's3mini' or its corresponding type declarations.

Could the package add the following field?

"types": "./dist/index.d.mts"

It would preserve the current runtime export and improve compatibility without requiring consumers to override moduleResolution for this dependency.

Thank you for providing a S3 client library that doesn't have a plethora of dependencies!

The library includes TypeScript declarations at `dist/index.d.mts`, but its `package.json` does not expose them through a top-level `types` field. With TypeScript 5.9 and traditional `moduleResolution: "Node"` (Node10), a normal import fails: ``` TS2307: Cannot find module 's3mini' or its corresponding type declarations. ``` Could the package add the following field? ``` "types": "./dist/index.d.mts" ``` It would preserve the current runtime export and improve compatibility without requiring consumers to override `moduleResolution` for this dependency. Thank you for providing a S3 client library that doesn't have a plethora of dependencies!
Owner

thank you very much for the catch and report @milgner !

Please, pull the v1.0.2 if that works for you now and let me know please ....

thank you very much for the catch and report @milgner ! Please, pull the v1.0.2 if that works for you now and let me know please ....
Author

Yes, it works! Thank you so much for the quick response and patch! 🙏

Yes, it works! Thank you so much for the quick response and patch! 🙏
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thinking.tools/s3mini#6
No description provided.