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

579
Views
How to use local resolutions in yarn workspaces?

I have a monorepo based on yarn workspaces, with two projects, A and B. Both projects depend on the foo package. I would like to create a resolution in the parent package.json file (since resolutions don't work on local package.json files in yarn workspaces) so that I can reference a different version of foo for each package.

Is it possible?

I have tried using something like this with no luck:

"resolutions": {
  "A/foo": "1.0.0",
  "B/foo": "2.0.0"
}

Important: This is a simplified example, I know it should be as simple as using different versions of foo in each workspace. The real use case is more complex and involves a dependency chain I cannot alter :(

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!