From c004e1cfa4635eb4998e82e3344cb315fb993988 Mon Sep 17 00:00:00 2001 From: Angel de la Torre Date: Tue, 9 Jul 2024 13:26:41 -0700 Subject: [PATCH] docs(site): update packages with negation examples --- site/src/partials/group-config/_packages.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/src/partials/group-config/_packages.mdx b/site/src/partials/group-config/_packages.mdx index ad0b46d5..4f3a2cc4 100644 --- a/site/src/partials/group-config/_packages.mdx +++ b/site/src/partials/group-config/_packages.mdx @@ -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" @@ -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"]