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

205
Views
Dependencies vs devDependencies in monorepo

This cl tool can be installed as a devDependency. But they say to install it as a dependency if you are in a monorepo.

Why is that?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

devDependencies in the root package.json can be used in all packages in the monorepo. This is generally used to co-locate test-related deps and config (jest, eslint, etc).

A couple caveats:

  1. This only works for non-CLI devDependencies. If you need to run a CLI from a child package, that CLI needs to be in that package's devDependencies. (transpiling, flowcopy, etc)
  2. All dependencies for a given child package still need to be listed in that child's package.json. (obvious, perhaps? just clarifying)

Source: https://github.com/lerna/lerna/issues/1079#issuecomment-337660289

about 4 years ago · Juan Pablo Isaza Report
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!