Skip to content

fix(root): add npm overrides mirroring yarn resolutions#9212

Open
mihir-bitgo wants to merge 1 commit into
masterfrom
mihirseth/wcn-604-add-npm-overrides
Open

fix(root): add npm overrides mirroring yarn resolutions#9212
mihir-bitgo wants to merge 1 commit into
masterfrom
mihirseth/wcn-604-add-npm-overrides

Conversation

@mihir-bitgo

Copy link
Copy Markdown

Summary

  • npm consumers of bitgo don't get yarn's resolutions pins, so npm audit surfaces vulnerabilities our yarn-based CI already patches
  • Add an overrides block to root package.json translating all 70 pinned packages so npm install resolves the same safe versions when bitgo is the root of the install
  • Note: overrides only takes effect when the installed package is the root of the install — it does not help when bitgo is installed as a dependency of a customer app (that's covered separately in a follow-up PR shipping npm-shrinkwrap.json)

Test plan

  • package.json parses as valid JSON
  • npm install --package-lock-only in an isolated copy resolves the pinned versions
  • yarn install still succeeds unaffected (yarn ignores overrides)

TICKET: WCN-604

🤖 Generated with Claude Code

npm consumers of `bitgo` ignore yarn's `resolutions` block, so `npm audit`
surfaces vulnerabilities our yarn-based CI already patches. Add an
`overrides` block translating all 70 pinned packages so `npm install`
resolves the same safe versions when bitgo is the root of the install.

TICKET: WCN-604
@mihir-bitgo mihir-bitgo requested a review from a team as a code owner July 8, 2026 19:17
@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

WCN-604

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.

1 participant