Skip to content

Commit

Permalink
docs(site): update packages with negation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ardelato committed Jul 9, 2024
1 parent f5755ed commit c004e1c
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit c004e1c

Please sign in to comment.