Skip to content

fix(argon2): add types condition to package.json exports map#9265

Merged
rashadjnizar merged 1 commit into
masterfrom
fix/argon2-package-json-types-export
Jul 16, 2026
Merged

fix(argon2): add types condition to package.json exports map#9265
rashadjnizar merged 1 commit into
masterfrom
fix/argon2-package-json-types-export

Conversation

@rashadjnizar

Copy link
Copy Markdown
Contributor

Summary

  • @bitgo/argon2's exports["."] map has no types condition, so consumers on TypeScript's "moduleResolution": "bundler" can't resolve index.d.ts even though it's referenced by the types field.
  • Found this while consuming @bitgo/argon2 directly from a Bun/TypeScript project (bunx tsc --noEmit failed with TS7016: Could not find a declaration file for module '@bitgo/argon2'), and worked around it locally with a bun patch carrying this exact one-line diff, opening this so the real fix lands upstream instead.

@rashadjnizar
rashadjnizar requested a review from a team as a code owner July 15, 2026 17:26
@rashadjnizar
rashadjnizar force-pushed the fix/argon2-package-json-types-export branch from c1079b9 to 87f6e2e Compare July 15, 2026 17:33
@rashadjnizar
rashadjnizar merged commit 7283a9a into master Jul 16, 2026
24 checks passed
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.

2 participants