fix: migrate to ESM and update all dependencies to latest#647
Merged
Conversation
- Add "type": "module" to package.json - Update tsconfig: target ES2022, module ESNext, moduleResolution Bundler - Remove esModuleInterop (not needed for native ESM) - Update @actions/core 1.x → 3.0.1 (ESM-only) - Update @actions/exec 1.x → 3.0.0 (ESM-only) - Update @actions/http-client 2.x → 4.0.1 (ESM-only) - Update @actions/io 1.x → 3.0.2 (ESM-only) - Update @actions/tool-cache 2.x → 4.0.0 (ESM-only) - Update typescript 5.x → 6.0.3 - Update @vercel/ncc 0.38.1 → 0.38.4 - Fix LatestInstaller: move SnapshotInstaller init into constructor to avoid ES2022 class field initialization order issue - Fix tests: replace vi.spyOn on ESM module exports with vi.mock + vi.mocked pattern Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Update @biomejs/biome 1.7.2 → 2.4.14 - Migrate biome.json: files.ignore → files.includes with negation patterns - Update lint:fix script: --apply → --write (renamed in Biome 2.x) - Apply auto-fixed import ordering in src/ files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
12447c3 to
4980211
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Migrates the project to ESM and updates all dependencies to their latest versions.
Changes
ESM migration
"type": "module"topackage.jsontsconfig.json:target: ES2022,module: ESNext,moduleResolution: Bundler, removeesModuleInteropLatestInstaller: moveSnapshotInstallerinit into constructor body to avoid ES2022 native class field initialization order issuevi.spyOnon ESM module exports withvi.mock+vi.mockedpattern (ESM module exports are non-configurable by spec)Dependency updates
@actions/core@actions/exec@actions/http-client@actions/io@actions/tool-cachetypescript@vercel/ncc@biomejs/biome@types/nodevitestBiome 2.x migration
files.ignore→files.includeswith negation patternslint:fixscript:--apply→--write