script for compile all ts files