diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e85630..1471bf31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Under construction. +## [0.4.2] - 2023-01-17 + +### Added + +- Add `wasm-pack build -t web` to the `Makefile` for use in web pages without a wasm aware bundler. + ## [0.4.1] - 2022-10-22 diff --git a/nucypher-core-wasm/Makefile b/nucypher-core-wasm/Makefile index 3d5c4ff0..903cb136 100644 --- a/nucypher-core-wasm/Makefile +++ b/nucypher-core-wasm/Makefile @@ -10,14 +10,17 @@ pkg: src # Build for both targets wasm-pack build -t bundler -d pkg/pkg-bundler wasm-pack build -t nodejs -d pkg/pkg-node + wasm-pack build -t web -d pkg/pkg-web # Clean-up non-essential files (cd pkg/pkg-bundler && rm package.json README.md .gitignore LICENSE) (cd pkg/pkg-node && rm package.json README.md .gitignore LICENSE) + (cd pkg/pkg-web && rm package.json README.md .gitignore LICENSE) # Types are duplicated, clean them up to avoid confusion mv pkg/pkg-node/nucypher_core_wasm.d.ts pkg/ rm pkg/pkg-bundler/nucypher_core_wasm.d.ts + rm pkg/pkg-web/nucypher_core_wasm.d.ts # Copy template cp package.template.json pkg/package.json diff --git a/nucypher-core-wasm/package.template.json b/nucypher-core-wasm/package.template.json index c9823543..fc91a1dc 100644 --- a/nucypher-core-wasm/package.template.json +++ b/nucypher-core-wasm/package.template.json @@ -18,6 +18,9 @@ "pkg-bundler/*.wasm", "pkg-bundler/*.ts", "pkg-bundler/*.js", + "pkg-web/*.wasm", + "pkg-web/*.ts", + "pkg-web/*.js", "*.ts", "*.js" ],