Open
Description
App's vs. libraries have different expected usage of Pub.
For example, Apps should have a pubspec.lock, libraries typically should not.
Perhaps we should have a way to specify with pubspec.yaml if a package is a "library" vs. an "app" and then allow pub and other commands to have different behavior (e.g. warning if you do/don't have a pubspec.lock, or allowing specifying a strict version version for Flutter, etc.)
Something like this could be a solution to flutter/flutter#95472.
I discussed this in part in person with @mit-mit and @sethladd at I/O. My understanding is that Michael may have an in-progress doc. I'm filing this so we don't forget to follow-up.