Reference Entire Directory Typescript Reference Entire Directory Typescript typescript typescript

Reference Entire Directory Typescript


This isn't directly supported. If you're interested in structuring your files this way, I'd recommend having an intermediate file to reference which in turn references all the other files; it'd be pretty easy to write a script to update that file.


It turns out there is an easy way since TS 1.5:

Use the filesGlob-flag in the tsconfig.json :This allows wildcards like /path/to/folder/*

You can read more here:http://blog.icanmakethiswork.io/2015/02/hey-tsconfigjson-where-have-you-been.html