feat: implement shared utilities in @metamask/local-node-utils#9234
Open
ulissesferreira wants to merge 4 commits into
Open
feat: implement shared utilities in @metamask/local-node-utils#9234ulissesferreira wants to merge 4 commits into
@metamask/local-node-utils#9234ulissesferreira wants to merge 4 commits into
Conversation
ulissesferreira
added a commit
that referenced
this pull request
Jun 23, 2026
4807442 to
2ff98d2
Compare
ulissesferreira
added a commit
that referenced
this pull request
Jun 23, 2026
65ac099 to
97084d1
Compare
3 tasks
Extract common installer helpers used by the local node runtime packages: cache resolution, artifact config, downloads, checksums, archives, executable wrappers, and package.json config parsing.
Align nock version with the monorepo, add knip sysctl ignore, fix ESLint and formatting issues in shared utility sources and tests.
The monorepo lint step exceeded the 6GB Node heap during merge queue runs after rebasing onto main. Increase the limit to 7GB, following the same approach as #7906.
8f9d040 to
5dca017
Compare
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
This PR is the second of a stacked series introducing
@metamask/local-node-utils.It implements the shared installer utilities extracted from the
*-upruntime packages, stacked on #9233.What's included
What's NOT included
No changes to
java-tron-up,bitcoin-regtest-up, orsolana-test-validator-upyet — those follow in stacked PRs per package.Stacked PRs
@metamask/local-node-utilspackage #9233 — scaffold only*-uppackage to adopt@metamask/local-node-utilsTest plan
yarn workspace @metamask/local-node-utils run buildyarn workspace @metamask/local-node-utils run testyarn workspace @metamask/local-node-utils run changelog:validateNote
Low Risk
New library and dev tooling only; no consumer
*-uppackages are wired in yet, so production install behavior is unchanged until follow-up PRs.Overview
@metamask/local-node-utilsreplaces the scaffold with the shared installer logic that will be adopted byjava-tron-up,bitcoin-regtest-up, and similar packages: artifact config merge/resolve/cache keys, Yarn-aware MetaMask cache paths, HTTP downloads with redirects, SHA-256 verification,tarextraction,node_modules/.binwrapper generation, platform/arch detection (including Rosetta viasysctl), andpackage.jsontool-config lookup.The public API is re-exported from
index.ts;yamlis added as a runtime dependency. Tests cover unit and integration paths (includingnockfor downloads); Jest coverage thresholds are relaxed from 100% to 90%/75% branches. Monorepoknipignoressysctlfor this package; rootlint:eslintheap is bumped to 7168 MB.Reviewed by Cursor Bugbot for commit 5dca017. Bugbot is set up for automated code reviews on this repo. Configure here.