Specifying path for libraries as a compiler option

Topics: Code Checkins, General
Jun 19, 2014 at 1:53 PM
Hi guys,

essentially, what I'd need to deal with "library projects" is this suggestion:

Since it looks like it won't be implemented I'm trying to do that, but I'd need some hints on how to begin as I never modified the TypeScript compiler before (I do know js and ts).

What I'd do is simply to go through the typescript files involved and resolve each reference by substituting the value of library name with it's path as a preprocessing step (prior to anything the compiler would do)
For example this reference:

/// <reference path="{pathProjectA}/Foo.ts" />

with this config:
pathProjectA = "libs/projectA/src"

/// <reference path="{pathProjectA}/Foo.ts" />

So it's really just a simple replacement which I could do, but it'd be essential not to actually modify the files (just replace in the internal representation during the compiling process) and I could really use some pointer on how to implement this on typescript?

Also will there a way to submit a pull request if it gets implemented later on?

Jul 10, 2014 at 8:50 AM
Nobody interested in this ? :)