Skip to content

pub tool: support adding a dependency as a dev dependency #77

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

Open
kenzieschmoll opened this issue Apr 22, 2025 · 3 comments
Open

pub tool: support adding a dependency as a dev dependency #77

kenzieschmoll opened this issue Apr 22, 2025 · 3 comments

Comments

@kenzieschmoll
Copy link
Contributor

dart pub add dev:foo will add package foo to dev_dependencies instead of dependencies.

@jakemac53
Copy link
Contributor

note there is also the --dev flag which will implicitly do that for all the listed packages.

@kenzieschmoll kenzieschmoll added the dart_tooling_mcp_server: pub tools Issues related to Pub MCP server tools label Apr 23, 2025
@jonasfj
Copy link
Member

jonasfj commented May 1, 2025

--dev flag is deprecated, please use the dev: prefix -- I think there was a reason for it being done that way.

@jakemac53
Copy link
Contributor

Maybe we should just add text to the tool description for the various formats and let it figure out passing us a valid argument (basically just take the help text from the add command).

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