Skip to content

feat: support --(no-)workspace flag for monorepo packages #1635

Description

@Crdzbird

Description

To add support for Pub Workspaces in our templates, we need to add a boolean workspace flag (can have a ws alias) to add the necessary configuration for the package to look up its parent workspace.

This is the configuration the flag should wrap:

environment:
  sdk: ^3.12.0
resolution: workspace # new configuration to wrap in pubspec.yaml

To add the package to the workspace, there will be another issue created in the CLI project. The scope of this is just adding the configuration for the templates.

Requirements

  • All CI/CD checks are passing.
  • There is no drop in the test coverage percentage.

Additional Context

#1635

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions