When I have a package that I absolutely won't publish to pub.dartlang.org, how can I prevent someone accidentally publishing it?
Asked
Active
Viewed 2,337 times
1 Answers
17
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.

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567