Skip to content

Migrate to ESM and update all npm packages to latest versions#234

Merged
jeffkl merged 2 commits into
mainfrom
update
Apr 15, 2026
Merged

Migrate to ESM and update all npm packages to latest versions#234
jeffkl merged 2 commits into
mainfrom
update

Conversation

@jeffkl

@jeffkl jeffkl commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
  • Add type: module to package.json
  • Update @actions/core, @actions/exec, @actions/io to v3 (ESM-only)
  • Update @actions/tool-cache to v4 (ESM-only)
  • Update semver, ts-jest, jest, prettier, nock, eslint-plugin-github, eslint-plugin-jest, @types/node, @typescript-eslint/parser
  • Switch tsconfig module to nodenext with matching moduleResolution
  • Enable isolatedModules for ts-jest ESM compatibility
  • Add .js extensions to all relative imports
  • Replace __dirname with import.meta.dirname in tests
  • Convert jest.config.js to ESM with useESM and moduleNameMapper
  • Use --experimental-vm-modules for Jest ESM support
  • Regenerate lib/ and dist/ output

- Add type: module to package.json
- Update @actions/core, @actions/exec, @actions/io to v3 (ESM-only)
- Update @actions/tool-cache to v4 (ESM-only)
- Update semver, ts-jest, jest, prettier, nock, eslint-plugin-github,
  eslint-plugin-jest, @types/node, @typescript-eslint/parser
- Switch tsconfig module to nodenext with matching moduleResolution
- Enable isolatedModules for ts-jest ESM compatibility
- Add .js extensions to all relative imports
- Replace __dirname with import.meta.dirname in tests
- Convert jest.config.js to ESM with useESM and moduleNameMapper
- Use --experimental-vm-modules for Jest ESM support
- Regenerate lib/ and dist/ output

Co-authored-by: Copilot <[email protected]>
@jeffkl jeffkl self-assigned this Apr 14, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@jeffkl jeffkl marked this pull request as ready for review April 14, 2026 15:52
@jeffkl jeffkl requested a review from a team as a code owner April 14, 2026 15:52
@jeffkl jeffkl merged commit fd55a6f into main Apr 15, 2026
5 checks passed
@jeffkl jeffkl deleted the update branch April 15, 2026 21:32

@honyocokrokusuma-RLTM honyocokrokusuma-RLTM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kodim 405

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.

4 participants