-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add CommonJS core
types
#102
Conversation
"directories": { | ||
"test": "tests" | ||
}, |
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.
There is no "tests" directory in this package. We will want to add it at some point.
"@types/eslint": "^9.6.0", | ||
"eslint": "^9.0.0", | ||
"mocha": "^10.4.0", | ||
"typescript": "^5.4.5" |
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.
It looks like only the typescript
dependency is used during the build (to run the tsc
command). eslint
is only used when linting from the root of the monorepo, where it is already included in the devDependencies
.
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.
LGTM.
Prerequisites checklist
What is the purpose of this pull request?
Add CommonJS types to
@eslint/core
.What changes did you make? (Give an overview)
I've added a build step that copies the generated
esm/types.d.ts
file tocjs/types.d.cts
in thedist
directory. Updated settings so that bothdist
files will be published to npm and JSR instead of the source file. This follows the pattern we are using in other packages in this repo.I've verified that the new
.cts
module can be imported in@types/eslint
when@eslint/core
is added as a dependency.Related Issues
fixes #95
Is there anything you'd like reviewers to focus on?