Draft
Convert project to ESM for @actions/core 3.0.1 compatibility#852
Conversation
- Add "type": "module" to package.json - Change tsconfig.json module from "commonjs" to "nodenext" - Add "moduleResolution": "nodenext" to tsconfig.json - Rename jest.config.js to jest.config.cjs - Update eslint.config.mjs to ignore jest.config.cjs Agent-Logs-Url: https://github.com/madhead/semver-utils/sessions/b29f011d-1181-4ef7-bc6a-c0e09e4fc0b2 Co-authored-by: madhead <577360+madhead@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
madhead
May 12, 2026 10:41
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@actions/core3.0.0 is ESM-only (changelog). Thenccbundler (webpack) fails to resolve the package when the project outputs CJS:Changes
package.json— Add"type": "module"tsconfig.json—"module": "nodenext","moduleResolution": "nodenext"(was"commonjs")jest.config.js→jest.config.cjs— Usesmodule.exports, incompatible with"type": "module"eslint.config.mjs— Update ignore to match renamed jest config