Why this matters
Precise workspace selection prevents accidental inclusion of tooling or build artifacts as packages.
In pnpm-workspace.yaml, explicitly list workspace globs (e.g., "apps/", "packages/") and exclude build outputs (e.g., "/dist", "/build"). Forbid catch-all patterns like "*" or "".
Precise workspace selection prevents accidental inclusion of tooling or build artifacts as packages.
Side-by-side examples engineers can pattern-match during review.
packages:
- ""packages:
- "apps/"
- "packages/"
- "tooling/"
- "!/dist"
- "!/build"packages:
- ""packages:
- "apps/"
- "packages/"From the same buckets as this rule.