Shim generator
Run this command from the repository root:
go run ./tools/gen_shims
The generator rewrites shim.go in these public package trees:
ast, bundled, checker, compiler, core, parser, scanner,
tsoptions, tspath, vfs, vfs/cachedvfs, and vfs/osvfs.
It reads each package's extra-shim.json when present. It does not rewrite
manual files such as ast/helpers.go and
compiler/semantic_diagnostics.go.
The generator and the initial generated shims were adapted from
oxc-project/tsgolint commit
7324ae6a96cacd6284a0d0fb7397073052005c0a. That source pins
microsoft/typescript-go commit
2bd066d87f5bafd315be9f40889d0a60b9e58e0b. The local copy is included so
shim updates do not depend on a moving external tool.