Skip to content

Commit 08b4c71

Browse files
committed
fix(clojurescript): Use relative output dirs
ClojureScript has a bug that causes load-file to fail if you use an absolute :output-dir. Ideally, we would switch this back to keep the absolute paths, but will have to wait until that bug is fixed.
1 parent 4856877 commit 08b4c71

File tree

1 file changed

+3
-1
lines changed
  • src/main/clojure/dev/clojurephant/tooling

1 file changed

+3
-1
lines changed

src/main/clojure/dev/clojurephant/tooling/api.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
(cond
4747
(nil? dir) nil
4848
(boolean? dir) dir
49-
:else (string/replace dir old-dir new-dir)))]
49+
:else (-> dir
50+
(string/replace old-dir new-dir)
51+
(string/replace (str (System/getProperty "user.dir") "/") ""))))]
5052
(-> (:compiler build)
5153
(update-in [:output-dir] replacer)
5254
(update-in [:output-to] replacer)

0 commit comments

Comments
 (0)