Updates dependencies and migrates project to ESM#56
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Migrates the project to ESM and updates the build/lint/tooling stack accordingly.
Changes:
- Switch TypeScript compilation to modern ESM (
NodeNext) and update internal imports to use.jsextensions. - Replace
nccpackaging with anesbuild-based bundling step todist/index.js. - Refresh dependencies/dev tooling and introduce a flat ESLint config.
Reviewed changes
Copilot reviewed 9 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Updates TS target/libs and switches module + resolution to NodeNext for ESM builds. |
| src/validate.ts | Updates ESM import path; reformats validation logic. |
| src/validate.spec.ts | Updates ESM import path; reformats tests. |
| src/utils.ts | Updates ESM import path; reformats helper utilities. |
| src/utils.spec.ts | Updates ESM import paths; reformats tests. |
| src/main.ts | Updates ESM import paths; reformats main action entrypoint. |
| src/constants.ts | Reformats exported constants object. |
| src/commands.ts | Updates ESM import paths; reformats command builders. |
| src/commands.spec.ts | Updates ESM import paths; reformats tests. |
| package.json | Marks package as ESM, replaces packaging script with esbuild, adds lint scripts, bumps deps/devDeps. |
| package-lock.json | Lockfile updated to reflect new dependency graph/tooling. |
| eslint.config.mjs | Adds ESLint flat config for TS + stylistic rules. |
| dist/sourcemap-register.js | Removes previously committed sourcemap registration artifact. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <copilot@github.com>
42632d4 to
e15892f
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.
No description provided.