Permalink
Browse files

CLJS-2378: keep the :npm-deps-installed? to avoid to reinstall NPM deps

  • Loading branch information...
vmfhrmfoaj authored and swannodette committed Oct 4, 2017
1 parent 85b882b commit d4e19bffcd19208997c1ffb14e3077e62eedbdfc
Showing with 6 additions and 4 deletions.
  1. +3 −2 src/main/clojure/cljs/closure.clj
  2. +3 −2 src/main/clojure/cljs/repl.cljc
@@ -2523,8 +2523,9 @@
(check-npm-deps opts)
(swap! compiler-env update-in [:npm-deps-installed?]
(fn [installed?]
(when-not installed?
(maybe-install-node-deps! opts)))))
(if-not installed?
(maybe-install-node-deps! opts)
installed?))))
compiler-stats (:compiler-stats opts)
checked-arrays (or (:checked-arrays opts)
@@ -883,8 +883,9 @@
(cljsc/check-npm-deps opts)
(swap! env/*compiler* update-in [:npm-deps-installed?]
(fn [installed?]
(when-not installed?
(cljsc/maybe-install-node-deps! opts)))))
(if-not installed?
(cljsc/maybe-install-node-deps! opts)
installed?))))
(comp/with-core-cljs opts
(fn []
(binding [*repl-opts* opts]

0 comments on commit d4e19bf

Please sign in to comment.