Skip to content

Commit ef40b11

Browse files
authored
Merge pull request #271 from dhleong/dhleong/improve-shadow-cljs-support
Improve shadow cljs support
2 parents 71e057c + ff5a4d2 commit ef40b11

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [#256](https://github.com/clojure-emacs/refactor-nrepl/pull/256) ignore malformed artifact coordinates when fetching from Clojars.
77
* [#264](https://github.com/clojure-emacs/refactor-nrepl/pull/264) less bandwidth used to fetch artifacts from Clojars
88
* [#268](https://github.com/clojure-emacs/refactor-nrepl/pull/268) added support for fetching artifact versions from Clojars
9+
* [#271](https://github.com/clojure-emacs/refactor-nrepl/pull/271) improved shadow-cljs support
910

1011
## 2.4.0
1112

src/refactor_nrepl/core.clj

+1-1
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))

src/refactor_nrepl/ns/libspecs.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(defn- aliases-by-frequencies [libspecs]
1717
(->> libspecs
1818
(mapcat aliases) ; => [[str clojure.string] ...]
19-
(sort-by second)
19+
(sort-by (comp str second))
2020
(group-by first) ; => {str [[str clojure.string] [str clojure.string]] ...}
2121
(map (comp seq frequencies second)) ; => (([[set clojure.set] 4] [set set] 1) ...)
2222
(map (partial sort-by second >)) ; by decreasing frequency

0 commit comments

Comments
 (0)