Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Propagate yarn resolutions to other packages

I'm trying to create a "BOM" library that other projects can include, so that dependencies can be managed in a single place.

The BOM library includes a number of libraries, and I need to override some of their dependencies to resolve CVEs. However, I can't figure out how to get those overrides to propagate through to the repos setting this BOM library as a dependency.

I've tried the following:

BOM:

"dependencies": {
  "libraryA": "1.0"
},
"resolutions": {
  "libraryB": "1.5"
}

Running yarn in the BOM repo correctly does not include the original version of libraryB, only the resolutions version.

However, adding BOM as a dependency to a repo and running yarn does not, and installs the original version of libraryB specified by libraryA.

If I instead specify the version I want as an explicit dependency:

BOM:

"dependencies": {
  "libraryA": "1.0",
  "libraryB": "1.5"
}

Then both versions of libraryB are included in the yarn.lock.

How can I force my repo to respect the resolutions specified in the BOM repo?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!