Skip to content

Commit ff9df77

Browse files
committed
release: publish DeckProbe 2.2.1
Include WASM artifacts in the npm package by removing the wasm-pack generated ignore file after build.
1 parent d5890a7 commit ff9df77

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to DeckProbe are documented here.
44

55
## [Unreleased]
66

7+
## [2.2.1] - 2026-08-04
8+
9+
### Fixed
10+
11+
- Include WASM artifacts in the published `@deckflow/deckprobe` package. `wasm-pack`
12+
emits `wasm/.gitignore` with `*`, which caused `npm pack` to drop the entire
13+
`wasm/` directory; the build now removes that file before packing.
14+
715
## [2.2.0] - 2026-08-03
816

917
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ members = [
1515
resolver = "2"
1616

1717
[workspace.package]
18-
version = "2.2.0"
18+
version = "2.2.1"
1919
edition = "2024"
2020
license = "MIT"
2121
repository = "https://github.com/deckflow/deckprobe"

packages/deckprobe-js/.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Prefer this over inheriting parent .gitignore for npm packing.
2+
# wasm-pack also emits wasm/.gitignore with "*"; build:wasm deletes that file
3+
# so the WASM artifacts listed in "files" are actually packed.
4+
node_modules/
5+
benchmark/
6+
scripts/serve-benchmark.mjs
7+
*.tsbuildinfo
8+
.DS_Store

packages/deckprobe-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deckflow/deckprobe",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Browser SDK for probing PDF, Microsoft Office, and Apple iWork documents with DeckProbe WASM",
55
"type": "module",
66
"license": "MIT",
@@ -30,7 +30,7 @@
3030
],
3131
"scripts": {
3232
"clean": "rm -rf dist wasm/deckprobe_wasm.js wasm/deckprobe_wasm_bg.wasm wasm/package.json",
33-
"build:wasm": "wasm-pack build ../../crates/deckprobe-wasm --target web --release --out-dir ../../packages/deckprobe-js/wasm --out-name deckprobe_wasm --no-pack --no-opt",
33+
"build:wasm": "wasm-pack build ../../crates/deckprobe-wasm --target web --release --out-dir ../../packages/deckprobe-js/wasm --out-name deckprobe_wasm --no-pack --no-opt && rm -f ../../packages/deckprobe-js/wasm/.gitignore",
3434
"build:ts": "tsc -p tsconfig.json",
3535
"build": "npm run build:wasm && npm run build:ts",
3636
"check": "tsc -p tsconfig.json --noEmit",

0 commit comments

Comments
 (0)