mirror of
https://github.com/UneBaguette/blake3.wasm.git
synced 2026-08-21 00:00:15 +02:00
fix: include README in npm package
This commit is contained in:
@@ -4,6 +4,8 @@ set -euo pipefail
|
|||||||
ROOT="pkg"
|
ROOT="pkg"
|
||||||
rm -rf "$ROOT"
|
rm -rf "$ROOT"
|
||||||
|
|
||||||
|
cp README.md "$ROOT/README.md"
|
||||||
|
|
||||||
echo "Building bundler target..."
|
echo "Building bundler target..."
|
||||||
wasm-pack build --target bundler -d "$ROOT/bundler"
|
wasm-pack build --target bundler -d "$ROOT/bundler"
|
||||||
|
|
||||||
@@ -51,7 +53,7 @@ rm -f "$ROOT/bundler/.gitignore" "$ROOT/node/.gitignore" "$ROOT/web/.gitignore"
|
|||||||
cat > "$ROOT/package.json" << 'EOF'
|
cat > "$ROOT/package.json" << 'EOF'
|
||||||
{
|
{
|
||||||
"name": "blake3-wasm-rs",
|
"name": "blake3-wasm-rs",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "BLAKE3 hashing via Rust/WASM - works in Node.js (CJS + ESM), browsers, and bundlers",
|
"description": "BLAKE3 hashing via Rust/WASM - works in Node.js (CJS + ESM), browsers, and bundlers",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -73,7 +75,8 @@ cat > "$ROOT/package.json" << 'EOF'
|
|||||||
"node/",
|
"node/",
|
||||||
"node-esm/",
|
"node-esm/",
|
||||||
"bundler/",
|
"bundler/",
|
||||||
"web/"
|
"web/",
|
||||||
|
"README.md"
|
||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"blake3",
|
"blake3",
|
||||||
|
|||||||
Reference in New Issue
Block a user