-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Use multiple TypeScript projects #16430
Merged
nicolo-ribaudo
merged 28 commits into
babel:main
from
nicolo-ribaudo:ts-project-references
Apr 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
95ed395
Migrate to TS project references
nicolo-ribaudo e203f5d
Commit generated tsconfig.json
nicolo-ribaudo 9fe20b6
Add missing `@babel/core` dep to helper-plugin-utils
nicolo-ribaudo 63cf90e
Fix standalone type checking
nicolo-ribaudo d2068cb
Fix generation
nicolo-ribaudo c2539c7
Avoid ts-expect-error in dts files
nicolo-ribaudo a836925
Only clean tsbuildinfo on prepublish, or manually
nicolo-ribaudo 5580fbb
Add missing `include: []` to root tsconfig.json
nicolo-ribaudo 6b61c46
Add script to run tsc on multiple cores
nicolo-ribaudo bcd8ee4
Reduce logging
nicolo-ribaudo 38f7cad
Make types faster
nicolo-ribaudo 116d9f4
Only chech .d.ts files in the root project
nicolo-ribaudo 57e42cd
Copy .d.ts files from `src` to `dts`
nicolo-ribaudo e2ebc5e
Remove unnecessary /// ref
nicolo-ribaudo 658b19c
Rermove ts-expect-error that hides error in .d.ts
nicolo-ribaudo 4a88eff
Do not double-check `.d.ts` files in `src`
nicolo-ribaudo e733be5
Update ts-node to support array in tsconfig.json#extends
nicolo-ribaudo 2e0464b
Run tsc in parallel in `make tscheck`
nicolo-ribaudo 9ea2520
Sort NodePath members from least to most complex
nicolo-ribaudo 37112aa
Actually generate the generated file
nicolo-ribaudo bd75691
Pre-run tsc before linting
nicolo-ribaudo 2ecb92a
Run tsc before linting
nicolo-ribaudo 8963032
max-old-space-size=4096
nicolo-ribaudo 229da63
Run ESLint in chunks
nicolo-ribaudo 7641357
cleanup
nicolo-ribaudo 6cf9532
Actually lint on CI
nicolo-ribaudo a210014
fix win
liuxingbaoyu 179ea0e
Dedupe reference paths in top-level tsconfig
nicolo-ribaudo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce logging
- Loading branch information
commit bcd8ee4a687453d09d82e52bcd616f0240837f4e
There are no files selected for viewing
This file contains 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
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.
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's worth noting that if you're not doing a
--fix
run then you can actually pass thets.Program
instance and reuse the types for the lint run.https://typescript-eslint.io/packages/parser#programs
This would net you a modest speedup by skipping one "typecheck" cycle.
Note - you'd need to switch from invoking
tsc
via a child process to directly using the typescript APIs to do this though.Thought it was worth mentioning in case you want speeeeed