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(groups): handle negation for packages option #232

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs(site): update packages with negation examples
  • Loading branch information
ardelato committed Jul 9, 2024
commit c004e1cfa4635eb4998e82e3344cb315fb993988
7 changes: 7 additions & 0 deletions site/src/partials/group-config/_packages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import OptionalPill from '@site/components/pill/optional.astro';

- An array of strings which should match the `name` properties of your package.json files.
- If omitted, the default behaviour is to match every package.
- Negated types are also supported, so a value of `["!my-client", "!my-server"]` would assign everything **except** the packages `my-client` and `my-server` to this group.
- The strings can be any combination of exact matches or [minimatch](https://github.com/isaacs/minimatch) glob patterns:

```json title="Examples of valid values"
Expand All @@ -16,6 +17,12 @@ packages: ["@my-repo/**"]
// ✅ match specific packages by name
packages: ["my-server", "my-client"]

// ✅ match all packages except negated ones
packages: ["!my-server", "!@my-repo/**]

// ❌ no mixing of specific and negated packages
packages: ["my-client", "!@my-repo/**"]

// ❌ not file system paths, name properties of package.json files
packages: ["packages/my-client"]

Expand Down
Loading