So I'm creating a TypeScript library and I can easily compile all generated JS files into a single file. Is there a way to compile all .ts and .d.ts into a single .ts file?
It'd be nice to support a pure TypeScript implemented lib (for those who want the nice intellisense and to be able to debug the core TS files) in addition to a JS supported version (lesser intellisense, can only debug generated files).
One solution would be to create a powershell script that concatenates all the files but I don't see a good way to do that dynamically (because of dependencies) without hard coding all of the file names in the correct order.