Skip to content

@js-joda/core added to package.json deps when using clj-commons/humanize #1217

Answered by thheller
knubie asked this question in Q&A
Discussion options

You must be logged in to vote

The only way shadow-cljs adds anything to package.json is when it finds deps.cljs files on the classpath that specify :npm-deps they need. That install only happens when the package is not already in package.json. To check where a particular dependency is coming from you can run npx shadow-cljs clj-repl and then

(shadow.cljs.devtools.server.npm-deps/get-deps-from-classpath)

It'll show something like this, just look for js-joda

[{:id "react",
  :version "16.13.0",
  :url #object[java.net.URL
               0x2241daab
               "jar:file:/C:/Users/thheller/.m2/repository/reagent/reagent/0.10.0/reagent-0.10.0.jar!/deps.cljs"]}
 {:id "react-dom",
  :version "16.13.0",
  :url #object[java…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@knubie
Comment options

knubie Jan 8, 2025
Author Sponsor

Answer selected by knubie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants