You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/external/lib/ contains 2 files, lib.js and lib.d.ts.
In src/App/Class/Class.ts I am importing ../../external/lib/lib and it works fine, but generates following structure:
The compiler does not copy files. I would add a post build task to copy your dependencies into the output folder.
The issue --rootDir is solving is consistenlly identifiing the root of your files. with out the flag, it is the logest common path of all inputs, that means that something like:
@mhegazy Yep, I originally structured it in a way where external dependencies are living in separate top level folder and src folder contains same tree in external sub-folder with only .d.ts files, but it really feels uncomfortable to have such duplicated structure. So I thought --rootDir might resolve this, sorry if I misunderstood its intention.
Totally off topic, nice tree you have there, how dd generate that?
Windows command tree made it for me. Actually it's not quite useful for big tree since it does not have level parameter :(
I have following structure
src/external/lib/
contains 2 files,lib.js
andlib.d.ts
.In
src/App/Class/Class.ts
I am importing../../external/lib/lib
and it works fine, but generates following structure:With JS files in
dist/App/Class
. My config is:So I thought what
rootDir
property should solve this problem and transfer entire structure todist
folder. Am I doing something wrong?The text was updated successfully, but these errors were encountered: