Hi there! When I add a dependency in shadow-cljs.edn, how can I update my .clj-kondo/ folder with the config in that dependency? Not sure how it works. I already have some configs from dependencies I installed earlier, something copied them but I don't know who does this. I can't find any documentation about that, nor in shadow-cljs, nor in clj-kondo, nor in Calva ones. I don't have a deps.edn since I use shadow-cljs.edn.
Hi Alexis, I guess you are using clojure-lsp?
Yes!
Regardless, you can import dependency configuration with clj-kondo from the command line like this:
clj-kondo --lint "(npx shadow-cljs classpath)" --dependencies --copy-configs --parallel
But clojure-lsp will already do this for you when you have a shadow-cljs.edn it seems. The docs about it are here:
https://clojure-lsp.io/settings/#classpath-scan
I think this project is better asked in #lspMaybe just restart your lsp server in case this doesn't work automatically
Yes I should have posted in #clojurescript since I didn't know which library is involved.
Restarting the lsp server worked! Thanks!