changed build & link for automatically ts build