12

When I have a package that I absolutely won't publish to pub.dartlang.org, how can I prevent someone accidentally publishing it?

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

1 Answers1

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