Switch from using tsc directly to using typescript.api