Closed jsmassa closed 11 months ago
The CLI uses clojure.data.json
which alternatively we could also move libdatahike to, https://github.com/replikativ/datahike/blob/main/src/datahike/cli.clj#L3. I used cheshire, because it is faster and also compiles natively, but I think we should be consistent.
We are getting into trouble building the api docs when moving the cheshire
lib back to an alias. Unless it is an big dependency I wouldn't move it away from the common libs because of this issue. We could introduce a projects
directory similar to the way it is in polylith to isolate the cli namespace and then we can easily drop the package that is only needed there but as long as it is mixed in with the rest of datahike it can be quite confusing not to be able to load the namespace with the common dependencies.
SUMMARY
Move ClojureScript dependency to
:cljs
alias. Addsdata.json
dependency for the native cli. It seems it had been provided via the ClojureScript library.ADDITIONAL INFORMATION