Skip to content

request: Add publish --skip-validation #882

@Lukitaduarte

Description

@Lukitaduarte

Is there an existing feature request for this?

  • I have searched the existing issues.

Command

melos publish --skip-validation

Description

Enable the use of the --skip-validation argument in melos publish.

Reasoning

  • For the same reason of official dart pub publish command.
  • And for private packages that don't want to follow the same level of demand as pub.dev.

Additional context and comments

Today we have more than 50 modules within our project and more than 6 apps. All of them are managed by melos (we are grateful for that). We recently acquired a OnePub plan to help us manage the internal versions of these modules. However, since all our control was done via git, we have a policy of locking the exact version of the packages we use (we do not use ^). The problem is: the OnePub publishing command considers the use of ^ a warning, unlike melos/dart which considers it an error. Therefore, we cannot use the melos publish command due to this restriction, which would be easily circumvented if melos exposed the --skip-validation and --force commands.

Other

  • I'm interested in working on a PR for this.

Metadata

Metadata

Assignees

Labels

feature requesttype: acceptedMarks issues/pull requests that are accepted & scheduled to be worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions