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.

Allow fetching license info from `peerDependencies` and `optionalDependencies`

See original GitHub issue

license-report outputs all licenses from dependencies and devDependencies.

Please, add support of peerDependencies, optionalDependencies, and bundledDependencies as well. I would like to be able to retrieve the license info for the packages from these three extra dependencies.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BePo65commented, Jul 5, 2021

Thanks for the idea to make license-report more complete. I do understand the peerDependencies and the optionalDependencies.

But according to the documentation of npm, packages listed in bundledDependencies do not contain any version info and must be also part of dependencies. Do you have a real live example of bundledDependencies?

0reactions
BePo65commented, Feb 15, 2022

Is part of the next release (based on pr #65).

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
The peerDependenciesMeta field serves to provide npm more information on how your peer dependencies are to be used. Specifically, it allows peer dependencies...
Read more >
yarn add --peer --dev fails to record to peerDependencies #5287
Do you want to request a feature or report a bug? Bug What is the current behavior? When you run yarn add --peer...
Read more >
How do I handle optional peer dependencies when publishing ...
Let's first summarize your situation: foo and bar is your optional dependency, meaning you expect your consumer will use one of them along...
Read more >
Manifest fields | Yarn - Package Manager
This field lists some extra information related to the dependencies listed in the peerDependencies field.
Read more >
The Basics: Getting started with npm - NodeSource
We've written up this guide for getting a grasp on npm. ... PeerDependencies; PeerDependenciesMeta; OptionalDependencies ...
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