Only remove js dir if it exists. (#88)

* Only remove js dir if it exists.

This is to fix a bug where scittle throws an error if you do a prod build on a fresh checkout.

* Update changelog.

* Simplify clean prod fix.
This commit is contained in:
Chris McCormick 2024-11-15 11:14:48 +00:00 committed by GitHub
parent 06621b2dab
commit fa99b05b06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@
<!-- - `bb gh-pages` -->
- [#89](https://github.com/babashka/babashka/issues/89): allow `evaluate_script_tags` to specify individual scripts.
- [#87](https://github.com/babashka/scittle/issues/87): prod build on fresh checkout fails
## v0.6.19 (2024-10-08)

2
bb.edn
View file

@ -13,7 +13,7 @@
[babashka.process :as p :refer [process]])
clean {:doc "Start from clean slate."
:task (do (run! fs/delete (fs/list-dir (fs/file "resources" "public" "js") "**.*"))
:task (do (fs/delete-tree (fs/file "resources" "public" "js"))
(fs/delete-tree ".cpcache")
(fs/delete-tree ".shadow-cljs"))}