Skip to content

Feat: Support glob for -w **/* monorepo workspaces #5869

@1aron

Description

@1aron

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

package.json

{
    "workspaces": [
        "packages/*",
        "examples/*"
    ]
}
npm version -w packages/a -w packages/b -w packages/c ...
npm publish -w packages/a -w packages/b -w packages/c ...

Expected Behavior

package.json

npm version -w packages/*
npm publish -w packages/*

even filter some workspaces:

npm version --filter-workspace examples/*
npm publish --filter-workspace examples/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions