I know it was a month ago already, but it’s still pretty wild that this command ...
Michael Stapelberg 🐧🐹😺 @zekjur@mas.to
I know it was a month ago already, but it’s still pretty wild that this command will install a working TypeScript compiler (tsgo v7.0.2):
go install github.com/microsoft/typescript-go/cmd/tsgo@2bd066d
In particular, this means you can use Go’s tool directive support (see https://go.dev/ref/mod#go-mod-file-tool) to version the TypeScript compiler as a developer tool in your Go project:
go get -tool github.com/microsoft/typescript-go/cmd/tsgo@2bd066d
And then: go tool tsgo --version
https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/ if you missed the announcement
🤯