dartpackagepublish

Updating published package in dart pub


This is my first time contributing to the open source world. I made a simple client for the official cryptocurrency exchange API.

I was reading this and it's just told me how to publish a dart package. I did publish a package. Since I forgot to add documentation on how to use API Client, I want to update the README.md file. How do I do it? I'm afraid if I do dart pub publish will publish package twice since pub.dev policy doesn't allow discard.


Solution

  • Just increment the version number to 1.0.1 or similar and publish again.

    See https://dart.dev/tools/pub/publishing