pub icon indicating copy to clipboard operation
pub copied to clipboard

Warn in "pub publish" if bin/ is non-empty, but bin/<packageName>.dart does not exist

Open jonasfj opened this issue 5 years ago • 3 comments

The default entry point for a pub package is bin/<packageName>.dart, so if publishing a package that contains bin/ (non-empty), we should give a warning if bin/<packageName>.dart doesn't exist.

jonasfj avatar Apr 28 '20 12:04 jonasfj

Maybe a warning is too strong... there are legitimate reasons to not include a default binary.

So maybe it should just be a hint.

jonasfj avatar Apr 28 '20 12:04 jonasfj

We could limit to only warn if bin/*.dart exists and there is no bin/<packageName>.dart.

jonasfj avatar May 12 '20 09:05 jonasfj

Do we still want this?

sigurdm avatar Mar 12 '24 14:03 sigurdm