diff --git a/lua/tsc/utils.lua b/lua/tsc/utils.lua index ded3919..9dbe874 100644 --- a/lua/tsc/utils.lua +++ b/lua/tsc/utils.lua @@ -33,9 +33,9 @@ M.find_tsconfigs = function(run_mono_repo) local found_configs = nil if M.is_executable("rg") then - found_configs = vim.fn.system("rg -g '!node_modules' --files | rg 'tsconfig.*.json'") + found_configs = vim.fn.system("rg --files -g '!node_modules' -g 'tsconfig*.json'") else - found_configs = vim.fn.system('find . -not -path "*/node_modules/*" -name "tsconfig.*.json" -type f') + found_configs = vim.fn.system('find . -not -path "*/node_modules/*" -name "tsconfig*.json" -type f') end if found_configs == nil then