Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
chore: v0.1.7 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdim authored Jan 10, 2024
1 parent 971b832 commit ad6c954
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
run: cargo install icu_datagen

- name: Generate data
run: sh icu-datagen.sh
run: bash icu-datagen.sh

- name: Build
run: sh build.sh
run: bash build.sh

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
run: cargo install icu_datagen

- name: Generate data
run: sh icu-datagen.sh
run: bash icu-datagen.sh

- name: Build
run: sh build.sh
run: bash build.sh

- uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ See the bugzilla issue [here](https://bugzilla.mozilla.org/show_bug.cgi?id=14235

**As firefox 122 will support the API, this project will be archived in a predictable future.**

Packages are available at:

- https://www.npmjs.com/package/intl-segmenter-polyfill-rs
- https://www.npmjs.com/package/intl-segmenter-polyfill-rs-web

## Usage

### Install `wasm-pack`
Expand All @@ -29,13 +34,13 @@ cargo install icu_datagen
### Generate the data

```
sh icu-datagen.sh
bash icu-datagen.sh
```

### Build

```
sh build.sh
bash build.sh
```

### Use it in your project
Expand Down
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

0 comments on commit ad6c954

Please sign in to comment.