Skip to content

Commit

Permalink
Fix #135: fix UMD build (#136)
Browse files Browse the repository at this point in the history
* Fix #135: fix UMD build

* Bump shadow

* latest cli
  • Loading branch information
borkdude authored Jul 4, 2024
1 parent 437b739 commit 446d5a5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.3.1040
cli: latest
bb: latest

- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ compiler-common
out
scratch.cljs
!test-resources/js_api.mjs
index2.html
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Cherry](https://github.com/squint-cljs/cherry): Experimental ClojureScript to ES6 module compiler

## 0.2.19 (2024-07-04)

- [#135](https://github.com/squint-cljs/cherry/issues/135): Fix UMD build

## 0.2.18 (2024-06-02)

- Fix [#130](https://github.com/squint-cljs/cherry/issues/130): fix predefined `:aliases` for cherry.embed
Expand Down
2 changes: 1 addition & 1 deletion bb/tasks.clj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
(defn publish []
(build-cherry-npm-package)
(run! fs/delete (fs/glob "lib" "*.map"))
(shell "npx esbuild index.js --bundle --minify --format=iife --global-name=CherryCljs --outfile=lib/cherry.umd.js")
(shell "npx esbuild index.js --bundle --minify --format=iife --global-name=CherryCljs --outfile=lib/cherry.umd.js --ignore-annotations")
(shell "npm publish"))

(defn watch-cherry []
Expand Down
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

:aliases
{:cljs {:extra-paths ["test"]
:extra-deps {thheller/shadow-cljs {:mvn/version "2.25.10"}}}
:extra-deps {thheller/shadow-cljs {:mvn/version "2.28.10"}}}
:test ;; added by neil
{:extra-paths ["test"]
:extra-deps {io.github.cognitect-labs/test-runner
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@vercel/ncc": "^0.34.0",
"chalk": "^5.0.1",
"cherry-cljs": ".",
"esbuild": "^0.14.54",
"esbuild": "^0.23.0",
"react": "^18.2.0",
"shadow-cljs": "^2.20.1"
"shadow-cljs": "^2.28.10"
},
"funding": [
{
Expand Down

0 comments on commit 446d5a5

Please sign in to comment.