From 8ea42b1c0bdf41d61257bdb3a0452e7dbcc15eb6 Mon Sep 17 00:00:00 2001 From: Alexander Streltsov Date: Tue, 27 Jun 2023 11:26:15 +0300 Subject: [PATCH] fix: build script --- Makefile | 2 +- build/build.clj | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9d77f10..5ef5e41 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/build/build.clj b/build/build.clj index fd7409d..c8b4495 100644 --- a/build/build.clj +++ b/build/build.clj @@ -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"}))