Skip to content

Conversation

@acoBOYZ
Copy link

@acoBOYZ acoBOYZ commented Dec 18, 2025

Summary

TypeScript fails to resolve @carbonteq/jwt when using modern module resolution modes
(node16, nodenext, bundler), even though the package works at runtime in Node.js and Bun.

This happens because the exports map does not expose a root "." entry that TypeScript
can legally resolve.

This change adds a proper root "." export and nests the existing node condition under it,
making the package spec-compliant and TypeScript-friendly without changing runtime behavior.

  • Fixes TypeScript resolution for ESNext / NodeNext users
  • No runtime or API changes
  • Fully backward compatible

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

Successfully merging this pull request may close these issues.

1 participant