Skip to content

fix(napi): declare WASM runtime dependencies - #164

Open
Princesseuh wants to merge 2 commits into
mainfrom
fix/wasm-peer-dependencies
Open

Princesseuh wants to merge 2 commits into
mainfrom
fix/wasm-peer-dependencies

Conversation

@Princesseuh

@Princesseuh Princesseuh commented Sep 17, 2026

Copy link
Copy Markdown
Member

Fixes #148

@changeset-bot

changeset-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f42d916

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@astrojs/astro2tsx Patch
@astrojs/compiler-binding Patch
@astrojs/compiler-rs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

"devDependencies": {
"@emnapi/runtime": "1.11.3",
"@napi-rs/cli": "3.5.1",
"@napi-rs/cli": "3.8.6",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New CLI version generates package.json for the WASM bindings with those deps properly there

"devDependencies": {
"@emnapi/runtime": "1.11.3",
"@napi-rs/cli": "3.5.1",
"@napi-rs/cli": "3.8.6",

@ocavue ocavue Sep 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with bumping @napi-rs/cli to 3.8 in crates/astro_napi/package.json, but just a reminder that you probably don't want to bump @napi-rs/cli to 3.8 in crates/astro2tsx/package.json.

The latest version that works for both 2 packages is 3.7, as shown in #172

@napi-rs/cli 3.8+ in astro2tsx/package.json is blocking by issue napi-rs/napi-rs#3531

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.

Bug: Unmet/undeclared peer dependencies: @emnapi/core, @emnapi/runtime

2 participants