Skip to content

feat: Add CommonJS support with dual ESM/CJS build#3

Merged
letehaha merged 1 commit intomainfrom
feat/common-js-support
Feb 28, 2026
Merged

feat: Add CommonJS support with dual ESM/CJS build#3
letehaha merged 1 commit intomainfrom
feat/common-js-support

Conversation

@letehaha
Copy link
Owner

  • Add tsconfig.cjs.build.json for CommonJS output to dist/cjs/
  • Update package.json exports with import/require conditions for all subpaths
  • Set main to CJS entry, add module field for ESM
  • Fix build excludes to prevent integration tests and test-utils leaking into dist
  • Bump version to v0.2.0

- Add tsconfig.cjs.build.json for CommonJS output to dist/cjs/
- Update package.json exports with import/require conditions for all subpaths
- Set main to CJS entry, add module field for ESM
- Fix build excludes to prevent integration tests and test-utils leaking into dist
- Bump version to v0.2.0
@letehaha letehaha self-assigned this Feb 28, 2026
@letehaha letehaha merged commit e1e3567 into main Feb 28, 2026
1 check passed
@letehaha letehaha deleted the feat/common-js-support branch February 28, 2026 22:56
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