I know it was a month ago already, but it’s still pretty wild that this command ...

@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 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

devblogs.microsoft.com/typescr if you missed the announcement

🤯

#golang #typescript