mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
fix if not exists dist
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
(ns dev.mv)
|
||||
|
||||
(require '[clojure.java.io :as io])
|
||||
(defn hook
|
||||
{:shadow.build/stage :compile-finish}
|
||||
[build-state & args]
|
||||
(do (spit "./dist/discord.d.ts" (slurp "./dts/discord.d.ts"))
|
||||
(do
|
||||
(when (not (.exists (io/file "./dist")) (.mkdir (io/file "./dist"))))
|
||||
(spit "./dist/discord.d.ts" (slurp "./dts/discord.d.ts"))
|
||||
(spit "./dist/index.d.ts" (slurp "./dts/index.d.ts")))
|
||||
build-state)
|
||||
|
||||
Reference in New Issue
Block a user