Currently, I am diving into TypeScript and have managed to create a basic app that I would like to deploy using VSTS on Azure App Service. My straightforward build definition involves the following steps:
- Utilize "Node Tool Installer (preview)" to set up Node 6.x
- Use "npm" to execute 'npm install' for essential dependencies such as TypeScript, jQuery, Bootstrap
- Employ "Command Line" to run 'tsc --project tsconfig.json'
- Deploy the app with "Azure App Service Deploy"
My issue arises during step 3 when the TypeScript compiler is triggered... An error occurs concerning the '--project' command line argument due to the fact that the Hosted build agent has TypeScript v1.4 installed while I developed the app using v2.5.3.
How can I ensure that the correct version of TypeScript is compiled to successfully transpile the application? It appears to be a simple challenge, but I haven't been able to find any solutions that don't involve a .NET project utilizing MSBuild & NuGet (which does not apply in this case: HTML, CSS, & TS converted to JS).