File tree 3 files changed +17
-11
lines changed
3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 5
5
com.lambdaisland/dotenv {:mvn/version " 0.2.5" }}
6
6
7
7
:aliases
8
- {:clojure { :extra-deps {babashka/babashka {:mvn/version " 1.0.164 " :scope " provided" }
9
- org.clojure/tools.deps.alpha {:mvn/version " 0.14.1222 " }
8
+ {:clojure { :extra-deps {babashka/babashka {:mvn/version " 1.0.167 " :scope " provided" }
9
+ org.clojure/tools.deps.alpha {:mvn/version " 0.15.1254 " }
10
10
com.nextjournal/beholder {:mvn/version " 1.0.0" }
11
- thheller/shadow-cljs {:mvn/version " 2.20.5 " }
11
+ thheller/shadow-cljs {:mvn/version " 2.20.13 " }
12
12
com.lambdaisland/classpath {:mvn/version " 0.4.44" }}}
13
13
:dev
14
14
{:extra-paths [" dev" ]
Original file line number Diff line number Diff line change 171
171
; ; Pull these out and inject them into -Sdeps, otherwise they are only
172
172
; ; picked up with the next reload
173
173
(update :extra-deps merge (:deps deps-local))
174
+ (assoc :paths (concat (:paths deps-edn) (:paths deps-local)))
174
175
; ; It seems like if we set `{:aliases {}}` via `-Sdeps` it overrides
175
176
; ; deps.edn aliases, rather than merging them, so we merge them
176
177
; ; ourselves and pass them all to -Sdeps. Needs more testing to see if
233
234
`(future
234
235
(lambdaisland.launchpad.watcher/watch! ~watch-handlers))))))
235
236
236
- (defn clojure-cli-args [{:keys [aliases requires nrepl-port java-args middleware extra-deps alias-defs eval-forms] :as ctx}]
237
+ (defn clojure-cli-args [{:keys [aliases requires nrepl-port java-args middleware extra-deps paths alias-defs eval-forms] :as ctx}]
237
238
(cond-> [" clojure" ]
238
239
:-> (into (map #(str " -J" %)) java-args)
239
240
(seq aliases)
240
241
(conj (str/join (cons " -A" aliases)))
241
- extra-deps
242
+ ( or extra-deps paths alias-defs)
242
243
(into [" -Sdeps" (pr-str {:deps extra-deps
244
+ :paths paths
243
245
:aliases alias-defs})])
244
246
:->
245
247
(into [" -M" " -e" (pr-str `(do ~(when (seq requires)
Original file line number Diff line number Diff line change 13
13
(.toAbsolutePath (Path/of " " (into-array String []))))
14
14
15
15
(defn find-shadow-roots
16
- " Find all libraries included via :local/root that haev a shadow-cljs.edn at
16
+ " Find all libraries included via :local/root that have a shadow-cljs.edn at
17
17
their root."
18
18
[]
19
- (keep (fn [{:local/keys [root]}]
20
- (when (and root (.exists (io/file root " shadow-cljs.edn" )))
21
- root))
22
- (vals (:libs (licp/read-basis )))))
19
+ (cond-> (keep (fn [{:local/keys [root]}]
20
+ (when (and root (.exists (io/file root " shadow-cljs.edn" )))
21
+ root))
22
+ (vals (:libs (licp/read-basis ))))
23
+ (.exists (io/file " shadow-cljs.edn" ))
24
+ (conj " " )))
23
25
24
26
(defn read-shadow-config
25
27
" Slurp in a shadow-cljs.edn, applying normalization and defaults."
80
82
[build-id
81
83
(assoc (update-build-keys process-root module-root v)
82
84
:build-id build-id
83
- :js-options {:js-package-dirs [(str module-path " /node_modules" )]})])))
85
+ :js-options (if (= " " module-path)
86
+ {}
87
+ {:js-package-dirs [(str module-path " /node_modules" )]}))])))
84
88
85
89
builds))))))
86
90
(assoc :deps {})
You can’t perform that action at this time.
0 commit comments