Improve Typescript compilation configuration