GeezerVison is showing github.com — switch to ESM and update config/test wiring by crazy-max · Pull Request #961 · docker/actions-toolkit
Conversation
crazy-max
commented
Jan 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
needed for #960
https://github.com/docker/actions-toolkit/actions/runs/21432262600/job/61714304782?pr=960#step:2:333
#13 [build 1/1] RUN --mount=type=bind,target=.,rw --mount=type=cache,target=/src/.yarn/cache --mount=type=cache,target=/src/node_modules yarn run build && mkdir /out && cp -Rf lib /out/
#13 11.52 node_modules/@actions/github/node_modules/@octokit/request-error/dist-types/types.d.ts(2,46): error TS2304: Cannot find name 'ErrorOptions'.
#13 11.52 src/context.ts(21,25): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@actions/github")' call instead.
#13 11.52 To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/src/package.json'.
#13 11.52 src/git.ts(23,23): error TS2307: Cannot find module '@actions/github/lib/context' or its corresponding type declarations.
#13 11.52 src/github.ts(31,25): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@actions/github")' call instead.
#13 11.52 To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/src/package.json'.
#13 11.52 src/github.ts(32,33): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@actions/github/lib/utils")' call instead.
#13 11.52 To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/src/package.json'.
#13 11.52 src/github.ts(33,23): error TS2307: Cannot find module '@actions/github/lib/context' or its corresponding type declarations.
#13 11.52 src/types/git.ts(17,40): error TS2307: Cannot find module '@actions/github/lib/context' or its corresponding type declarations.
#13 ERROR: process "/bin/sh -c yarn run build && mkdir /out && cp -Rf lib /out/" did not complete successfully: exit code: 2
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
@@ -1,8 +1,8 @@ |
|
|
{
|
|
|
"compilerOptions": {
|
|
|
"module": "es2020",
|
crazy-max
Jan 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use nodenext yet because of @actions/artifact/lib imports:
|
import {CreateArtifactRequest, FinalizeArtifactRequest, StringValue} from '@actions/artifact/lib/generated'; |
|
import {internalArtifactTwirpClient} from '@actions/artifact/lib/internal/shared/artifact-twirp-client'; |
|
import {isGhes} from '@actions/artifact/lib/internal/shared/config'; |
|
import {getBackendIdsFromToken} from '@actions/artifact/lib/internal/shared/util'; |
|
import {getExpiration} from '@actions/artifact/lib/internal/upload/retention'; |
Tried to vendor it but then Jest fails so would need to migrate Jest which will be used to transform files into valid JS based on Babel configuration without need of ts-type.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|