Skip to content

Convert project to ESM for @actions/core 3.0.1 compatibility#852

Draft
madhead with Copilot wants to merge 1 commit into
dependabot/npm_and_yarn/actions/core-3.0.1from
copilot/fix-build-issues-actions-core-update
Draft

Convert project to ESM for @actions/core 3.0.1 compatibility#852
madhead with Copilot wants to merge 1 commit into
dependabot/npm_and_yarn/actions/core-3.0.1from
copilot/fix-build-issues-actions-core-update

Conversation

Copilot AI commented May 12, 2026

Copy link
Copy Markdown

@actions/core 3.0.0 is ESM-only (changelog). The ncc bundler (webpack) fails to resolve the package when the project outputs CJS:

Error: Module not found: Error: Package path . is not exported from package @actions/core

Changes

  • package.json — Add "type": "module"
  • tsconfig.json"module": "nodenext", "moduleResolution": "nodenext" (was "commonjs")
  • jest.config.jsjest.config.cjs — Uses module.exports, incompatible with "type": "module"
  • eslint.config.mjs — Update ignore to match renamed jest config

- 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>
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