Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/argon2id-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "argon2id password hashing in WASM",
"license": "Apache-2.0",
"files": [
"src"
"src/index.ts",
"src/wasm.d.ts",
"src/argon2-wasm/pkg"
],
"type": "module",
"sideEffects": false,
Expand Down
4 changes: 4 additions & 0 deletions packages/argon2id-wasm/src/argon2-wasm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file intentionally lists no patterns.
# We use it to make npm ignore `.gitignore`, so that `pkg` get included
# in the output.
# We use `files` in `package.json` for the actual filtering.
3 changes: 3 additions & 0 deletions packages/argon2id-wasm/src/argon2-wasm/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ install-wasm-pack:
# Regenerate the wasm-bindgen bindings in pkg/.
build: install-wasm-pack
wasm-pack build --release --target web --out-dir pkg --out-name argon2_wasm
# wasm-pack writes a `.gitignore` (`*`) into pkg/; drop it so npm doesn't
# exclude the generated bindings when publishing (pkg/ is our shipped output).
rm -f pkg/.gitignore

test:
cargo test --locked
Expand Down
Loading