Skip to content

fix: use node cjs exports for eas sdk#2

Merged
derekbar90 merged 1 commit into
masterfrom
feature/bundle-eas-sdk
May 18, 2026
Merged

fix: use node cjs exports for eas sdk#2
derekbar90 merged 1 commit into
masterfrom
feature/bundle-eas-sdk

Conversation

@derekbar90
Copy link
Copy Markdown
Contributor

@derekbar90 derekbar90 commented May 18, 2026

Summary

  • Add Node-specific package export conditions for @steerprotocol/eas-store and @steerprotocol/eas-store/testing
  • Keep browser/bundler consumers on the ESM build while native Node/Vitest resolves the CommonJS build

Why

EAS SDK 2.9.0 ships an ESM entry with extensionless relative imports such as ./eas, which native Node ESM resolution cannot load. Using the CommonJS build for Node consumers avoids that broken ESM entrypoint without bundling the full EAS SDK into the browser-facing build.

Validation

  • npm run build
  • npm test
  • npm run typecheck
  • npm run demo:build
  • npm run demo:e2e
  • node --input-type=module -e "import { EASStore } from '@steerprotocol/eas-store'; console.log(typeof EASStore)"
  • Linked rebuilt package into interface-v2 and verified the EAS route/unit suites pass

@derekbar90 derekbar90 marked this pull request as ready for review May 18, 2026 17:56
@derekbar90 derekbar90 force-pushed the feature/bundle-eas-sdk branch from 604bc4a to 7109e34 Compare May 18, 2026 18:15
@derekbar90 derekbar90 changed the title fix: bundle eas sdk in package build fix: use node cjs exports for eas sdk May 18, 2026
@derekbar90 derekbar90 merged commit a60ddcc into master May 18, 2026
1 check passed
@derekbar90 derekbar90 deleted the feature/bundle-eas-sdk branch May 18, 2026 18:18
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant