Skip to content

Commit

Permalink
CLJ-3279 Error when :npm-deps is boolean and :install-deps true
Browse files Browse the repository at this point in the history
Don't assume that :npm-deps is a map/nil, since it can also be boolean.
  • Loading branch information
plexus authored and swannodette committed Aug 13, 2020
1 parent 5b6558b commit a15247a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/clojure/cljs/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,10 @@

(defn maybe-install-node-deps!
[{:keys [deps-cmd npm-deps verbose] :or {deps-cmd "npm"} :as opts}]
(let [npm-deps (merge npm-deps (compute-upstream-npm-deps opts))]
(let [npm-deps (merge (if (map? npm-deps)
npm-deps
{})
(compute-upstream-npm-deps opts))]
(when-not (empty? npm-deps)
(let [pkg-json (io/file "package.json")]
(when (or ana/*verbose* verbose)
Expand Down

0 comments on commit a15247a

Please sign in to comment.