Skip to content

chore(deps): declare @emnapi peers where @napi-rs/cli is used - #2319

Merged
fengmk2 merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/emnapi-runtime-peer-warning
Aug 4, 2026
Merged

chore(deps): declare @emnapi peers where @napi-rs/cli is used#2319
fengmk2 merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/emnapi-runtime-peer-warning

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

@napi-rs/cli@3.8.2 requires the peer @emnapi/runtime@2.0.0-alpha.3 exactly, but the root, packages/cli, and packages/core manifests declare only @napi-rs/cli. pnpm fills the missing peer with the transitive @emnapi/runtime@1.11.2, which violates the exact pin, so every pnpm install prints a missing/conflicting-peer warning block.

This declares @emnapi/core and @emnapi/runtime as devDependencies (catalog-pinned to 2.0.0-alpha.3) in the three manifests, mirroring rolldown/packages/rolldown. Re-resolution also dedupes the bogus 1.11.2 peer variants from the lockfile.

Before:
image

After:
image

Test plan

  • pnpm install — @emnapi warning block no longer appears

@napi-rs/cli 3.8.2 requires peer @emnapi/runtime@2.0.0-alpha.3 exactly,
but the root, packages/cli, and packages/core manifests declared only
@napi-rs/cli, so pnpm filled the peer with the transitive 1.11.2 from
@napi-rs/wasm-runtime@0.2.12 and warned about missing/conflicting
peers on every install. Declare @emnapi/core and @emnapi/runtime from
the catalog (already pinned to 2.0.0-alpha.3), mirroring what
rolldown/packages/rolldown and rolldown/packages/browser already do.
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 0ccd059
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a71bd4b643c4d0008ba99c1

@jong-kyung jong-kyung self-assigned this Aug 4, 2026
@jong-kyung
jong-kyung marked this pull request as ready for review August 4, 2026 10:23
@jong-kyung
jong-kyung requested a review from fengmk2 August 4, 2026 10:23
@fengmk2
fengmk2 merged commit 28b85a2 into voidzero-dev:main Aug 4, 2026
0 checks passed
@jong-kyung
jong-kyung deleted the fix/emnapi-runtime-peer-warning branch August 4, 2026 11:46
@fengmk2

fengmk2 commented Aug 4, 2026

Copy link
Copy Markdown
Member

changed come from https://github.com/napi-rs/napi-rs/pull/3353/changes#diff-088b5e0ac52dd36816ebc6b121d5423c763c3c18c098b91757c014937c7d632dR94-R95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants