Fork me on GitHub
#shadow-cljs
<
2024-07-20
>
f2wHTttf02:07:24

Is there something specific needed for invoking shadow-cljs' classpath action through clj/`clojure` directly? Or is this something to has to be used through the npm-distributed CLI (i.e. npx shadow-cljs classpath which works fine)? Trying to invoke with clj just gives me Unknown action. while specifying :classpath just complains it's an invalid action and prints the help prompt.

✔️ 1
f2wHTttf02:07:44

This is with shadow-cljs 2.28.11. Trying to feed the output into clj-kondo (`clj-kondo --lint {classpath} ...`).

f2wHTttf02:07:58

In this specific case I can just use clojure -Spath instead. I don't think we can do that if deps are declared in shadow-cljs.edn (though I guess you wouldn't invoke the shadow-cljs CLI through clj/`clojure` then).

thheller07:07:21

correct. classpath is only an action if dependencies/source-paths are defined in shadow-cljs.edn. if deps.edn is used you use that to get the classpath as shadow-cljs won't be constructing it

👍 1