Skip to content

feat: add dual module support for ES6 imports and CommonJS requires#8

Merged
paco-valdez merged 2 commits intomainfrom
feat/support-import
Aug 22, 2025
Merged

feat: add dual module support for ES6 imports and CommonJS requires#8
paco-valdez merged 2 commits intomainfrom
feat/support-import

Conversation

@AvilaJulio
Copy link
Collaborator

No description provided.

- Updated package.json with exports field for conditional module loading
- Added build script to generate CommonJS versions in dist/ folder
- Updated GitHub workflows to run build before testing/publishing
- Updated README with usage examples for both import styles
- Added prepublishOnly hook to ensure build runs before npm publish
@paco-valdez paco-valdez merged commit 7901a08 into main Aug 22, 2025
6 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