Skip to content

Commit

Permalink
fix: build script
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshikari committed Jun 27, 2023
1 parent d34cc06 commit 8ea42b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sdk-publish:
cd vendor/publish && npm install && cp ../../target/zen.jar zen.jar && npm publish --access=public

repl:
clj -A:test -M:nrepl
clj -A:test:build-pm -M:nrepl

test:
clj -A:test:kaocha
Expand Down
8 changes: 5 additions & 3 deletions build/build.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
(ns build
(:require [clojure.tools.build.api :as b]))
(:require
[clojure.java.io]
[clojure.tools.build.api :as b]))

(def class-dir (.getPath (clojure.java.io/file "target" (java.io.File/separator) "classes")))
(def class-dir (.getPath (clojure.java.io/file (str "target" (java.io.File/separator) "classes"))))
(def basis (b/create-basis {:project "deps.edn"}))
(def uber-file (.getPath (clojure.java.io/file "target" (java.io.File/separator) "zen.jar")))
(def uber-file (.getPath (clojure.java.io/file (str "target" (java.io.File/separator) "zen.jar"))))

(defn clean [_]
(b/delete {:path "target"}))
Expand Down

0 comments on commit 8ea42b1

Please sign in to comment.