Günter Zöchbauer
Günter Zöchbauer

Reputation: 657466

How to prevent accidental publishing of a private pub package

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

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

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

Related Questions