this is what im having in mind:
var config = { // this is generated on the fly ... or JSON.parse(readFileAsText('tsConfig.json'))
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"outDir": "./lib",
"jsx": "react",
},
"compileOnSave": false,
"include": ["src"],
"exclude": ["lib"]
}
var emitResult = tsc.compileByConfig(config); // this line is what im missing ..
currently i have no idea, how to resolve all files that will be compiled...