Skip to content

Migrate to ESM with esbuild and vitest#243

Open
davidgamero wants to merge 1 commit intoAzure:mainfrom
davidgamero:migrate-esm
Open

Migrate to ESM with esbuild and vitest#243
davidgamero wants to merge 1 commit intoAzure:mainfrom
davidgamero:migrate-esm

Conversation

@davidgamero
Copy link
Copy Markdown
Collaborator

  • update @actions/core, @actions/exec, @actions/tool-cache to esm-only majors
  • replace @vercel/ncc with esbuild bundler + createRequire shim
  • replace jest/ts-jest with vitest, using vi.mock()/vi.mocked() for esm compat
  • switch tsconfig to nodenext module resolution
  • add .js extensions to all relative imports
  • add tsc --noEmit typecheck to build script
  • fix core.debug(error) type safety in helpers.ts
  • add "type": "module" to package.json
  • remove babel config and jest config

@davidgamero davidgamero requested a review from a team as a code owner March 26, 2026 17:36
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