Skip to content

Commit aa62c20

Browse files
committed
build(deps): move @emnapi WASM fallbacks to devDependencies for deterministic lockfile across OS
1 parent 4b86e50 commit aa62c20

3 files changed

Lines changed: 21 additions & 17 deletions

File tree

AUDIT_LOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
This log tracks all significant changes, updates, and versions in the PaperCache project.
44

5+
## 2026-06-27 (Lockfile Sync)
6+
**Change:** build(deps): move @emnapi WASM fallbacks to devDependencies for deterministic lockfile resolution across OS targets
7+
8+
**Details/Why:**
9+
When `@emnapi/core` and `@emnapi/runtime` were listed under `optionalDependencies` in `package.json`, running `npm install` on macOS arm64 stripped their resolution metadata from `package-lock.json` (since npm deemed WASM fallback bindings inapplicable to macOS native architecture). However, sub-dependencies like `@rolldown/binding-wasm32-wasi` still referenced them, causing `npm ci` on Linux and Windows runners to crash with `Missing: @emnapi/core@1.11.1 from lock file`. Moved `@emnapi/core` and `@emnapi/runtime` to `devDependencies` to guarantee their resolution entries are preserved in `package-lock.json` across all OS targets.
10+
11+
**Files changed:** `package.json`, `package-lock.json`, `AUDIT_LOG.md`.
12+
13+
---
14+
515
## 2026-06-27 (Update)
616
**Change:** fix: resolve TypeScript strict build errors in GraphView and setupTests
717

package-lock.json

Lines changed: 9 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
"@codemirror/search": "^6.7.0",
5353
"@codemirror/state": "^6.6.0",
5454
"@codemirror/view": "^6.43.0",
55+
"@emnapi/core": "^1.11.1",
56+
"@emnapi/runtime": "^1.11.1",
5557
"@eslint/js": "^10.0.1",
5658
"@lezer/common": "^1.5.2",
5759
"@lezer/highlight": "^1.2.3",
@@ -80,9 +82,5 @@
8082
"vite": "^8.0.12",
8183
"vitest": "^4.1.7",
8284
"zustand": "^5.0.14"
83-
},
84-
"optionalDependencies": {
85-
"@emnapi/core": "1.11.1",
86-
"@emnapi/runtime": "1.11.1"
8785
}
8886
}

0 commit comments

Comments
 (0)