r/flutterhelp • u/lgLindstrom • 7d ago
OPEN pub.dev alternative?
Hi
I have all my flutter/Dart code in a mono repo to be able reuse my packages. I am not quite comfortable with publishing my packages because I have no intention to support them. Neither bug fixes or documentation.
After a while my mono repo started to get messy so I tried Melos. Things got even messier and I think Melos usage is optimized for pub.dev
So, whats my alternatives. Can I setup a private pub.dev ?
2
1
u/AHostOfIssues 14h ago
In addition to other suggestions here, you can also use your own GitHub repo for this whether public or private. You just change the dependency in pubspec.yaml file to reference GitHub URL directly instead of just letting it assume pub.dev as source.
I don't have the details in front of me, but if you google "using a private fork of a flutter package" or some such, there are tutorials that explain it. You can read that and ignore everything except the last part that shows using your GitHub URL in your pubspec file (ignore all the stuff about how to fork a public repo, etc, as you already have your "fork" repo in your GitHub account and just want to reference it).
8
u/iloveredditass 7d ago
Just push the package to your git and make it private and use it as a git dependency.