Skip to content

fix(contracts): remove incorrect "type": "module" from package.json#11

Merged
fbsobreira merged 1 commit intodevelopfrom
fix/remove-type-module-contracts
Mar 1, 2026
Merged

fix(contracts): remove incorrect "type": "module" from package.json#11
fbsobreira merged 1 commit intodevelopfrom
fix/remove-type-module-contracts

Conversation

@fbsobreira
Copy link
Member

Summary

  • Removes "type": "module" from @klever/connect-contracts package.json
  • This field was added by mistake during initial scaffolding and is inconsistent with all other packages in the monorepo
  • The dual CJS/ESM output with explicit extensions (.js/.mjs) and the exports map already handle both module systems correctly, making the field unnecessary and potentially conflicting

Test plan

  • pnpm build succeeds with both CJS and ESM output
  • Verify package works in Node.js CJS (require)
  • Verify package works in ESM / frontend bundlers (import)

The field was added by mistake during initial scaffolding and is
inconsistent with all other packages in the monorepo. The dual
CJS/ESM output with explicit extensions (.js/.mjs) and the exports
map already handle both module systems correctly.
@github-actions
Copy link

github-actions bot commented Mar 1, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions
Copy link

github-actions bot commented Mar 1, 2026

📦 Bundle Size Report

Package Size Gzipped
connect-contracts 86KB 17KB
connect-core 26KB 6KB
connect-crypto 29KB 7KB
connect-encoding 215KB 26KB
connect-provider 48KB 10KB
connect-react 24KB 5KB
connect-transactions 48KB 10KB
connect-wallet 59KB 10KB
connect 8KB 1KB

@fbsobreira fbsobreira merged commit 4f27155 into develop Mar 1, 2026
9 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.

1 participant