tsc.nvim icon indicating copy to clipboard operation
tsc.nvim copied to clipboard

Fix Monorepo tsconfig Resolution

Open alegian opened this issue 10 months ago • 0 comments

here are the results of the old tsconfig resolution command (in Monorepos):

Screenshot_20260117_115852

the problem is that the pattern matches too broadly, including arbitrary json files in folders with names containing tsconfig. This in turn causes tsc to crash because the tsconfig "has invalid structure" (because it resolved to my package.json...)

image

so i fixed the ripgrep command.

the second change regarding the find command was an accidental discovery: the command literally didnt work because it required that the dot in (.*) always exists.

i tested both new commands on my system and they correctly resolve the configs.

DISCLAIMER: i have not tested the TSC tool itself, because I dont know how

alegian avatar Jan 17 '26 10:01 alegian