Skip to content

Commit ccde79a

Browse files
plexusswannodette
authored andcommitted
CLJS-3275: compute upstream npm-deps when :npm-deps is not set
When :npm-deps is not explicitly configured it should still be able to find upstream dependencies through deps.cljs. This also fixes cljs.main --install-deps.
1 parent b5b099a commit ccde79a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,8 @@
24372437
(reduce
24382438
(fn [m [dep v]]
24392439
(cond-> m
2440-
(and (map? npm-deps) (not (contains? npm-deps dep)))
2440+
(and (or (nil? npm-deps) (map? npm-deps))
2441+
(not (contains? npm-deps dep)))
24412442
(assoc dep (if (coll? v)
24422443
(last (sort v))
24432444
v))))

0 commit comments

Comments
 (0)