In what scenario would a package be listed in both dependencies and devDependencies?

  • When the package is a development tool
  • When it's a runtime dependency
  • When it's a peer dependency
  • When it's a transitive dependency
A package can be listed in both dependencies and devDependencies when it's a development tool that is needed during both development and runtime. An example might be a testing library or build tool.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *