Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
1aron opened this issue Nov 18, 2022 · 2 comments
Closed
2 tasks done

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

1aron opened this issue Nov 18, 2022 · 2 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@1aron
Copy link
Contributor

1aron commented Nov 18, 2022

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/*
@1aron 1aron added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Nov 18, 2022
@1aron 1aron changed the title Feat: Support Glob for -w **/* monorepo Feat: Support glob for -w **/* monorepo Nov 18, 2022
@1aron 1aron changed the title Feat: Support glob for -w **/* monorepo Feat: Support glob for -w **/* monorepo workspaces Nov 18, 2022
@ljharb
Copy link
Contributor

ljharb commented Nov 18, 2022

Try quoting the string that contains asterisks - otherwise the shell expands it before npm sees it.

@1aron
Copy link
Contributor Author

1aron commented Nov 21, 2022

Now it works with commands like this npm version 2.0.0-beta.100 --workspace packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

2 participants