From 5f735a45400d1bdc613375de2d98cb09f2d89373 Mon Sep 17 00:00:00 2001 From: fourdim <59462000+fourdim@users.noreply.github.com> Date: Wed, 10 Jan 2024 17:30:16 -0500 Subject: [PATCH] chore: v0.1.7 --- Cargo.lock | 2 +- Cargo.toml | 2 +- build.sh | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) 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