Skip to content

chore: migrate to native ESM (NodeNext)#4

Merged
heoh merged 2 commits intomainfrom
cjs-to-esm
Feb 24, 2026
Merged

chore: migrate to native ESM (NodeNext)#4
heoh merged 2 commits intomainfrom
cjs-to-esm

Conversation

@heoh
Copy link
Owner

@heoh heoh commented Feb 24, 2026

This PR moves the project to a native ESM setup.

What changed

  • Added type: module in package.json
  • Switched TypeScript to NodeNext (module, moduleResolution)
  • Migrated Jest config to ESM (jest.config.mjs)
  • Updated relative imports in src/ and tests/ to .js specifiers
  • Kept Action runtime entrypoint as dist/index.js (via ncc)
  • Added a short ESM note in README.md

Why

The project is still early-stage, so this is the best time to align with native ESM and avoid future migration cost.

Validation

  • npm run lint
  • npm test
  • npm run build

Scope

No functional behavior change. This PR is configuration/tooling/module-system only.

@heoh heoh merged commit 821781e into main Feb 24, 2026
@heoh heoh deleted the cjs-to-esm branch February 24, 2026 14:43
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