Skip to content

feat!: convert to ESM on current @actions majors - #1

Draft
janakiram7755 wants to merge 5 commits into
mainfrom
feat/esm-rewrite
Draft

feat!: convert to ESM on current @actions majors#1
janakiram7755 wants to merge 5 commits into
mainfrom
feat/esm-rewrite

Conversation

@janakiram7755

Copy link
Copy Markdown
Collaborator

First change on top of the extracted history.

  • type: module, tsconfig nodenext, .js extensions on relative imports. Output is real ESM — 0 require() calls.
  • All six @actions/* deps to current majors. Their API surface is unchanged across the bump, so no call sites moved.
  • @octokit/webhooks-definitions@octokit/webhooks-types (the former is deprecated and has no exports map, so nodenext cannot resolve its subpath).
  • Dropped an unused @azure/abort-controller import and the dep with it.
  • Guarded head.repo.name, now correctly typed optional — previously undefined could be added to restoreRepos.
  • Inlined tsconfig, added .gitignore (the extraction inherited neither), dropped src/test.ts.

Cache versions are byte-identical to published 1.4.13 across 10 path/compression/cross-os/cross-arch combinations, so nothing already in the fleet is orphaned.

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.

1 participant