This project is read-only.

use TypeScript compiler from node

Topics: General
Oct 4, 2012 at 3:43 PM
Edited Oct 4, 2012 at 3:44 PM

It's pretty easy to do this with coffee-script.

var coffee = require('coffee-script'); 
coffee.compile("a = 1");
//=> '(function() {\n  var a;\n\n  a = 1;\n\n}).call(this);\n'

Is there a way to do this with typescript?

Note: this is a re-post from SO

EDIT: The reason I need this is so I can integrate it with my build system.

Oct 4, 2012 at 4:12 PM

It appears that the TypeScript NPM module doesn't export any public interface. I've created an issue to track this.

Oct 4, 2012 at 4:45 PM

great, thanks!