question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why does the new peerDependency check make sense for development dependencies?

See original GitHub issue

Type of Issue

[x] Question
[ ] Bug Report
[ ] Feature Request

Description

With 2.3.0 the build fails if I have devDependencies that are not whitelisted. Why does this make sense? In the devDependencies I need to list all dependencies that I need for the build and test cycle, that includes e.g. jest or extra tools only required for development. Isn’t this the default setup? It adds a lot of churn to have to whitelist each of these dependencies.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dhergescommented, Mar 25, 2018

@CarstenLeue AN example is shown in nx-packaged, one of the libs: https://github.com/dherges/nx-packaged/tree/master/libs/one-lib

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Peer Dependencies in JavaScript
Although useful for all developers alike, peer dependencies is a feature very ... Does that make sense? ... Check if B is already...
Read more >
node.js - What's the difference between dependencies ...
Summary of important behavior differences: dependencies are installed on both: npm install from a directory that contains package.json ...
Read more >
Dependencies Done Right | Yarn Blog
The devDependencies object guarantees that, for each entry, your package will be able to access the specified version of the dependency through ......
Read more >
Add a means to install package peer dependencies ... - GitHub
For it to make sense for a user, it needs to check the ESLint package they installed, and not some specific version your...
Read more >
Common npm mistakes - Medium
One of the best things about node development is npm. The large library of packages ... Then that library/framework is a peer dependency....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found