script to automatically compile typescript