Skip to content
Commit Detail

Commit ee484cd

Author
Somhairle MacLeòid <smacleod@cloudflare.com> 2024-07-12 11:37:38 +0100
Parents
8651bd1
Tree
525708b
Refactor type generation scripts (#2379)

* Create a fully in-memory compiler host, rather than patching the default `ts` compiler host.

This ensures that no filesystem operations are attempted by typescript.

* [new] support additional lib files when constructing an in-memory TS program

* Refactor modifier checking (ensuring `export` and `declare` are in the right place), and ensure no `declare`s inside `module` declarations

* Use new in-memory types for overrides and defines

* Refactor global extraction

* More refactoring

* Fix tests and add updates

* Address comments

* Remove unused code

Files changed