node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Compile TypeScript files to JavaScript with TypeScript Version Manager.

Getting Started

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-tvm-tsc --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


Compile TypeScript with Version Manager task

Run this task with the grunt tvm_tsc command.

Usage Examples

tvm_tsc: {
  all: {
    options: {
      version: '1.0.1', // default: latest 
      option: '--target ES5 --removeComments'
    files: {
      'path/to/result.js': 'path/to/source.ts'



  • Type: String
  • Default: 'latest'
  • TypeScript compiler version


  • Type: String
  • Default: empty
  • tsc Command-line argument as option: tsc [options]