-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
in workspaces you can not use a ! to exclude and errors out on install #4621
Comments
Thanks for reporting! We haven't implemented negated-globs yet, but this is something we will implement. |
gotcha any workaround for now so we can use bun on the repo? |
guess only way is to manually list all the packages - thanks for coming back fast anyway |
Also, as the error suggests, this isn't only a problem with negation but with glob stars in the middle of a path in general. {
"workspaces": [
"slices/*.lambda",
"slices/*.stepfunction"
]
} |
I was hoping to move to bun for package management from pnpm in our large monorepo, but unfortunately, the lack of exclusions means we can't move yet. This is what our pnpm workspaces file looks like: packages:
- "packages/**"
- "!packages/**/lib"
- "!packages/**/dist"
- "!packages/**/generated"
- "generators/**"
- "!generators/**/lib"
- "!generators/**/dist"
- "!packages/cli/cli/dist/dev"
- "!packages/cli/cli/dist/prod" Since bun says no exclusions yet, I tried rolling the negations into the glob itself like this, but no luck: "workspaces": [
"packages/**/!(dist|lib)**",
"generators/**/!(dist|lib)**"
] |
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
try to run bun install
What is the expected behavior?
For it to install
What do you see instead?
An error
The text was updated successfully, but these errors were encountered: