Skip to content

Commit

Permalink
0.0.15 - add conditional deps key selection
Browse files Browse the repository at this point in the history
  • Loading branch information
somecho committed Jul 2, 2023
1 parent 9f09e5c commit 072398a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[deps-deploy.deps-deploy :as dd]))

(def lib 'org.clojars.some/depo)
(def version "0.0.14")
(def version "0.0.15")
(def jar-file (format "target/%s-%s.jar" (name lib) version))
(def class-dir "target/classes")
(def url "https://github.com/somecho/depo")
Expand Down
2 changes: 1 addition & 1 deletion src/depo/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(def CONFIGURATION
{:command "depo"
:description "Manage dependencies for Clojure projects easily"
:version "0.0.14"
:version "0.0.15"
:opts [{:as "path to configuration file"
:default nil
:option "file"
Expand Down
3 changes: 2 additions & 1 deletion src/depo/readwrite.clj
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@
[config-path arg]
(let [zloc (z/of-string (slurp config-path))
{:keys [groupID artifactID]} (dp/parse arg)
dep-key (if (= config-path "shadow-cljs.edn") :dependencies :deps)
identifier (symbol (str groupID "/" artifactID))]
(-> zloc
(z/get :deps)
(z/get dep-key)
(z/string)
(read-string)
(as-> dep-map
Expand Down

0 comments on commit 072398a

Please sign in to comment.