Smarter auto-inference for JavaScript only repos
varungandhi-src opened this issue · 0 comments
varungandhi-src commented
In some cases, we can still run into the problem where the current auto-inferred tsconfig.json doesn't actually index any JS files. Here's an auto-indexing log showing that:
+ '[' -n 2048 ']'
+ export NODE_OPTIONS=--max-old-space-size=2048
+ NODE_OPTIONS=--max-old-space-size=2048
+ scip-typescript index --infer-tsconfig
error: no files got indexed. To fix this problem, make sure that the TypeScript projects ["/data"] contain input files or reference other projects.
Can we be smarter in inferring the tsconfig.json to avoid this in more cases?