Join GitHub today
Start seriously converting the CLI to TypeScript #743
This PR converts almost all the utils, a little of the easiest commands & all the documentation generation pipeline to TypeScript.
I've skipped the Docker utils (since I think @dfunckt is creating a lot of conflicting changes in those as we speak), and I haven't started on the top-level actions etc for now, because that'll be both very conflicty, fairly tricky, this would be hard to review all in one go!
This is still pretty big though - might be a little easier to review commit by commit.
I've tried to be pretty cautious sticking with existing behaviour here for now, and just directly translating, to keep this manageable. That said, there's a two notable discrepancies that I've fixed where TS found real bugs (which is cool):
There's also a fun new TS pattern I'm using here: dynamic import expressions. Lots of CLI code runs
Instead, we use