fix(build): add missing @emnapi install records to kun lockfile#632
Merged
Conversation
The root postinstall runs `npm --prefix kun ci`, which failed in CI with: Missing: @emnapi/core@1.11.1 from lock file Missing: @emnapi/runtime@1.11.1 from lock file kun/package-lock.json was missing the install records for these optional peer deps of @napi-rs/wasm-runtime (pulled transitively via vitest's rolldown wasm fallback), so `npm ci` refused to install. Add the two records so the lockfile is back in sync with package.json and the macOS/Windows/Linux release builds can install dependencies again. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BuDt5m3agtnihau5MYt2Gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 概要
Install dependenciesstep ondevelop.Why / 背景
postinstallhook runsnpm --prefix kun ci(viascripts/ensure-kun-install.cjs), which failed in CI:kun/package-lock.jsonwas out of sync withkun/package.json: it referenced@emnapi/core@1.11.1/@emnapi/runtime@1.11.1(optional peer deps of@napi-rs/wasm-runtime, pulled transitively through vitest 4's rolldown wasm fallback) but was missing their install records, sonpm ci(strict mode) refused to install on all three platforms.Changes / 变更
@emnapi/core@1.11.1and@emnapi/runtime@1.11.1tokun/package-lock.json, using the existing npmmirror mirror URLs with the official content-hash integrity. Lockfile is back in sync withpackage.json.Media / 截图或录屏
Tests / 测试
Validation / 验证
origin/develop, then confirmednpm --prefix kun ci --dry-run(the exact CI command) passes after the fix.npm --prefix kun cidownloaded and integrity-validated@emnapi/core,@emnapi/runtime, and@emnapi/wasi-threads, confirming the URLs and integrity hashes are correct.Notes / 备注
kun/package-lock.jsononly; no source or dependency-version changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01BuDt5m3agtnihau5MYt2Gd
Generated by Claude Code