diff --git a/Cargo.lock b/Cargo.lock index c976945..fdaa8be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,7 +508,7 @@ checksum = "6ceee21e181cce2ab44e95923da6b3418df75369f570df82264c29c51ca398d4" [[package]] name = "intl-segmenter-polyfill-rs" -version = "0.1.6" +version = "0.1.7" dependencies = [ "console_error_panic_hook", "icu", diff --git a/Cargo.toml b/Cargo.toml index 471d90d..e9cdc2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "intl-segmenter-polyfill-rs" description = "A polyfill for Intl.Segmenter" -version = "0.1.6" +version = "0.1.7" edition = "2018" homepage = "https://github.com/toeverything/intl-segmenter-polyfill-rs" repository = "https://github.com/toeverything/intl-segmenter-polyfill-rs" diff --git a/build.sh b/build.sh index 83ef5cb..83e624b 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash + +set -eu -o pipefail wasm-pack build --release --out-dir pkg/esm wasm-pack build --target nodejs --release --out-dir pkg/cjs @@ -39,3 +41,7 @@ echo "$(jq --argjson FILES $(ls pkg | jq -R -s -c 'split("\n")[:-1]') \ .exports.".".require.default |= "./cjs/intl_segmenter_polyfill_rs.js" | .sideEffects[0] |= "./esm/intl_segmenter_polyfill_rs.mjs"' \ pkg/package.json)" > pkg/package.json + +echo "$(jq \ + '.name |= "intl-segmenter-polyfill-rs-web"' \ + web/package.json)" > web/package.json