Closed lifenautjoe closed 8 years ago
I've struggled with how to appropriately do this. Any suggestions for improvement are hugely welcome.
dist
DOES have all the compiled files. But when you are looking to use the TypeScript files in your project, it seems easier to point to source
.
So if you were writing TypeScript, you'd:
import Queue from 'node_modules/typescript-dotnet/source/System/Collections/Queue'
And then any code you wrote would work both within the TypeScript compiler and your compiled code.
Again, this may be the wrong way to do this, but so far it's the only way I've been able to figure out that accommodates TypeScript and different JavaScript distributions.
Also note that the JS files in the source
directory use UMD modules so they can be easily imported from NodeJS or RequireJS, or... whatever...
@thefabulousdev, feel free to reopen if you want to discuss more.
Shouldn't all the compiled TypeScript files reside on dist?