Skip to content

Commit 2e95d95

Browse files
author
dnolen
committed
wip
1 parent 9717d49 commit 2e95d95

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/main/clojure/cljs/build/api.clj

+10-3
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@
240240
the module-deps package on the supplied JavaScript entry point. Assumes
241241
that the module-deps & JSONStream NPM packages are either locally or
242242
globally installed."
243-
[entry]
243+
[{:keys [file]}]
244244
(let [code (string/replace
245245
(slurp (io/resource "cljs/module_deps.js"))
246-
"JS_FILE" entry)
246+
"JS_FILE" file)
247247
proc (-> (ProcessBuilder.
248248
(into-array
249249
["node" "--eval" (str code)]))
@@ -258,7 +258,9 @@
258258
[])))
259259

260260
(comment
261-
(add-package-jsons (node-module-deps "src/test/node/test.js"))
261+
(add-package-jsons
262+
(node-module-deps
263+
{:file "src/test/node/test.js"}))
262264
)
263265

264266
(defn node-inputs
@@ -267,6 +269,11 @@
267269
that the module-deps & JSONStream NPM packages are either locally or
268270
globally installed."
269271
[entries]
272+
(add-package-jsons (vec (mapcat node-module-deps entries))))
273+
274+
(comment
275+
(node-inputs
276+
[{:file "src/test/node/test.js"}])
270277
)
271278

272279
(comment

0 commit comments

Comments
 (0)