Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/optional-bindings-peer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@xmtp/convos-cli": patch
---

Mark the `@xmtp/node-bindings` peer dependency as optional.

convos-cli only ever imports types from `@xmtp/node-bindings`; at runtime the
bindings arrive through `@xmtp/node-sdk`'s exact-pinned dependency. A required
peer makes pnpm's `autoInstallPeers` fetch a second, registry-latest bindings
build in workspaces that pin bindings only via `pnpm.overrides` — a native
addon compiled against a different node-sdk than the one in the tree. Optional
peers are never auto-installed and still resolve to the single in-graph
bindings, so type imports keep working and the sdk/bindings compile contract
stays intact.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"@xmtp/node-bindings": ">=1.11.0-dev <1.13.0",
"@xmtp/node-sdk": ">=6.0.0-dev <6.3.0"
},
"peerDependenciesMeta": {
"@xmtp/node-bindings": {
"optional": true
}
},
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
Expand Down
Loading