From within a node app I would like to do:
var typeScript = require(\'typescript\');
typeScript.compile(\'...\')
I\'m looking to implemen
better-require could help you achieve this if all you want is executing/accessing the typescript file.
It lets you require() typescript files - no pre-compilation needed - and a bunch of other file formats (coffeescript, clojurescript, yaml, xml, etc.)
require('better-require')();
var myModule = require('./mymodule.ts');
Disclosure: I wrote better-require.