Skip to content

Commit a2eeeef

Browse files
committed
Add shadow-cljs.edn as a "known root file"
Fixes project-root detection for shadow-cljs projects that don't also have a project.clj or deps.edn file
1 parent 71e057c commit a2eeeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/refactor_nrepl/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
start (if (fs/directory? path-or-file-in-project)
6363
path-or-file-in-project
6464
(fs/parent path-or-file-in-project))
65-
names-at-root #{"project.clj" "build.boot" "build.gradle" "pom.xml" "deps.edn"}
65+
names-at-root #{"project.clj" "build.boot" "build.gradle" "pom.xml" "deps.edn" "shadow-cljs.edn"}
6666
known-root-file? (fn [^File f] (some (fn [known-root-name]
6767
(.endsWith (.getCanonicalPath f)
6868
known-root-name))

0 commit comments

Comments
 (0)