-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: replace tsutils with ts-api-tools #6428
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
fix: replace tsutils with ts-api-tools #6428
Conversation
Thanks for the PR, @JoshuaKGoldberg! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## v6 #6428 +/- ##
==========================================
- Coverage 91.92% 91.85% -0.08%
==========================================
Files 360 360
Lines 12499 12357 -142
Branches 3701 3652 -49
==========================================
- Hits 11490 11350 -140
+ Misses 707 705 -2
Partials 302 302
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
@@ -11,6 +11,7 @@ module.exports = { | |||
'tsx', | |||
'mts', | |||
'mtsx', | |||
'cjs', |
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.
ts-api-tools
formats its output files as .js
with ES modules. But it also includes an additional set of .cjs
files for CJS users. This allows Jest to consider .cjs
files (which it didn't before) - and look at them before .js
files.
Note that I renamed the package to |
PR Checklist
Overview
Uses
ts-api-tools
as a drop-in replacement fortsutils
.Note that
tsutils
provides someis*
typeguards that are now exposed by TypeScript (e.g.ts.isBinaryExpression
). I've gone ahead and switched to the TypeScript versions in this PR. Once #5573 is in we'll have CI checking to make sure our TypeScript version range supports them.