What does "files" options actually do? #1348
Replies: 1 comment 2 replies
-
The docs for "--files" aren't great. Like all things open-source, given limited time I've had to prioritize other things. We would accept a pull request that improves the documentation. In the meantime, this explanation I posted elsewhere should help at least a little. #1185 (comment) In short: To see the differences, try Again, we will accept a PR improving documentation because I agree that it should be improved. |
Beta Was this translation helpful? Give feedback.
-
I have spent like an hour on a dummy project and still could not get an idea of
files
options.Form docs:
--files Load files, include and exclude from tsconfig.json on startup
.Sorry for stupid question, but I haven't found a solid info on how
ts-node
is working...Does
ts-node
do in-memory compilation of TypeScript files? Or ists-node
using some "temp" folder innode_modules
? Depending on the mechanism of howts-node
is working the explanation above (Load files, include and exclude from tsconfig.json on startup
) my have different meaning... "Load files..." load where? What is the real-world use case of this options?Also docs says that
TypeScript Node does not use files, include or exclude, by default.
.The
include
andexclude
are TypeScript options and it is pretty clear to me. But how are these options affection thefiles
options?So by toggling
files
options I can "load" or "don't load" these files... But still I don't see any difference with this option on/off.Please help me to figure out the purpose of this option
Beta Was this translation helpful? Give feedback.
All reactions