Skip to content

Add dart create flag to add new package to parent workspaceΒ #61238

@parlough

Description

@parlough

It would be nice to have a flag for dart create that if specified (perhaps --workspace), traverses ancestor directories, and if it finds a package with an existing workspace key, adds the new package to that workspace. It would also add resolution: workspace to the new package. If no parent workspace is found, the command should fail with an error rather than trying to create the package.


Related: #61237

\cc @sigurdm

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-createIssues related to the 'dart create' tooldart-cli-pubIssues related to the 'dart pub' tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions