Skip to content

Migrate hashFiles to ESM for @actions/glob 0.6.1 compatibility#4234

Draft
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/src/Misc/expressionFunc/hashFiles/main/actions/glob-0.6.1from
copilot/sub-pr-4229
Draft

Migrate hashFiles to ESM for @actions/glob 0.6.1 compatibility#4234
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/src/Misc/expressionFunc/hashFiles/main/actions/glob-0.6.1from
copilot/sub-pr-4229

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

@actions/glob 0.6.0+ is ESM-only. The hashFiles function compiled to CommonJS, which cannot load ESM modules.

Changes:

  • Set "type": "module" in package.json
  • Updated tsconfig: module: "ES2020", moduleResolution: "node"
  • Added --target es2020 to ncc build command

No source code changes required—TypeScript imports work identically for both module systems. The Node 20 runtime fully supports ESM.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump @actions/glob from 0.4.0 to 0.6.1 Migrate hashFiles to ESM for @actions/glob 0.6.1 compatibility Feb 10, 2026
Copilot AI requested a review from salmanmkc February 10, 2026 09:47
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

Comments