These are chat archives for TypeStrong/atom-typescript

21st
May 2015
Patrick Toy
@patrickjtoy
May 21 2015 14:40

So, I noticed an apparent change in how atom-typescript is choosing where to locate compiled JS files, and I'm not quite sure how to get it back to how it was originally working. I've got a file structure for my project that looks like Root > Scripts > Src and Root > Scripts > Built where TS files live in Src and JS files in Built. My tsconfig.json is under Root (and above the Scripts level) and has the property "outDir": "./Scripts/Built" which used to take a TS file from Scripts > Src > SomeSubdirectory > SomeFile.ts and place it in Scripts > Built > SomeSubdirectory > SomeFile.js. Now, however I'm getting Scripts > Src > SomeSubdirectory > SomeFile.ts compiled to Scripts > Built > Scripts > Src > SomeSubdirectory > SomeFile.js. Can I no longer have my tsconfig.json at the Root of the project? Does it need to be inside Root > Scripts > Src and point to ../Built?

TL;DR: why are my TS files being emitted to the outDir with the directory structure up to where tsconfig.json lives?

Patrick Toy
@patrickjtoy
May 21 2015 15:00
Nevermind the above, I took a look at my tsconfig.json, made a tweak to the filesGlob param, and everything appears to be outputting correctly again.