File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ vector of middleware variables as a string."
167
167
:package-version '(cider . " 0.17.0" ))
168
168
169
169
(defcustom cider-shadow-cljs-command
170
- " shadow-cljs"
171
- " The command used to execute shadow-cljs."
170
+ " npx shadow-cljs"
171
+ " The command used to execute shadow-cljs.
172
+
173
+ By default we favor the project-specific shadow-cljs over the system-wide."
172
174
:type 'string
173
175
:group 'cider
174
176
:package-version '(cider . " 0.17.0" ))
@@ -329,7 +331,9 @@ Throws an error if PROJECT-TYPE is unknown. Known types are
329
331
(" lein" (cider--resolve-command cider-lein-command))
330
332
(" boot" (cider--resolve-command cider-boot-command))
331
333
(" clojure-cli" (cider--resolve-command cider-clojure-cli-command))
332
- (" shadow-cljs" (cider--resolve-command cider-shadow-cljs-command))
334
+ ; ; here we have to account for the possibility that the command is either
335
+ ; ; "npx shadow-cljs" or just "shadow-cljs"
336
+ (" shadow-cljs" (cider--resolve-command ((split-string cider-shadow-cljs-command))))
333
337
(" gradle" (cider--resolve-command cider-gradle-command))
334
338
(_ (user-error " Unsupported project type `%s' " project-type))))
335
339
You can’t perform that action at this time.
0 commit comments