Repository navigation
fix(wallet-lib): keep @yarnpkg/pnpify out of runtime dependencies so npm can install dashmate - #5435
Conversation
…npm can install dashmate `npm i -g dashmate` fails for every published version since 2026-09-24: npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "patch:": patch:got@npm%3A11.8.2#~/.yarn/patches/got-npm-11.8.2-c1eb105458.patch dashmate depends on @dashevo/wallet-lib, which listed @yarnpkg/pnpify as a runtime dependency. pnpify pulls @yarnpkg/core@^4.9.1, and @yarnpkg/core 4.9.2 (published 2026-09-24) declares `got` with yarn's own `patch:` protocol, which npm cannot resolve. wallet-lib uses pnpify only in its `test:types` script (`yarn pnpify tsd`), so it belongs in devDependencies, as it already is in dash and wasm-dpp. yarn.lock does not change. Verified with npm 11.19 / Node 24: a project depending on dashmate 5.0.0-rc.2 with @dashevo/wallet-lib overridden to a tarball packed from this branch: before the change ✖ EUNSUPPORTEDPROTOCOL; after it ✔ 543 packages installed, no @yarnpkg package in the tree, `dashmate --version` runs. No automated test: the failure depends on the published npm registry state; the check is a manual npm install of the packed tarball. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
🕓 Review not started yet because the new head is waiting for the 30-minute push debounce.
Commit b241f78. Normal review starts when eligible; priority review starts as soon as a slot is available. |
Issue being fixed or feature implemented
npm i -g dashmatefails for every published version (including 4.1.1 and 5.0.0-rc.2) since 2026-09-24:dashmate depends on
@dashevo/wallet-lib, which lists@yarnpkg/pnpifyas a runtime dependency. pnpify pulls@yarnpkg/core@^4.9.1, and@yarnpkg/[email protected](published 2026-09-24) declaresgotwith yarn's ownpatch:protocol, which npm cannot resolve.What was done?
Moved
@yarnpkg/pnpifyfromdependenciestodevDependenciesinpackages/wallet-lib/package.json. wallet-lib uses it only in itstest:typesscript (yarn pnpify tsd);dashandwasm-dppalready list it as a dev dependency.yarn.lockdoes not change, andyarn constraintspasses.This ships to npm with the next release, so
npm i -g dashmate@<next>installs again. Already-published versions stay broken on npm until upstream fixes@yarnpkg/core.How Has This Been Tested?
npm 11.19 / Node 24, a scratch project depending on
[email protected]with@dashevo/wallet-liboverridden to a tarball packed from this branch (yarn workspace @dashevo/wallet-lib pack):EUNSUPPORTEDPROTOCOL(the error above);@yarnpkg/*package in the tree,dashmate --versionruns.No automated test: the failure depends on the state of the public npm registry.
Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit