Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to flag a package as most likely a dev dependency? #6400

Open
kevmoo opened this issue Feb 6, 2023 · 2 comments
Open

Need a way to flag a package as most likely a dev dependency? #6400

kevmoo opened this issue Feb 6, 2023 · 2 comments

Comments

@kevmoo
Copy link
Member

kevmoo commented Feb 6, 2023

See google/json_serializable.dart#1280 (comment)

json_serializable almost always should be included in dev_dependencies but see https://pub.dev/packages/json_serializable/install

Wondering if it makes sense to let package authors flag their packages as (mostly) meant for dev_deps?

@isoos
Copy link
Collaborator

isoos commented Feb 7, 2023

This is a duplicate of #3403 I'm closing it here. I'll also add a pub-dev override for package:json_serializable to put it in the dev_dependencies on the install page.

@sigurdm
Copy link
Contributor

sigurdm commented Feb 7, 2023

I don't really think this is a duplicate of #3403.

Giving packages a way to indicate that they are dev-tools could be relevant in more ways.

Pana could adapt its analysis (eg. a dev-tool can be used with flutter even though it uses mirrors).
There could be a search option/tag is:tool (I think we discussed that in another recent issue)

Perhaps pub global activate could somehow use this information (though that might be hard to do in a non-breaking manner).

Perhaps you could get a lint if you depend on a tool in direct dependencies (unless you yourself are a tool).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants