File tree 1 file changed +10
-3
lines changed
src/main/clojure/cljs/build
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 240
240
the module-deps package on the supplied JavaScript entry point. Assumes
241
241
that the module-deps & JSONStream NPM packages are either locally or
242
242
globally installed."
243
- [entry ]
243
+ [{ :keys [file]} ]
244
244
(let [code (string/replace
245
245
(slurp (io/resource " cljs/module_deps.js" ))
246
- " JS_FILE" entry )
246
+ " JS_FILE" file )
247
247
proc (-> (ProcessBuilder.
248
248
(into-array
249
249
[" node" " --eval" (str code)]))
258
258
[])))
259
259
260
260
(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" }))
262
264
)
263
265
264
266
(defn node-inputs
267
269
that the module-deps & JSONStream NPM packages are either locally or
268
270
globally installed."
269
271
[entries]
272
+ (add-package-jsons (vec (mapcat node-module-deps entries))))
273
+
274
+ (comment
275
+ (node-inputs
276
+ [{:file " src/test/node/test.js" }])
270
277
)
271
278
272
279
(comment
You can’t perform that action at this time.
0 commit comments