Compile TS code