Right now, if I understand well, we could use the <reference> tag to tell the compiler we want him to check for the reference and resolve recursively all its dependency before actually compile the source code.
The problem is that writing:
/// <reference path="./othersourcecode.ts" />
I'm looking to know if there is a way we could let the compiler know that the current .ts file needs others to be parsed and resolved but not imported in the compiled content.
/// <reference path="./othersourcecode.ts"
Would be nice but i'd probably suggest having a compiler option you can use so that the source code could be compiled in both way if you want. Something like:
tsc --out file.js --dependency-inclusion false SourceFile.ts