File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed
Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 3838 - name : Build native module
3939 working-directory : ./minify-html-wasm
4040 shell : bash
41- run : TARGET=web ./build
41+ run : TARGET=deno ./build
4242
4343 - name : Publish to JSR
4444 working-directory : ./minify-html-wasm/pkg
Original file line number Diff line number Diff line change 7676 cp ../README.md .
7777
7878 - name : Pack and publish package
79- uses : JS-DevTools/npm-publish@v3
79+ # We need this fix: https://github.com/JS-DevTools/npm-publish/issues/198
80+ uses : JS-DevTools/npm-publish@66e0e1d9494ba904d4d608ae77fc5f4fe9bcc038
8081 if : startsWith(github.ref, 'refs/tags/v')
8182 with :
8283 access : public
Original file line number Diff line number Diff line change 11# minify-html changelog
22
3+ ## Pending
4+
5+ - Fix Node.js builds.
6+ - Fix Deno builds.
7+
38## 0.16.0
49
510- BREAKING: Cfg options have changed such that spec compliance is the default, to avoid confusion with users:
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ default = ["console_error_panic_hook"]
1515js-sys = " 0.3.58"
1616minify-html = { path = " ../minify-html" }
1717wasm-bindgen = " 0.2.63"
18+ # We don't use this dep directly, but it's transitive, and we must enable "js" feature to use with WASM.
19+ getrandom = { version = " 0.2" , features = [" js" ] }
1820
1921# The `console_error_panic_hook` crate provides better debugging of panics by
2022# logging them with `console.error`. This is great for development, but requires
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ target="${TARGET:-bundler}"
99rm -rf pkg
1010wasm-pack build --target " $target "
1111pushd pkg
12- # `bundler` is for WASM/npm, `web ` is for Deno.
12+ # `bundler` is for WASM/npm, `deno ` is for Deno.
1313if [[ " $target " = " bundler" ]]; then
1414 jq -s ' .[0] * .[1]' package.json ../package.merge.json > package.new.json
1515 mv package.new.json package.json
1616 rm .gitignore
17- elif [[ " $target " = " web " ]]; then
18- rm package.json .gitignore
17+ elif [[ " $target " = " deno " ]]; then
18+ rm .gitignore
1919 cp ../deno.json .
2020fi
2121popd
You can’t perform that action at this time.
0 commit comments