Skip to content

Commit 1797668

Browse files
kevinccbsgclaude
andcommitted
chore: pin @emnapi/* as optional deps to fix npm ci
Workaround for the npm optional-deps lockfile bug triggered by @tailwindcss/oxide-wasm32-wasi and @rolldown/binding-wasm32-wasi (both pull in @napi-rs/wasm-runtime which peer-depends on @emnapi/*). Without this, npm ci fails on platform switches (Linux <-> macOS, arm64 <-> x64) because the lockfile drops the WASM-fallback peer entries depending on which platform generated it. Refs: npm/cli#4828 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f39adf7 commit 1797668

2 files changed

Lines changed: 46 additions & 15 deletions

File tree

package-lock.json

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

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,9 @@
5959
"vite": "^8.0.10",
6060
"vite-plugin-istanbul": "^8.0.0",
6161
"vitest": "^4.1.5"
62+
},
63+
"optionalDependencies": {
64+
"@emnapi/core": "^1.10.0",
65+
"@emnapi/runtime": "^1.10.0"
6266
}
6367
}

0 commit comments

Comments
 (0)