siddharthkp/cost-of-modules

Getting "There are no dependencies!" with `cost-of-modules --no-install`

Closed this issue · 3 comments

This is odd, but I wonder if it's because my project has no production dependencies (only dev). There are definitely modules in node_modules though. Any ideas?

Yep, it only checks prod dependencies because those are the ones that get distributed

If you're looking for optimising dev depencies as well, I can include another flag cost-of-modules --include-dev

Gotcha, makes total sense. Yeah, I'd love a --include-dev if you feel so inclined :)

@kentcdodds Published in 0.3.0!