I am learning TypeScript and have built a very simple app that I would like to build using VSTS and then deploy as a web app on Azure App Service. My very simple build definition steps are as follows:
- "Node Tool Installer (preview)" to install Node 6.x
- "npm" to run 'npm install' for my dependencies (TypeScript, jQuery, Bootstrap)
- "Command Line" to run the 'tsc --project tsconfig.json'
- "Azure App Service Deploy" to deploy the app
The problem I am having is on step 3 when the TypeScript compiler is invoked... I get an error about the '--project' command line argument because the version of TypeScript that is installed on the Hosted build agent is v1.4 but I have developed against v2.5.3.
How can I get the right version of TypeScript compiled to run to compile the application? Seems simple, but I'm not finding any answers that don't involve a .NET project using MSBuild & NuGet (which this is definitely not: HTML, CSS, & TS transpiled to JS).