invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.13k stars 201 forks source link

request: license checker #722

Closed MarkOSullivan94 closed 4 months ago

MarkOSullivan94 commented 4 months ago

Is there an existing feature request for this?

Command

melos licenses

Description

As a developer, I would like Melos to alert me to any licenses found by packages which I have used in my project which do not permit commercial use

Reasoning

This feature would be very useful incorporated into CI workflows and will help avoid companies from getting caught out by a package moving away from a commercial friendly license in a new version

Additional context and comments

This was idea inspired by the great work by the Very Good Ventures[^1] team and I felt that Melos could benefit from something similar

[^1]: You can find the very_good_cli's implementation here

spydon commented 4 months ago

I think this is too specific for being built-in to Melos, but it would be easy to use the VGV cli from a Melos script if you need it in your projects. :)