Skip to content

feat: would like a way to differentiate "app" vs "library" within pubspec.yaml #4593

Open
@eseidel

Description

@eseidel

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.

Metadata

Metadata

Labels

type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions