Reputation: 657466
When I have a package that I absolutely won't publish to pub.dartlang.org, how can I prevent someone accidentally publishing it?
Upvotes: 14
Views: 3123
Reputation: 657466
add
publish_to: none
to your pubspec.yaml
.
This setting can be used to specify a custom pub package server to publish to and none
prevents publishing.
Upvotes: 21