Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 890
Günter Zöchbauer Avatar asked Aug 05 '14 04:08

Günter Zöchbauer


1 Answers

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.

like image 74
Günter Zöchbauer Avatar answered Sep 20 '22 01:09

Günter Zöchbauer