Closed helio-frota closed 6 years ago
I'm trying out a possibility for this, I'll hopefully have a proposal shortly! :)
@helio-frota Here's what I propose: https://github.com/bucharest-gold/license-reporter/pull/242
Good PR and yes, would be great to have production only
by default and option to exclude devDependencies as you suggested, to make the usage more clean, instead to almost always add the production-only option.
Here we are returning all the information about dependencies: https://github.com/bucharest-gold/license-reporter/blob/master/lib/modules/checker.js#L11
And here we are applying a filter to get only the
declared dependencies
( Example from console command, need to do the same for report command ) https://github.com/bucharest-gold/license-reporter/blob/master/lib/modules/console.mdl.js#L71Maybe is possible to use the same approach to remove
devDependencies
.https://github.com/bucharest-gold/license-reporter/issues/237#issuecomment-346327247