-
Notifications
You must be signed in to change notification settings - Fork 28
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: generate declaration files #4
Conversation
I've managed to improve performance but it's still 10x longer to emit types than just transpile the files. I can imagine enabling it when using |
@danielroe I was going to benchmark as well. Yes disabling by default makes sense. We may be able to reuse same instance of typescript compiler across files and do it off-thread using a worker (for later) |
Typescript compiler is anyway slow but performance should be fixed by 421b200. It think it would be nice we add support for |
extra-testing is evil! It makes harder to iterate
.d.ts
declaration files
Reference: https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API#getting-the-dts-from-a-javascript-file
Note that generating
.d.ts
files willdramaticallyincrease the time required to runmkdist
(from order of 50-100ms to7-10s500ms).TODO:
use file cache rather than reading files from diskenable by defaultCloses #2